![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
IP: 117.95.50.87
|
|||
|
|||
|
Code:
[root@rekfan mysql]# service mysql restart MySQL server PID file could not be found![失败] Starting MySQL...The server quit without updating PID file (/usr/local/mysql/data/rekfan.pid).[失败] 解决方法 :给予权限,执行 “chown -R mysql:mysql /var/data” “chmod -R 755 /usr/local/mysql/data” 然后重新启动mysqld! 2.可能进程里已经存在mysql进程 解决方法:用命令“ps -ef|grep mysqld”查看是否有mysqld进程,如果有使用“kill -9 进程号”杀死,然后重新启动mysqld! 3.可能是第二次在机器上安装mysql,有残余数据影响了服务的启动。 解决方法:去mysql的数据目录/data看看,如果存在mysql-bin.index,就赶快把它删除掉吧,它就是罪魁祸首了。本人就是使用第三条方法解决的 !http://blog.rekfan.com/?p=186 4.mysql在启动时没有指定配置文件时会使用/etc/my.cnf配置文件,请打开这个文件查看在[mysqld]节下有没有指定数据目录(datadir)。 解决方法:请在[mysqld]下设置这一行:datadir = /usr/local/mysql/data 5.skip-federated字段问题 解决方法:检查一下/etc/my.cnf文件中有没有没被注释掉的skip-federated字段,如果有就立即注释掉吧。 6.错误日志目录不存在 解决方法:使用“chown” “chmod”命令赋予mysql所有者及权限 7.selinux惹的祸,如果是centos系统,默认会开启selinux 解决方法:关闭它,打开/etc/selinux/config,把SELINUX=enforcing改为SELINUX=disabled后存盘退出重启机器试试。 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How To Secure X-Cart | Tenakee Springs | X-Cart | 0 | 2015-03-31 12:52 AM |
| Easily move an email account from one cPanel server to another | Rancho Palos Verdes | Linux | 0 | 2014-12-11 10:54 PM |
| How to Transfer Files/Backup from Server to Server | topvip | 服务器环境搭建 | 0 | 2010-10-20 12:02 AM |
| Windows2008安全设置让危险不再来 | yahoo | 服务器环境搭建 | 0 | 2009-08-28 12:06 PM |
| SQL Server导出导入数据方法 | topvip | 服务器环境搭建 | 0 | 2009-05-06 11:04 AM |