The server quit without updating PID file (/application/mysql/localhost.localdomain.pid).

报错信息:

[[email protected] scripts]# /etc/init.d/mysqld start
Starting MySQL.. ERROR! The server quit without updating PID file (/application/mysql/localhost.localdomain.pid).
[[email protected] scripts]# 
[[email protected] scripts]# cat
150506 23:12:36 mysqld_safe Starting mysqld daemon with databases from /application/mysql
/application/mysql/bin/mysqld: Table ‘mysql.plugin‘ doesn‘t exist
150506 23:12:36 [ERROR] Can‘t open the mysql.plugin table. Please run mysql_upgrade to create it.
150506 23:12:36 InnoDB: The InnoDB memory heap is disabled
150506 23:12:36 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150506 23:12:36 InnoDB: Compressed tables use zlib 1.2.3
150506 23:12:36 InnoDB: Initializing buffer pool, size = 128.0M
150506 23:12:36 InnoDB: Completed initialization of buffer pool
150506 23:12:36 InnoDB: highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn 48941
150506 23:12:36  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 1595675
150506 23:12:36  InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 
InnoDB: Apply batch completed
150506 23:12:36  InnoDB: Waiting for the background threads to start
150506 23:12:37 InnoDB: 5.5.32 started; log sequence number 1595675
150506 23:12:37 [Note] Server hostname (bind-address): ‘0.0.0.0‘; port: 3306
150506 23:12:37 [Note]   - ‘0.0.0.0‘ resolves to ‘0.0.0.0‘;
150506 23:12:37 [Note] Server socket created on IP: ‘0.0.0.0‘.
150506 23:12:37 [ERROR] Fatal error: Can‘t open and lock privilege tables: Table ‘mysql.host‘ doesn‘t exist
150506 23:12:37 mysqld_safe mysqld from pid file /application/mysql/localhost.localdomain.pid ended
[[email protected] scripts]#

解决方法:

1.查看是否有其他mysql数据库已经安装并使用了3306端口

[[email protected] scripts]# ps aux|grep mysql*

[[email protected] scripts]# rpm -qa|egrep mysql

2.查看 /etc/my.cnf

[[email protected] application]# cat /etc/my.cnf

3.更改配置文件,添加下面的内容:

[[email protected] application]# vi /etc/my.cnf 

[mysqld]

datadir=/application/mysql/data

4.然后重新启动数据库:

/etc/init.d/mysqld start

5.如果还不行,查看日志文件确定问题。

时间: 2024-08-07 22:14:52

The server quit without updating PID file (/application/mysql/localhost.localdomain.pid).的相关文章

the server quit without updating pid file (/var/lib/mysql/localhost.localdomain.pid)

前几天装的mysql,用的还挺爽的,第二天再用就不行了,报的错误如标题.网上也是众说纷纭,可能有很多原因会导致这种错误吧.我用的是将Mysqld这个进程杀掉,就可以启动mysql了 the server quit without updating pid file (/var/lib/mysql/localhost.localdomain.pid),布布扣,bubuko.com the server quit without updating pid file (/var/lib/mysql/l

Starting MySQL...The server quit without updating PID file [失败]lib/mysql/localhost.localdomain.pid).

重启了一下服务器,启动后就报以下错误了: 纠结了很久没找到解决办法,后来突然想到修改了mysql的配置文件"/usr/my.cnf" 之前配置默认编码,在配置文件中添加了"default-character-set=utf8" 把这一句删除了,再启动mysql就好了. 在解决这个问题过程中找到的比较好的资料,这里收藏一下: 问题起因:今天做了一件事情:我在VM 上将一数据库的数据文件(/var/lib/mysql整个文件夹)拷贝到另外一台VM上,然后新的VM 上启动

centos6.6下编译安装mysql5.6之后启动失败:Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).

今天在编译安装mysql5.6时候出现Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).,当时就心碎了,之前安装时候好好的,在网上搜索帮助方法,可是没有和我一样的,有的说我没有给mysqld赋权限,可是我赋予他权限了,试了一堆方法,最后心灰意冷,准备删除mysql重新安装,就在我执行:yum remove mysql mysql

mysql修改后启动my.cnf报错Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).

mysql中文乱码解决 mysql修改my.cnf后启动报错Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid). 这里简单明了地说下: 对于mysql5.5版本,需要在/etc/mysql/my.cnf做如下修改: [client]下添加: default-character-set = utf8 [mysqld]下添加: cha

mysql 服务重启报MySQL server PID file could not be found!*pid...

今天只是想发表个感慨,同时将这部分教训写出来,让大家有个经验,很简单的mysql数据库搭建,网上有很多安装教程,不用多说. 我只是把我安装后遇到的问题写出来,给自己提个醒,MySQL数据库装完之后(是卸载删除了以前的mysql重装的),我就直接启动mysql服务,service mysql restart ,发现报出如下错误. [[email protected] mysql]# service mysql restartMySQL server PID file could not be fo

Linux mysql 报错:MYSQL:The server quit without updating PID file

[[email protected] ~]# service mysqld startStarting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid). 1.可能是/usr/local/mysql/data/rekfan.pid文件没有写的权限解决方法 :给予权限,执行 “chown -R mysql:mysql /usr/local/mysql

Starting MySQL...The server quit without updating PID file

修改mysql的配置文件(my.cnf)后,再启动mysqld的时候报错: # service mysqld start Starting MySQL...The server quit without updating PID file (/var/mysql/data/test.pid).[FAILED] 起初一直认为修改是没有问题的,找了很多其它解决方法尝试无果. 最后将my.cnf文件恢复后,可以正常启动. 建议在修改配置文件前,先做好文件的备份工作.

mysql编译安装完成后,启动时报错The server quit without updating PID file

源码包下载: 编译安装: 设置配置文件: 添加启动脚本: 添加开机启动项: 完成后,/etc/init.d/mysqld start 时候报错如下: Starting MySQL..The server quit without updating PID file ( [FAILED] al/mysql/data/FrankTest01.pid). 1.防火墙SELINUX有没有关闭 2.3306端口有没有被占用   netstat -tulanp 3.是否有其他相关的mysqld进程在运行.

开启mysql慢查询,重启提示Starting MySQL.The server quit without updating PID file

在my.cnf文件中加入: datadir = /usr/local/mysql/data long_query_time = 1 #记录下查询时间查过1秒. log-slow-queries = /usr/local/mysql/log/db-Test2-slow.log #日志目录. #log-queries-not-using-indexes #表示记录下没有使用索引的查询. 之后,重启mysql,提示: [[email protected] subsys]# service mysql