安裝過程沒有出現出錯的信息,安裝完了,
運行了MySQL_install_db
再運行 safe_MySQLd,了,出現如下出錯信息,
Starting mysqld daemon with databases from /usr/MySQL/var
020620 14:51:32 MySQLd ended
查看MySQL目錄下var目錄下的email.err文件,如下
020612 11:38:56 MySQLd started
020612 11:38:56 /usr/mysql/libexec/mysqld: Can't create/write to file '/usr/MySQL/var/email.pid' (Errcode: 13) //主機名為email
020612 11:38:56 /usr/mysql/libexec/mysqld: Can't find file: './MySQL/host.frm' (errno: 13)
020612 11:38:56 /usr/mysql/libexec/mysqld: Error on delete of '/usr/MySQL/var/email.pid' (Errcode: 13)
020612 11:38:56 MySQLd ended
為什麼會出現如下情況呢,請高手指正,
要添加MySQL用戶及組,具體用法如下
shell> ./configure --prefix=/usr/local/MySQL
shell> make
shell> make install
shell> scripts/MySQL_install_db
shell> chown -R root /usr/local/MySQL
shell> chown -R mysql /usr/local/MySQL/var
shell> chgrp -R mysql /usr/local/MySQL
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> /usr/local/mysql/bin/safe_mysqld --user=MySQL &