发布于 2014-12-06 16:54:14 | 4629 次阅读 | 评论: 1 | 来源: PHPERZ

这里有新鲜出炉的Mysql教程,程序狗速度看过来!

Mysql关系型数据库管理系统

MySQL是一个开放源码的小型关联式数据库管理系统,开发者为瑞典MySQL AB公司。MySQL被广泛地应用在Internet上的中小型胜博发888手机平台中。由于其体积小、速度快、总体拥有成本低,尤其是开放源码这一特点,许多中小型胜博发888手机平台为了降低胜博发888手机平台总体拥有成本而选择了MySQL作为胜博发888手机平台数据库。


本文为大家讲解的是mysql报错:Error writing file '/var/run/mysqld/mysqld.pid'问题的解决方法,感兴趣的同学参考下。

错误描述:

[ERROR] /usr/libexec/mysqld: Error writing file '/var/run/mysqld/mysqld.pid' (Errcode: 28)

130830 10:59:02  InnoDB: Initializing buffer pool, size = 1.0G

130830 10:59:02  InnoDB: Completed initialization of buffer pool
130830 10:59:02  InnoDB: Started; log sequence number 0 2727887496
130830 10:59:02 [ERROR] /usr/libexec/mysqld: Error writing file '/var/run/mysqld/mysqld.pid' (Errcode: 28)
130830 10:59:02 [ERROR] Can't start server: can't create PID file: No space left on device
130830 10:59:02 mysqld_safe Number of processes running now: 0
130830 10:59:02 mysqld_safe mysqld restarted
130830 10:59:02  InnoDB: Initializing buffer pool, size = 1.0G
130830 10:59:02  InnoDB: Completed initialization of buffer pool
130830 10:59:02  InnoDB: Started; log sequence number 0 2727887496
130830 10:59:02 [ERROR] /usr/libexec/mysqld: Error writing file '/var/run/mysqld/mysqld.pid' (Errcode: 28)
130830 10:59:02 [ERROR] Can't start server: can't create PID file: No space left on device
130830 10:59:03 mysqld_safe Number of processes running now: 0
130830 10:59:03 mysqld_safe mysqld restarted
130830 10:59:03  InnoDB: Initializing buffer pool, size = 1.0G

错误原因:

不能写入默认的pid文件,就 修改 /etc/init.d/mysqld,把pid指向别的路经

解决方法:

[[email protected] mysqld]# vi /etc/init.d/mysqld

.....

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/opt/mysqldata/mysqld.pid"    # '/var/run/mysqld/mysqld.pid' 原始值,这里修改成别的路径/opt/mysqldata/mysqld.pid
mypidfile="$result"

.....

然后启动mysqld服务,OK,成功了。



相关阅读 :
mysql报错:Error writing file '/var/run/mysqld/mysqld.pid' 解决方法
linux mysql 报错:MYSQL:The server quit without updating PID file
mysql报错:MySQL server version for the right syntax to use near type=InnoDB的解决方法
mysql报错:Deadlock found when trying to get lock; try restarting transaction的解决方法
MySQL添加外键时报错:1215 Cannot add the foreign key constraint的解决方法
使用Mysql5.x以上版本出现报错#1929 Incorrect datetime value: '''' for column ''createtime''的快速解决方法
mysql错误:Can't create/write to file 'C:\WINDOWS\TEMP\...MYSQL报错解决方法
mysql报错 ERROR 2006 (HY000) at line xx: MySQL server has gone away 解决方法
mysql报错1033 Incorrect information in file: ''''xxx.frm''''问题的解决方法
linux下MySQL 报错 too many connection 解决方法
开启bin-log日志mysql报错的解决方法
MySql报错Table mysql.plugin doesn’t exist的解决方法
最新网友评论  共有(1)条评论 发布评论 返回顶部
uzfddx 发布于2015-05-06 16:10:20
不错解决了
支持(0)  反对(0)  回复
月排行榜

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  服务