最近公司有一台ubuntu系统的服务器
系统的数据在postgresql数据库里面存储的,但是不知道密码
先通过mobaxterm远程工具远程到ubuntu系统,永别的远程工具也是可以的
1,关闭防火墙
root@unassigned-hostname:~# ufw disable
查看防火墙状态,返回inactive则表示关闭成功
root@unassigned-hostname:~# ufw status
2,配置postgresql数据库的启动文件
2.1,关闭数据库连接密码
root@unassigned-hostname:~# cd /etc/postgresql
root@unassigned-hostname:~# ls
9.1
root@unassigned-hostname:/etc/postgresql~# vim 9.1/main/pg_hba.conf
2.2,开启远程访问
root@unassigned-hostname:~# vim /etc/postgresql/9.1/main/postgresql.conf
3,使用Navicat远程连接,密码为空
连接到之后,就可使用Navicat查询下载数据了