当前位置:   article > 正文

mysql community server 5.7.4_安装最新Mysql community server 5.7.10社区版的坑爹经历

see "systemctl status mysqld.service" and "journalctl -xe" for details

shell> chown -R mysql data mysql-files

这一步都没出现什么错误,满以为安装成功了,然而执行下面这句

shell>bin/mysqld_safe --user=mysql &

却显示mysql启动错误!错误log没有记录下来,搞了半天也不知道错误在哪里,没办法,只好放弃这种安装。

2.接着使用yum方式安装

这是相对来说最简单的安装方式了,官方安装说明文档的url如下:

http://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/

按照文档中所述,先下载并安装mysql最新的镜像源,然后执行

# yum install mysql-community-server

非常顺利的完成了安装,因为有了上次的经历,心里很担心服务启动不了,接着执行

# service mysqld start

果然出问题了,mysqld启动错误,出现下面的提示:

Redirecting to /bin/systemctl start mysqld.service

Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details.

# service mysqld status

Redirecting to /bin/systemctl status mysqld.service

mysqld.service - MySQL Server

Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)

Active: failed (Result: start-limit) since Tue 2015-12-08 13:57:22 CST; 17s ago

Process: 31004 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=1/FAILURE)

Process: 30988 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)

Dec 08 13:57:22 iZ25lox0jlhZ systemd[1]: Failed to start MySQL Server.

Dec 08 13:57:22 iZ25lox0jlhZ systemd[1]: Unit mysqld.service entered failed state.

Dec 08 13:57:22 iZ25lox0jlhZ systemd[1]: mysqld.service holdoff time over, scheduling restart.

Dec 08 13:57:22 iZ25lox0jlhZ systemd[1]: Stopping MySQL Serve

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/877063
推荐阅读
相关标签
  

闽ICP备14008679号