Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

mysql:// can't connect

OS: macOS Mojave 10.14.1
Mysql: 5.7 in docker, mapped 3306 port to host port 3306, allowed empty root password

mysql -u root -h 127.0.0.1 could open mysql console.

but mysql mysql://root@127.0.0.1:3306/news returns ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

how to connect mysql by second way(mysql mysql://)? as i want to use pgloader like this: pgloader mysql://xx psql://

thanks !

Comments