摘要: 登录控制台 root@kali:~# sudo -u postgres psql psql (10.5 (Debian 10.5-1)) Type "help" for help. postgres=# 其他用户登陆命令 psql -U 用户名 -d 数据库名 -h 链接地址 -p 端口 设置pos 阅读全文
posted @ 2023-12-29 15:15 村尚chun叔 阅读(44) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash source /etc/profile # 定义host、账号、密码,需要自定义 pg_host='172.16.4.8' pg_user='postgres' export PGPASSWORD=postgres pg_port='5432' # 定义备份目录、备份库、文件 阅读全文
posted @ 2023-12-29 14:08 村尚chun叔 阅读(136) 评论(0) 推荐(0) 编辑