MYSQL随笔八 does not exist or is not executable

Posted 哭泣的馒头

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MYSQL随笔八 does not exist or is not executable相关的知识,希望对你有一定的参考价值。

MYSQL随笔八

报错(如下),但是使用mysqld直接启动没有问题。

150718 00:03:38 mysqld_safe Logging to /var/log/mysqld.log.
150718 00:03:38 mysqld_safe The file /usr/local/mysql/bin/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

[1]+ Exit 1 mysqld_safe --skip-grant-tables --user=mysql
说明:mysqld_safe启动脚本默认的从/usr/local/mysql目录中读取另外一个启动脚本mysqld,因为我的安装目录为/home/mysql/product/
5.6/mysql-1。所以找不到相关文件。可以从两个方面解决。

方法一:在/usr/local/mysql创建链接文件

mkdir -p /usr/local/mysql/bin
ln -s /home/mysql/product/5.6/mysql-1/bin/mysqld /usr/local/mysql/bin/mysqld
方法二:将mysqld_safe中的所有/usr/local/mysql目录改为自己实际的安装目录

<pre name="code" class="sql">sed -i s#/usr/local/mysql#/home/mysql/product/5.6/mysql-1#g /home/mysql/product/5.6/
mysql-1/bin/mysqld_safe

以上是关于MYSQL随笔八 does not exist or is not executable的主要内容,如果未能解决你的问题,请参考以下文章

mysql的The user specified as a definer (”@’%') does not exist 的解决办法

mysql的“The user specified as a definer (”@’%') does not exist”问题 解决

mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法

MySQL [Err]1449 : The user specified as a definer ('root'@'%') does not exist

mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法

[bug] MySQL: The user specified as a definer ('root'@'%') does not exist