mysql 安装 错误

mysql安装错误排查

查看mysql-server 的状态

          [root@localhost ~]# service mysql status;
          MySQL is not running, but lock exists[FAILED]

          或者

          [root@localhost mysql]# /etc/init.d/mysql status;
          MySQL is not running, but lock exists[FAILED]

 

查看mysql.sock  位置是否在安装目录下

 

 

100106 10:56:23 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
100106 10:56:23  InnoDB: Started; log sequence number 0 44233

 

解决办法:mysql_install_db --user=mysql --datadir=/var/lib/mysql/ 

 

 

客户端:

Starting MySQL..Manager of pid-file quit without updating file.[FAILED]

 

错误日志:

100107 05:17:19 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
100107 05:17:19 mysqld_safe mysqld from pid file /var/lib/mysql/slave0.pid ended

//数据目录权限问题

chown -R mysql /var/lib/mysql

 

100108  0:26:09 [Warning] The syntax 'for replication startup options' is deprecated and will be removed in MySQL 6.0. Please use 'CHANGE MASTER' instead.
100108  0:26:09 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=slave0-relay-bin' to avoid this problem.
100108  0:26:10 [Warning] The syntax 'for replication startup options' is deprecated and will be removed in MySQL 6.0. Please use 'CHANGE MASTER' instead.
100108  0:26:10 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=slave0-relay-bin' to avoid this problem.

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值