溫馨提示×

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

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

mysql二進(jìn)制安裝啟動(dòng)的問(wèn)題

發(fā)布時(shí)間:2020-06-29 06:35:13 來(lái)源:網(wǎng)絡(luò) 閱讀:648 作者:灼灼123 欄目:MySQL數(shù)據(jù)庫(kù)

二進(jìn)制安裝后,啟動(dòng)時(shí)出現(xiàn)問(wèn)題(mysql安裝在/application/msyql下):

[root@135 bin]# /etc/init.d/mysqld start
Starting MySQL.170320 22:21:51 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
 ERROR! The server quit without updating PID file (/application/mysql/data/135.pid).



解決辦法和思路:

首先是按照錯(cuò)誤的提示操作,嚴(yán)格的執(zhí)行./bin/mysqld_safe&,之后可以啟動(dòng),啟動(dòng)的進(jìn)行如下:

mysql      4389   4243  2 22:23 pts/0    00:00:00 ./bin/mysqld --basedir=/application/mysql --datadir=/application/mysql/data --plugin-dir=/application/mysql/lib/plugin --user=mysql --log-error=/application/mysql/data/135.err --pid-file=/application/mysql/data/135.pid


可以看出用/etc/init.d/mysqld啟動(dòng),之所以出現(xiàn)如上的錯(cuò)誤,還是配置文件的問(wèn)題,沒(méi)有找到配置的文件??蓤?zhí)行命令  ./bin/mysqld_safe --defaults-file=/etc/my.cnf   指定已經(jīng)配好的配置文件。



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

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI