标题: mysql无法启动, 重置密码脚本一直失败 [打印本页] 作者: wenber 时间: 2021-9-14 00:46 标题: mysql无法启动, 重置密码脚本一直失败 /etc/init.d/mysql start
Starting MySQL..................................................................................................... ERROR! The server quit without updating PID file (/usr/local/mysql/var/mysql.pid).
./tools/reset_mysql_root_password.sh
+-------------------------------------------------------------------+
| Reset MySQL/MariaDB root Password for LNMP, Written by Licess |
+-------------------------------------------------------------------+
| A tool to reset MySQL/MariaDB root password for LNMP |
+-------------------------------------------------------------------+
| For more information please visit https://lnmp.org |
+-------------------------------------------------------------------+
| Usage: ./reset_mysql_root_password.sh |
+-------------------------------------------------------------------+
Enter New mysql root password: 6701bec2709042f3fb9
Stoping mysql...
ERROR! MySQL server PID file could not be found!
Starting mysql with skip grant tables
update mysql root password...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Reset mysql root password failed!