wenber 发表于 2021-9-14 00:46:24

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:28

卸载了,重装吧

licess 发表于 2021-9-14 08:36:16

之前你mysql应该就是无法启动的,按反馈必读要求提供mysql日志看一下
页: [1]
查看完整版本: mysql无法启动, 重置密码脚本一直失败