[英]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. 我正在运行一个MySQL数据库,并创建了一个名为SSL的新用户,名为“ ssluser”。 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.
iptables没有报告丢弃的数据包。
I am able to connect from nonssluser to the remote server without an issue. 我能够从nonssluser连接到远程服务器,而不会出现问题。
On the server my.cnf I have the CA, Cert, and Key file in place and MySQL WorkBench shows that SSL is enabled. 在服务器my.cnf上,我已经放置了CA,Cert和Key文件,并且MySQL WorkBench显示已启用SSL。
On the client, I have CA, Cert, and Key file in place as well. 在客户端上,我也有CA,Cert和Key文件。
For both certificates I used the FQDN as the common name. 对于这两个证书,我都使用FQDN作为通用名称。 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. 这是MySQL的事情-这意味着您正在连接-SSL似乎不是问题。
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 1-密码错误
and 和
2 - The application does not support SSL MySQL connections 2-应用程序不支持SSL MySQL连接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.