ubuntu下安裝mysql出現FATAL ERROR: Could not find mysqld的處理

ubuntu下安裝mysql出現FATAL ERROR: Could not find mysqld的處理


錯誤信息:
#./bin/mysql_install_db –user=mysql

FATAL ERROR: Could not find mysqld
The following directories were searched:
/usr/libexec
/usr/sbin
/usr/bin
If you compiled from source, you need to run ‘make install’to copy the software into the correct location ready for operation.
If you are using a binary release, you must either be at the top of the level of the extracted archivem or pass the –basedir option pointing to that location.

解決辦法:
scripts/mysql_install_db –user=mysql –basedir=/usr/local/mysql
(這裏mysql是所使用的用戶名,basedir是mysql的安裝目錄)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章