安装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).
可能是之前的版本没有删除完全,删除完全,解决问题。