Access denied for user xxx 在CentOS 7上从mariadb 5.5升级时,致命错误:升级失败

时间:2020-02-23 14:37:36  来源:igfitidea点击:

我总是指责Centos 7存储库已过时。
我安装了mariadb进行本地开发,突然间我决定使用全文mysql查询,结果发现我使用的mysql版本不支持它。
mysql 5.5上的人们提供了相当有用的upgrade-mariadb-5-5-to-10-centos-rhel-debian-ubuntu仍然有这个问题:

[Hyman@theitroad shockwave]# mysql_upgrade
Version check failed. Got the following error when calling the 'mysql' command line client
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
FATAL ERROR: Upgrade failed

要解决它

[Hyman@theitroad shockwave]# mysql_upgrade -p
[Hyman@theitroad shockwave]# 这里输入密码