mysql无法启动_mysql无法启动解决方案

mysql无法启动

启动服务器:

$ sudo /usr/local/mysql/bin/mysqld_safe -user=mysql &

$ 120712 15:35:12 mysqld_safe Logging to '/usr/local/mysql/var/mysql-test.err'.

120712 15:35:12 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var

120712 15:35:12 mysqld_safe mysqld from pid file /usr/local/mysql/var/db-app1.pid ended

查看错误日志: $ sudo tail -n -200 mysql-test.err

日志内容:

120712 15:28:48 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var

120712 15:28:48 [Warning] Ignoring user change to 'ser=mysql' because the user was set to 'mysql' earlier on the command line

/usr/local/mysql/libexec/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)

120712 15:28:48 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register file.

120712 15:28:48 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.

120712 15:28:48 [ERROR] Aborting

120712 15:28:48 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

120712 15:28:48 mysqld_safe mysqld from pid file /usr/local/mysql/var/db-app1.pid ended

大家帮忙看下 怎么回事啊

------解决方案--------------------

直接运行 mysqld_safe 呢

------解决方案--------------------

用mysqld启动 别直接调用mysql_safe

------解决方案--------------------

权限的问题,检查你mysql数据文件的权限,是不是mysql,

然后启动时 mysqld_safe --user=mysql ,而不是 -user=mysql,看你的日志

120712 15:28:48 [Warning] Ignoring user change to 'ser=mysql' because the user was set to 'mysql' earlier on the command line

------解决方案--------------------

mysql文件权限看看。

原创文章,转载请注明: 转载自搞代码

e7ce419cf2d6ad34d01da2ceb8829eed.png

微信 赏一包辣条吧~

023a57327877fb4402bcc76911ec18ea.png

支付宝 赏一听可乐吧~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值