mysql的安裝

StudyCow發表於2009-06-30

基本上按照這個連結的說明安裝成功:

過程只遇到了一個問題,在啟動mysqld的時候,出錯:

[root@rhel local]# mysqld_safe
090624 22:09:18 mysqld_safe Logging to '/usr/local/mysql/data/rhel.err'.
090624 22:09:18 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
090624 22:09:18 mysqld_safe mysqld from pid file /usr/local/mysql/data/rhel.pid ended

日誌中的錯誤為:

/usr/local/mysql/bin/mysqld: File './mysql-bin.index' not found (Errcode: 13)
090624 22:11:15 [ERROR] Aborting

090624 22:11:15 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

090624 22:11:15 mysqld_safe mysqld from pid file /usr/local/mysql/data/rhel.pid ended

透過修改目錄許可權解決:

[root@rhel local]# chown -R mysql:mysql ./mysql

[root@rhel mysql]# mysqld_safe
090624 22:17:29 mysqld_safe Logging to '/usr/local/mysql/data/rhel.err'.
090624 22:17:30 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7839206/viewspace-1023648/,如需轉載,請註明出處,否則將追究法律責任。

相關文章