Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
mysql到postgres digitalocean数据库的PGLoader迁移错误_Mysql_Postgresql_Digital Ocean - Fatal编程技术网

mysql到postgres digitalocean数据库的PGLoader迁移错误

mysql到postgres digitalocean数据库的PGLoader迁移错误,mysql,postgresql,digital-ocean,Mysql,Postgresql,Digital Ocean,我正在尝试从数据库中获取数据,这两个数据库都托管在DigitalOcean中,一个是MySQL集群,另一个是POSTGRES 当我输入此命令时: pgloader mysql://<DB_USER>:<DB_PASS>@<DB_HOST>:<DB_PORT>/<DB_NAME "postgresql://<DB_USER>:<DB_PASS>@<DB_HOST>:<DB_PORT>/&

我正在尝试从数据库中获取数据,这两个数据库都托管在DigitalOcean中,一个是MySQL集群,另一个是POSTGRES

当我输入此命令时:

pgloader mysql://<DB_USER>:<DB_PASS>@<DB_HOST>:<DB_PORT>/<DB_NAME "postgresql://<DB_USER>:<DB_PASS>@<DB_HOST>:<DB_PORT>/<DB_NAME>"

pgloader-mysql://:@://不要乱动脑筋,这是解决问题的糟糕策略。有条不紊的调查更好。您已访问PostgreSQL服务器,因此如果身份验证失败,PostgreSQL日志中将出现错误。
Failed to connect to pgsql at "MY-HOST" (port MY-PORT) as user "MY-USER": Database error 28000: no pg_hba.conf entry for host <MY_PC_IPV4>, user "MY-USER", database "MY-DB", SSL off