加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql – 如何使用pgAdmin在Ubuntu上连接Postgres到本地服

发布时间:2020-12-13 16:48:49 所属栏目:百科 来源:网络整理
导读:我用这个命令安装Postgres sudo apt-get install postgresql postgresql-client postgresql-contrib libpq-dev 在终端上使用psql –version获取psql(PostgreSQL)9.3.4 然后我安装pgadmin sudo apt-get install pgadmin3 后来我打开了UI并创建了带有这些信息
我用这个命令安装Postgres
sudo apt-get install postgresql postgresql-client postgresql-contrib libpq-dev

在终端上使用psql –version获取psql(PostgreSQL)9.3.4

然后我安装pgadmin

sudo apt-get install pgadmin3

后来我打开了UI并创建了带有这些信息的服务器

但出现此错误

如何解决呢?

修改角色postgres的密码:
sudo -u postgres psql postgres

alter user postgres with password 'postgres';

现在使用username postgres和密码postgres连接到pgadmin

现在你可以创建角色&数据库使用pgAdmin

How to change PostgreSQL user password?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读