mysql5.7安裝各種問題解決(總結中…………。)
阿新 • • 發佈:2019-02-16
1.service mysqld start
錯誤:/etc/init.d/mysqld: line 252: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/mysql/bin/mysqld_safe)
出現了這個錯誤,各種搜尋各種google都沒有解決,最後發現是這個配置檔案出現問題
原來是在/etc/init.d/mysql.d檔案中配置basedir這個出現錯誤
後來改成正確的安裝路徑就沒有問題了!
2.今天安裝mysql 5.6的時候編譯的時候各種報錯:
-MySQL提示:The server quit without updating PID file
先把之前配置的/data/mysql的資料檔案全部刪除
後來先加入以下引數重新開始編譯:
./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql --pid-file=/data/mysql/mysql.pid