【发布时间】:2026-01-17 15:45:01
【问题描述】:
我最近将我的 cPanel 版本更新到 v78.0.17,并将 MySQL 从 5.6 升级到 5.7。
我在 MySQL 服务器启动过程中遇到了一些错误,我通过第二次运行 cPanel MySQL/MariaDB Upgrade 解决了这些错误。
据我所知,MySQL 正在按预期运行。但是,我现在从 Service Manager (tailwatchd) 接收到 MySQL 服务已关闭的 cPanel 通知。
root@hostname [~]# ps faux |grep -i mysql
root 16516 0.0 0.0 112708 996 pts/0 S+ 11:05 0:00 | \_ grep --color=auto -i mysql
mysql 15308 1.5 0.2 1310132 82508 ? Sl 11:02 0:02 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
从 /var/log/chkservd.log 中提取
mysql [[check command:-][check command output:(XID 4jtb2a) The “mysql” service is down: mysqladmin: [ERROR] unknown variable 'pass=xxxxxxxx'
The subprocess “/usr/local/cpanel/scripts/restartsrv_mysql” reported error number 255 when it ended.][socket connect:N/A][fail count:66]Restarting mysql....
[notify:failed service:mysql]]...
我在 cPanel 论坛 https://forums.cpanel.net/threads/tailwatch-service-manager-has-stopped-monitoring-mysql.648093/#post-2643253 上找到了这个链接,但是我没有看到修复。
任何人都可以阐明解决此问题的可能方法吗?
【问题讨论】:
-
你
/root/.my.cnf的内容是什么? -
检查
/var/lib/mysql,应该有一个服务器名称以.err结尾的文件。检查该文件的内容,看看为什么 MySQL 没有启动...