安裝mysql出現Couldn't find MySQL server (/usr/bin/mysqld_safe)
Starting MySQL ERROR! Couldn't find MySQL server (/data/mysql/bin/mysqld_safe)
說的很明白,找不到mysql server了,於是趕緊的查看my.cnf配置,發現里面少一項basedir,
找到mysql安裝位置,添加如下:
[mysqld]
############# 添加下面這一條配置###########
basedir=/usr/local/mysql
出現另一種錯誤:
Starting MySQL.Logging to '/usr/local/mysql/data/master.err'.
ERROR! The server quit without updating PID file (/usr/local/mysql/data/master.pid).
可能是之前的版本沒有刪除完全,刪除完全,解決問題。