您好,登錄后才能下訂單哦!
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!@#";
執(zhí)行mysqld_safe報(bào)錯(cuò):mysqld does not exist or is not executable
執(zhí)行mysqld_safe報(bào)錯(cuò):
[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
后臺(tái)錯(cuò)誤日志報(bào):
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啟動(dòng)報(bào)錯(cuò) mysqld_safe只認(rèn)識(shí)/usr/local/mysql/bin/mysqld路徑的mysqld
方法一:在/usr/local/mysql創(chuàng)建鏈接文件
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目錄改為自己實(shí)際的安裝目錄
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。