/ usr / libexec / mysqld文件不存在或不可执行


4

每当我尝试通过命令启动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?


怎么ls -al /usr/libexec/mysqld说呢?该文件存在吗?
taliezin

不,没有这样的文件或目录,这是否意味着我必须通过yum重新安装Mysql?
路易K

1
您可以检查它是否已安装:rpm -qi mysql-server,也可以安装或重新安装:yum (re)install mysql-server
taliezin

@taliezin,您应该把您的评论作为答案。
惠更斯2015年

@Huygens只是一个很好的收获,我不知道真正的问题是什么。
taliezin

Answers:


4

CentOS 6.6您可以检查是否mysql-server安装了:

rpm -qi mysql-server

您可以使用以下命令进行安装:

yum install mysql-server

或重新安装它:

yum reinstall mysql-server
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.