Open jbauers opened 5 years ago
Hi!
I'm not sure what to add to your detailed report... can you check the MySQL server logs for those refused authentication attempts? After all it might still by a typo in the password field or something like this?
I'm experiencing the same issue. mysql
CLI authenticates, mysqldump
authenticates, but pgloader results in "Access denied".
The logs don't reveal anything interesting:
2021-10-21T01:21:02.657532Z 63641 [Note] Access denied for user <REDACTED> (using password: YES)
I am very willing to help debug this. If there is additional information I can provide please ask.
After spending some more time on this, it looks like pgloader fails for users with REQUIRE SSL
as described in the MySQL docs:
https://dev.mysql.com/doc/refman/5.7/en/alter-user.html
Some of my DBs had this, others did not. Only the ones that have it enabled fail with pgloader. Disabling it allows pgloader connections.
@jbauers to see if your user has this value set, you can run the query:
mysql> select user, ssl_type from mysql.user where ssl_type != '';
If I understand ticket #493 correctly, this MySQL connection feature may not be supported.
Hey! We're running pgloader on one host against multiple MySQL databases on different target hosts (not a
localhost/127.0.0.1
issue). Against one of the target hosts, we see the following error:From the same host, with the same credentials, the following works however:
So does
mysqldump
. Tried runningpgloader
both Docker/non-Docker:On host (
Linux 4.15.0-48-generic #51-Ubuntu 16.04
):On host inside Docker container, w/ and w/o
--net=host
(Linux 4.9.125-linuxkit debian:stable-slim
):The error is the same. Credentials don't have any characters that need to be escaped. Checked settings server-side and they should allow the connection. Could you give me a pointer? Not sure what else I could try, it seems quite weird (and the other 3 hosts/DBs work perfectly). Target MySQL:
Here's the (redacted) command with
--debug
:Any help would be greatly appreciated :)