Home > Database > Mysql Tutorial > 升级Ubuntu到10.04后MySQL无法启动

升级Ubuntu到10.04后MySQL无法启动

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:56:55
Original
1050 people have browsed it

升级Ubuntu到10.04之后,连接mysql提示:Can

升级Ubuntu到10.04之后,连接mysql提示:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

看了一下,mysql没有启动。执行
sudo start mysql
无法启动,,没有任何响应。
start mysql
无法启动,得到提示:
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.80" (uid=1000 pid=14704 comm="restart) interface="com.ubuntu.Upstart0_6.Job" member="Restart" error requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))

直接启动:
sudo -u mysql mysqld
得到提示:
mysqld: Table 'mysql.plugin' doesn't exist
100508 9:08:53 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
100508 9:08:54 InnoDB: Started; log sequence number 0 14859112
100508 9:08:54 [ERROR] mysqld: unknown option '--skip-bdb'
100508 9:08:54 [ERROR] Aborting

编辑/etc/mysql/my.cnf,找到–skip-bdb一行,注释掉。再执行sudo -u mysql mysqld或sudo start mysql,均可顺利启动。

再依照提示upgrade一下:
mysql_upgrade -p

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template