基本上按照这个链接的说明安装成功:http://tech.sina.com.cn/s/2008-05-05/07372174929.shtml
过程只遇到了一个问题,在启动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
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7839206/viewspace-1023648/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7839206/viewspace-1023648/