執行mysqld_safe報錯:mysqld does not exist or is not executable


執行mysqld_safe報錯:

[root@edu data]# /usr/local/mysql5.7/bin/mysqld_safe --user=mysql
160427 12:41:28 mysqld_safe Logging to '/renqinglei/mysql/log/mysql_error.log'.
160427 12:41:28 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

 

后台錯誤日志報:

160427 12:41:28 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

 

根據網上所說重新初始化數據庫也不好使,

依據 惜分飛文章:mysqld_safe啟動報錯 mysqld_safe只認識/usr/local/mysql/bin/mysqld路徑的mysqld

於是調整在當前目錄創建了一個軟鏈接,問題解決。

[root@edu local]# ln -s mysql5.7/  mysql

記錄此錯,僅為以后提醒。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM