ERROR 1045 (28000): Access denied for user "root"@"localhost" (using password: YES)
一般这个错误是由密码错误引起,解决的办法自然就是重置密码
解决方案如下:
1.停止mysql数据库:
systemctl stop mysqld
2.用以下命令启动MySQL,以不检查权限的方式启动:
mysqld --skip-grant-tables &
此时又报了一个错误:
2020-01-30T12:56:04.313195Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.19) starting as process 14214 [20:56:04]
2020-01-30T12:56:04.314429Z 0 [ERROR] [MY-010123] [Server] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
2020-01-30T12:56:04.314465Z 0 [ERROR] [MY-010119] [Server] Aborting
2020-01-30T12:56: