赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。