VPS侦探论坛

 找回密码
 注册
查看: 233|回复: 2

mysql无法启动, 重置密码脚本一直失败

[复制链接]
发表于 2021-9-14 00:46:24 | 显示全部楼层 |阅读模式



/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!



美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2021-9-14 06:34:28 来自手机 | 显示全部楼层


卸载了,重装吧
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2021-9-14 08:36:16 | 显示全部楼层



之前你mysql应该就是无法启动的,按反馈必读要求提供mysql日志看一下
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2021-10-26 13:24 , Processed in 0.049021 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表