您的位置:首页 > Web前端

fedora 18 安装完mysql 无法启动问题

2013-07-13 20:44 645 查看
使用
# yum install mysql-server mysql
安装mysql
使用
# systemctl start mysqld.service
启动服务
可是我之后的提示是
Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details.
现在 执行
# journalctl -xn
会得到提示
-- Logs begin at 四 2013-04-11 16:13:02 CST, end at 四 2013-04-11 22:07:06 CST. --
4月 11 22:05:47 localhost.localdomain dbus-daemon[654]: dbus[654]: [system] Rejected send message, 2 matched rules; type="method_return", sender=":1.0
4月 11 22:05:47 localhost.localdomain dbus[654]: [system] Rejected send message, 2 matched rules; type="method_return", sender=":1.0" (uid=0 pid=648 c
4月 11 22:06:13 localhost.localdomain dbus-daemon[654]: ** Message: No devices in use, exit
4月 11 22:07:03 localhost.localdomain systemd[1]: Starting MySQL database server...
-- Subject: Unit mysqld.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/7d4958e842da4a758f6c1cdc7b36dcc5 --
-- Unit mysqld.service has begun starting up.
4月 11 22:07:03 localhost.localdomain mysqld_safe[7422]: 130411 22:07:03 mysqld_safe Logging to '/var/log/mysqld.log'.
4月 11 22:07:04 localhost.localdomain mysqld_safe[7422]: 130411 22:07:04 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
4月 11 22:07:06 localhost.localdomain mysqld_safe[7422]: 130411 22:07:06 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
4月 11 22:07:06 localhost.localdomain systemd[1]: mysqld.service: control process exited, code=exited status=1
4月 11 22:07:06 localhost.localdomain systemd[1]: Failed to start MySQL database server.
-- Subject: Unit mysqld.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d --
-- Unit mysqld.service has failed.
--
-- The result is failed.
4月 11 22:07:06 localhost.localdomain systemd[1]: Unit mysqld.service entered failed state
查看 /var/log/mysqld.log 内容之后 发现是权限问题 执行

# cd /var/lib/mysql
# chown mysql.mysql -R *
# service mysqld start
mysql 启动成功 本文首次发表于百度空间http://hi.baidu.com/tao9020bei/item/d9e5103ceb739ec41a96967e 原创
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐