在``mysql''的pid文件管理器中退出而没有更新文件 [英] In ''mysql'' Manager of pid file quit without update file

查看:261
本文介绍了在``mysql''的pid文件管理器中退出而没有更新文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ubuntu 12.04 32位上安装mysql时遇到严重问题.当我使用命令``./mysql.server start''启动mysql时,我得到了pid文件退出的错误管理器,而没有更新pid文件.我安装了``mysql-5.1.39-linux-i686-glibc23''. 我已彻底搜索解决此错误的解决方案,但仍无法解决.我将my-medium.cnf文件复制到/etc目录中,并由my.cnf重命名,还在"mysql服务器"部分中编辑了该文件,并添加了以下行"datadir =/exports/disk0/data"但可以解决此问题.有人可以帮忙吗?

I am in a serious problem while installing mysql on ubuntu 12.04 32 bit. when i start mysql with command ''./mysql.server start'' I got this error Manager of pid file quit without updating pid file. I installed ''mysql-5.1.39-linux-i686-glibc23''. I thoroughly search for the solution to fix this error but cannot resolve it yet. I copied my-medium.cnf file to the /etc directory and rename it by my.cnf also edited this file in the section ''The mysql Server'' and add these lines ''datadir = /exports/disk0/data'' but could fix this problem. Can any one help on this.

推荐答案

关于pid文件的消息有点像鲱鱼.这仅表示初始化脚本/etc/init.d/mysql没有返回成功.根本原因可能是多种多样的,例如,数据目录中的文件权限问题,配置文件中包含无效行或数十种其他可能的问题.

The message bout the pid file is kind of a red herring. It just means that the init script /etc/init.d/mysql did not return success. The root cause could be a variety of things, for example file permissions problems in your datadir, or the config file contained an invalid line, or dozens of other possible problems.

当您收到有关pid文件的错误时,您应该做的第一件事就是阅读MySQL错误日志文件.通常,它在数据目录中,并且可能称为hostname.err(其中主机名"是您安装MySQL的服务器的名称).

When you get the error about the pid file, the first thing you should do is to go read the MySQL error log file. Usually this is in the data directory, and it may be called hostname.err (where "hostname" is the name of the server you installed MySQL).

在文件中搜索报告"ERROR"的所有行,然后使用Google研究错误.

Search the file for any lines reporting "ERROR" and then use Google to research the error.

这篇关于在``mysql''的pid文件管理器中退出而没有更新文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆