我在安装 pg admin 时忘记配置登录电子邮件 ID 和密码 4. 安装后如何更改 [英] I forgot to configure login Email id and password while install pg admin 4. how i can change after installation

查看:125
本文介绍了我在安装 pg admin 时忘记配置登录电子邮件 ID 和密码 4. 安装后如何更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 pgAdmin 4 的新手.我在安装 pgAdmin 4 时忘记设置登录电子邮件 ID 和密码.安装后如何更改?有人可以帮我吗?

I am new to pgAdmin 4. I have forgot to setup of login Email id and password while install pgAdmin 4. How can I change after installation? Any one can help me?

推荐答案

我假设由于您不记得您的管理员/密码,您还没有对 pgAdmin 做太多事情.如果是这种情况,您可以移动/删除 SQLite 数据库并重新启动 pgAdmin:

I'm assuming that since you don't remember your admin/password, you didn't do much with pgAdmin yet. If that's the case, you can move/remove the SQLite database out of the way and restart pgAdmin:

rm /var/lib/pgadmin/pgadmin4-server.db

mv /var/lib/pgadmin/pgadmin4-server.db /tmp

执行此操作时,系统会在您下次启动应用程序时提示您输入密码.

When you do this, you'll be prompted for a password the next time you start up the app.

您还可以在移动/删除之前转储 SQLite 数据库的内容:

You can also dump the contents of the SQLite database before moving/removing:

sqlite3 /var/lib/pgadmin/pgadmin4-server.db .dump

这篇关于我在安装 pg admin 时忘记配置登录电子邮件 ID 和密码 4. 安装后如何更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆