大网数据广告活动
服务器运维问答

MySQL doesn't start after upgrading to Debian Jessie

· 52CE 我爱测

I have a server with Proxmox 3.4 with several OpenVZ-containers. Host and all guests are running Debian 7 x64. Now I want to migrate my old setup to a new server with Proxmox 4 (based on Debian 8). I transferred multiple OpenVZ-c…

问题原文

原帖链接 · Marius · CC BY-SA 3.0

I have a server with Proxmox 3.4 with several OpenVZ-containers. Host and all guests are running Debian 7 x64. Now I want to migrate my old setup to a new server with Proxmox 4 (based on Debian 8).

I transferred multiple OpenVZ-containers to the new environment and imported them successfully.

Now we get to the problem: After I upgraded them to Debian 8 most mysqld do not start any more. Setup showed me changes in my.cnf so I took the package maintainers version. One machine still starts mysql, some others do not although the configs are identical.

The mysql-error-log does not show anything, syslog neither. The startup script in '/etc/init.d/mysql' and config in '/etc/mysql/my.cnf' are identical on the machines.

root@web2:~# service mysql restart
Job for mysql.service canceled.

Starting the mysqld directly works:

root@web2:~# mysqld_safe
or
root@web2:~# /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/log/mysql/error.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306

Can somebody give me a hint about how to fix this startup- or service-issue?

Any help or hints where to search are appreciated.

已采纳解答

原帖链接 · Marius · CC BY-SA 3.0

The problem was related to ISPConfig, which created entries in /etc/fstab. The new default init-system systemd does not accept the lines any more (compared to sysvinit).

I found the solution by using journalctl -xb. Perhaps it helps someone else as well.

I added nofail to the entries in /etc/fstab to fix the boot-problems, e.g.:

# cat /etc/fstab
/var/log/ispconfig/httpd/example.com /var/www/clients/clientXX/webYY/log    none    bind,nobootwait,nofail    0 0

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-02-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。