如果全過程使用的是Mysql使用者,應該可以正常啟動。
如果用的ROOT使用者,可能不能正常啟動,原因是建立的目錄許可權不對。
可能會這樣的錯誤提示:
/usr/local/mysql/libexec/mysqld: File ‘/home/mysql/mysqllog/binlog/mysql-bin.index' not found (Errcode: 2)
1. stop mysql service 一定要先停止,非常重要。
# /etc/init.d/mysqld stop
2. 修改Mysql配置 My.cnf: