ITPub博客

首页 > 数据库 > MySQL > mysql的安装

mysql的安装

原创 MySQL 作者:studycow 时间:2009-06-30 21:31:29 0 删除 编辑

基本上按照这个链接的说明安装成功: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

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7839206/viewspace-1023648/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-10-14

  • 博文量
    27
  • 访问量
    118421