*重要:I知道有很多关于如何解决这个问题的文章和主题,但是这些文章和主题都不适合我,因为登录DB很好。
ssh service mysql status返回运行,但是:
Oct 10 12:48:04 vim735ac.flexlyserver.net mysqld[2846372]: 2022-10-10 12:48:04 1334 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Oct 10 12:48:07 vim735ac.flexlyserver.net mysqld[2846372]: 2022-10-10 12:48:07 1336 [Warning] Access denied for user 'da_admin'@'localhost' (using password: YES)
Oct 10 12:48:07 vim735ac.flexlyserver.net mysqld[2846372]: 2022-10-10 12:48:07 1337 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Oct 10 12:48:07 vim735ac.flexlyserver.net mysqld[2846372]: 2022-10-10 12:48:07 1338 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Oct 10 12:48:11 vim735ac.flexlyserver.net mysqld[2846372]: 2022-10-10 12:48:11 1341 [Warning] Access denied for user 'da_admin'@'localhost' (using password: YES)
Oct 10 12:48:11 vim735ac.flexlyserver.net mysqld[2846372]: 2022-10-10 12:48:11 1342 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Oct 10 12:48:11 vim735ac.flexlyserver.net mysqld[2846372]: 2022-10-10 12:48:11 1343 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Oct 10 12:48:14 vim735ac.flexlyserver.net mysqld[2846372]: 2022-10-10 12:48:14 1347 [Warning] Access denied for user 'da_admin'@'localhost' (using password: YES)
Oct 10 12:48:14 vim735ac.flexlyserver.net mysqld[2846372]: 2022-10-10 12:48:14 1348 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Oct 10 12:48:14 vim735ac.flexlyserver.net mysqld[2846372]: 2022-10-10 12:48:14 1349 [Warning] Access denied for user 'root'@'localhost' (using password: NO)我查证:
mysql -u root -p enter password - login working
mysql -u da_admin -p enter_password - login working我也试着冲洗特权。
我还尝试再次为mysql root和da_admin设置密码。
我也登录到直接管理在部分mysql芒果-工作正确。
如果密码不正确,就不可能创建具有directadmin级别的数据库。
发生什么事了?尝试重新启动mysql和mariadb。这一直是个问题。我还关闭了防火墙。
发布于 2022-10-10 18:33:09
我不清楚什么对你有用或不适合你。当我使用错误的密码时,会发生这样的情况:
$ mysql -u root -p
Enter password:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'第1行是用户根,并要求提示密码。
注意…之间的区别
$ mysql -u root -p foo
$ mysql -u root -pfoo使用这个空间,它将提示输入一个密码;如果成功,它将尝试连接到名为foo的数据库。
如果没有空格,它将使用foo作为密码。如果成功,它将不会设置“默认数据库”;接下来我应该执行USE ... (如果我要查看某个数据库中的数据)。
我希望这会产生一个“使用”错误,因为它不允许2个“默认数据库”:
$ mysql -u root -p enter passwordhttps://dba.stackexchange.com/questions/318041
复制相似问题