简体   繁体   中英

Error while trying to connect to the database server: [1045] Access denied for user

I have a MySQL database running and I created a new user called 'ssluser' with SSL REQUIRED. I'm having trouble with this user logging in from a client to a remote server.

I verified the firewall is not an issue. iptables are not reporting dropped packets.

I am able to connect from nonssluser to the remote server without an issue.

On the server my.cnf I have the CA, Cert, and Key file in place and MySQL WorkBench shows that SSL is enabled.

On the client, I have CA, Cert, and Key file in place as well.

For both certificates I used the FQDN as the common name. I'm not sure if that is the issue or not. Any ideas?

The connection is on a private network in the Digital Ocean datacenter NYC.

[1045] Access denied for user

is a MySQL thing - which means that you are connecting - SSL does not seem to be the problem.

This most likely means you are authenticating wrong (have the wrong password).

Check this to see if it helps if you are sure you have the right password.

To answer my question:

1 - The password was incorrect

and

2 - The application does not support SSL MySQL connections

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM