Crazy knowledge base

linux下面安装mysql数据库 出错

      错误处理一:

 

  [root@server ~]# /etc/init.d/mysql start
          Starting MySQL..Couldn’t find MySQL manager or server

  Starting mysqld daemon with databases from /var/lib/mysql

  STOPPING server from pid file /var/run/mysqld/mysqld.pid

  071112 00:22:06   mysqld ended

  #cd /var/run/

  #ls

  mysqld目录不存在

  #mkdir /var/run/mysqld

  #cd /var/run/mysqld

  创建文件mysqld.pid

  #touch mysqld.pid

  #cd..

  #chown -R mysql mysqld .

  #cd /usr/local/mysql/

  #bin/mysqld_safe –user=mysql &

  Starting mysqld daemon with databases from /var/lib/mysql

  能正常启动

       Starting mysqld daemon with databases from /var/lib/mysql
       STOPPING server from pid file /var/run/mysqld/mysqld.pid
       050810 11:29:48 mysqld ended
(处理版本二)


       解决办法:

       找到MySQL配置文件里的socket = /tmp/mysql.sock   

       检查/tmp/mysql.sock权限 果然是/tmp权限的问题,757就可以了

  

      错误处理二:

 

           [root@server ~]# /etc/init.d/mysql start
           Starting MySQL..Couldn’t find MySQL manager or server

 

        解决办法:

         #vi  /etc/my.cnf        ‘basedir=/var/lib’改为:#basedir=/var/lib

 

 

              来自:http://blog.chinaitlab.com/html/33/1472933-168577.html

 
  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

         [root@server ~]# /etc/init.d/mysql start
         Starting MySQL..Couldn’t find MySQL manager or server

      解决办法:

      #vi  /etc/my.cnf        ‘basedir=/var/lib’改为:#basedir=/var/lib

 

 

         来自:http://blog.chinaitlab.com/html/33/1472933-168577.html

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 
 

 

 

 

 

 

linux下面安装mysql数据库 出错
滚动到顶部