您好,登錄后才能下訂單哦!
chown -R mysql:mysql /mysql
/mysql/scripts/mysql_install_db --user=mysql --basedir=/mysql/ --datadir=/mysql/data
/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf 2>&1 > /dev/null &
update user set password=password("shsnc!@#") where user="root";
grant all privileges on *.* to root@'%' identified by "shsnc!@#";
執行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
方法一:在/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目錄改為自己實際的安裝目錄
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。