mysql的安装过程出错[root@rhel local]# mysqld_safe 怎么

发布时间:2021-09-27 17:43 来源:亿速云 阅读:0 作者:chen 栏目: Mysql

本篇内容介绍了“的安装过程出错[root@rhel local]# mysqld_safe 怎么解决”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

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

免责声明:本站发布的内容(图片、视频和文字)以原创、来自互联网转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:ts@56dr.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。