溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

mysql-5.6.35二進(jìn)制安裝

發(fā)布時(shí)間:2020-06-24 09:10:11 來源:網(wǎng)絡(luò) 閱讀:475 作者:18620626259 欄目:MySQL數(shù)據(jù)庫

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í)際的安裝目錄


向AI問一下細(xì)節(jié)

免責(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)容。

AI