我在phpmyadmin中创建了一个mysql数据库。我创建了一个有特殊需要的postgresql数据库。现在,我正在尝试使用pgloader使用mysql还原pgsql数据库。
我执行了以下命令:
pgloader mysql://root@localhost/gizeng?useSSL=false pgsql://postgres:sigesige@localhost:5432/gizeng
但是我收到此错误:
2018-10-09T08:53:12.042000+01:00 LOG Data errors in '/private/tmp/pgloader/'
2018-10-09T08:53:12.135000+01:00 LOG Migrating from #<MYSQL-CONNECTION
mysql://root@localhost:3306/gizeng {1005A00423}>
2018-10-09T08:53:12.136000+01:00 LOG Migrating into #<PGSQL-CONNECTION
pgsql://postgres@localhost:5432/gizeng {1005B4B8F3}>
KABOOM!
FATAL error: Failed to connect to mysql at "localhost" (port 3306) as user
"root": MySQL Error [1045]: "Access denied for user 'root'@'localhost' (using
password: NO)"
An unhandled error condition has been signalled:
Failed to connect to mysql at "localhost" (port 3306) as user "root": MySQL
Error [1045]: "Access denied for user 'root'@'localhost' (using password: NO)"
What I am doing here?
Failed to connect to mysql at "localhost" (port 3306) as user "root": MySQL
Error [1045]: "Access denied for user 'root'@'localhost' (using password: NO)"
我创建了一个新用户,并在命令行中进行了更改:
gloader mysql://zak:za123@localhost/gizeng?useSSL=false pgsql://postgres:sigesige@localhost:5432/gizeng
但是错误仍然存在。我不知道我在想什么?但是我需要做好这项工作。您的帮助将非常宝贵。
谢谢!