centos + mysql 安装 时候:Starting MySQL. ERROR! Manager of pid-file quit without updating file....

博客已经搬家,请访问如下地址:http://www.czhphp.com

下载:wget http://blog.s135.com/soft/linux/nginx_php/mysql/mysql-5.1.33.zip

安装:

       unzip mysql-5.1.33.zip

       cd mysql-5.1.33.zip

      ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile --with-plugins=innobase   
      make
      make install
      useradd mysql -d /data/mysql -s/sbin/nologin
      /usr/local/mysql/bin/mysql_install_db--user=mysql
     cd /usr/local/mysql
     chown -R root:mysql .
     mkdir -p /data/mysql/data
     chown -R mysql /data/mysql/data
     cp share/mysql/my-huge.cnf /etc/my.cnf
     cp share/mysql/mysql.server/etc/rc.d/init.d/mysqld
     chmod 755 /etc/rc.d/init.d/mysqld
     chkconfig --add mysql

     service mysqld start

 当重新启动时候总 报以下错误:

   ERROR! MySQL manager or server PID file could not be found!

   Starting MySQL. ERROR! Manager of pid-file quit without updating file.

解决办法:

   MySQL编译安装,初始化数据库的时候出现:
   unknown option '--skip-federated' 错误。

   #vi /etc/my.cnf
   #skip-federated 将此行注释掉即可。或者编译的时候加上如下参数:--with-plugins=all

   如果还是不行的话那么就是因为您在配置的时候没有添加datadir,

  #vi /etc/my.cnf

    添加以下语句:

    [mysqld]
    port            = 3306
    socket          = /tmp/mysql.sock
    datadir = /usr/local/mysql/data
    datadir是新加的

博客已经搬家,请访问如下地址:http://www.czhphp.com

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值