刚刚装好postgres数据库,准备创建数据库,比如数据库名叫mydb,在命令行里输入createdb mydb 得到提示为
createdb: could not connect to database postgres : FATAL:
password authentication failed for user "Administrator" 请问如何解决这个问题?
另外 如何在一个数据库里导入后缀为 .out的文件 先谢谢了
createdb: could not connect to database postgres : FATAL:
password authentication failed for user "Administrator" 请问如何解决这个问题?
另外 如何在一个数据库里导入后缀为 .out的文件 先谢谢了
假如是SQL明文档,请用PSQL执行
假如是CUSTOM格式的,请用PG_RESTORE
//初始化数据库
$ initdb -D /usr/local/pgsql/data