VPS侦探论坛

标题: 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!




作者: water6000    时间: 2021-9-14 06:34
卸载了,重装吧
作者: licess    时间: 2021-9-14 08:36
之前你mysql应该就是无法启动的,按反馈必读要求提供mysql日志看一下




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4