dyb为库名,username为数据库用户
-h 数据库地址 如果为localhost 可省略
-p 端口 默认5432可省略
-d 数据库库名
$ psql -U username -h 196.128.0.19 -p 5432 -d dyb
用户 postgres 的口令:
psql (13.3)
输入 "help" 来获取帮助信息.
postgres=#
dyb为库名,username为数据库用户
-h 数据库地址 如果为localhost 可省略
-p 端口 默认5432可省略
-d 数据库库名
$ psql -U username -h 196.128.0.19 -p 5432 -d dyb
用户 postgres 的口令:
psql (13.3)
输入 "help" 来获取帮助信息.
postgres=#