每当我尝试通过命令启动MySQL
service mysqld start
我收到以下错误:
MySQL Daemon failed to start.
Starting mysqld: [FAILED]
并查看日志,我看到了这一点:
150706 14:52:12 mysqld_safe The file /usr/libexec/mysqld
does not exist or is not executable. Please cd to the mysql installation
directory and restart this script from there as follows:
./bin/mysqld_safe&
See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information
每当我CD到/ usr /并运行命令时,我都会得到相同的错误:
[root@www usr]# ./bin/mysqld_safe
150707 10:15:19 mysqld_safe Logging to '/var/log/mysqld.log'.
150707 10:15:19 mysqld_safe The file /usr/libexec/mysqld
does not exist or is not executable. Please cd to the mysql installation
directory and restart this script from there as follows:
./bin/mysqld_safe&
See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information
我使用的是CentOS 6.6版。如何启动MySQL?
不,没有这样的文件或目录,这是否意味着我必须通过yum重新安装Mysql?
—
路易K
您可以检查它是否已安装:
—
taliezin
rpm -qi mysql-server
,也可以安装或重新安装:yum (re)install mysql-server
。
@taliezin,您应该把您的评论作为答案。
—
惠更斯2015年
@Huygens只是一个很好的收获,我不知道真正的问题是什么。
—
taliezin
ls -al /usr/libexec/mysqld
说呢?该文件存在吗?