Can't login anymore over ssh with options `skip-name-resolve` and `skip-host-cache`

that options was required because one of your mysql servers had a problem with master-master-clustering and the other server's ip (instead of hostanme, message: "[Warning] IP address '...' could not be resolved: Temporary failure in name resolution")

but now i can't access it anymore with ssh

messages:

- "Accesse denied for user 'xxx'@'::1'" when i use mysql server name "localhost" over ssh

- "Access denied for user 'xxx'@'127.0.0.1'" when i use mysql server name "127.0.0.1" over ssh

why that? i would say "127.0.01" is NOT a hostname, because of `skip-name-resolve`??

thx for feedback.

regards, jan

Answer Answered by Daniel Black in this comment.

On the assumption that you are using SSH port forwarding, instead of connecting to localhost:3306, connect to the unix socket by using its path instead of the remotehost:remoteport in the options..

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.