简体   繁体   English

尝试连接到数据库服务器时出错:[1045]用户被拒绝访问

[英]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.

相关问题 错误:1045:尝试连接时,用户'user'@'123.10.123.123'的访问被拒绝(使用密码:否) - error: 1045: Access denied for user 'user'@'123.10.123.123' (using password: NO) when trying to connect mysqldump:在尝试连接时出现错误:1045:“用户'root'@'localhost'的访问被拒绝(使用密码:NO)” - mysqldump: Got error: 1045: "Access denied for user 'root'@'localhost' (using password: NO)" when trying to connect 无法连接到 MySql 数据库:错误 1045 (28000):用户“root”@“localhost”的访问被拒绝 - Cannot connect to MySql database: ERROR 1045 (28000): Access denied for user 'root'@'localhost' 尝试连接到在线数据库时,因用户“用户”错误而拒绝访问 - Access denied for user 'user' error while trying to connect to online DB 错误:cPanel SQL数据库上的“ SQLSTATE [28000] [1045]用户拒绝访问” - Error: “SQLSTATE[28000] [1045] Access denied for user” on cPanel SQL database mysqlcheck返回错误消息mysqlcheck:得到错误:1045:尝试连接时,用户'root'@'localhost'的访问被拒绝(使用密码:NO) - mysqlcheck return error message mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect Win 10,MySQLDump 给出错误“mysqldump: Got error: 1045: Access denied for user '=root'@'localhost' (using password: YES) 当尝试连接时” - Win 10, MySQLDump gives error “mysqldump: Got error: 1045: Access denied for user '=root'@'localhost' (using password: YES) when trying to connect” 错误1045(28000):用户'root'@'%'的访问被拒绝 - ERROR 1045 (28000): Access denied for user 'root'@'%' Python MySQLdb - 错误1045:拒绝用户访问 - Python MySQLdb - Error 1045: Access denied for user Laravel Sail 错误 1045 拒绝用户访问 - Laravel Sail Error 1045 Access denied for user
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM