启动mysql时报错误:Starting MySQL.The server quit without updating PID file (/var/lib/mysql/tserver.pid).[FAILED]

  进入mysql目录输入命令行

# less localhost.localdomain.err
160703 20:00:12 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
2016-07-03T12:00:12.397109Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-07-03T12:00:12.398333Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2016-07-03T12:00:12.398884Z 0 [Note] /usr/local/Cellar/mysql/5.7.10/bin/mysqld (mysqld 5.7.10) starting as process 837 ...
2016-07-03T12:00:12.406560Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2016-07-03T12:00:12.413518Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-07-03T12:00:12.413545Z 0 [Note] InnoDB: Uses event mutexes
2016-07-03T12:00:12.413550Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-07-03T12:00:12.413556Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-07-03T12:00:12.414298Z 0 [Note] InnoDB: Number of pools: 1
2016-07-03T12:00:12.415508Z 0 [Note] InnoDB: Using CPU crc32 instructions
2016-07-03T12:00:12.424979Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2016-07-03T12:00:12.437917Z 0 [Note] InnoDB: Completed initialization of buffer pool
2016-07-03T12:00:12.451096Z 0 [ERROR] InnoDB: The innodb_system data file ‘ibdata1‘ must be writable
2016-07-03T12:00:12.451136Z 0 [ERROR] InnoDB: The innodb_system data file ‘ibdata1‘ must be writable
2016-07-03T12:00:12.451189Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2016-07-03T12:00:12.754267Z 0 [ERROR] Plugin ‘InnoDB‘ init function returned error.
2016-07-03T12:00:12.754344Z 0 [ERROR] Plugin ‘InnoDB‘ registration as a STORAGE ENGINE failed.
2016-07-03T12:00:12.754370Z 0 [ERROR] Failed to initialize plugins.
2016-07-03T12:00:12.754377Z 0 [ERROR] Aborting

2016-07-03T12:00:12.754396Z 0 [Note] Binlog end
2016-07-03T12:00:12.756029Z 0 [Note] Shutting down plugin ‘CSV‘
2016-07-03T12:00:12.756511Z 0 [Note] /usr/local/Cellar/mysql/5.7.10/bin/mysqld: Shutdown complete

160703 20:00:12 mysqld_safe mysqld from pid file /usr/local/var/mysql/huangjicaideMacBook-Pro.local.pid ended

解决方法:

删除mysql目录下:ibdata1  ib_logfile0  ib_logfile1 这3个文件,重启mysql即可

时间: 2024-10-31 18:07:01

启动mysql时报错误:Starting MySQL.The server quit without updating PID file (/var/lib/mysql/tserver.pid).[FAILED]的相关文章

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

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

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 上启动

Starting MySQL....The server quit without updating PID file[失败]/lib/mysql/ip12189.pid). 错误一例

[[email protected] etc]# service mysqld startStarting MySQL....The server quit without updating PID file[失败]/lib/mysql/ip12189.pid). 原因: 在 mysqld 中使用 default-character-set 设置这样的设置, mysql 启动会报错而无法启动. 5.1版本时,可以这么写.但在5.5版本, [mysql] 项内可以这么写default-charac

Mysql启报错报The server quit without updating PID file

mysql 安装时候安装后启动不成功报错: Starting MySQL.. ERROR! The server quit without updating PID file (/data/mysql/26765574162f.pid). 查看报错日志: [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist 解决办法: 1.编辑配置文件: vim /etc/my.cn

解决mysql启动时报The server quit without updating PID file 的错误(转)

1.一般是权限问题,把用户和组改为mysql就可以了. chown -R mysql:mysql  /var/lib/mysql 2.在启动mysql时报下列错误 [[email protected] ~]# service mysql.server startStarting MySQL......................................The server quit without updating PID file (/var/lib/mysql/mysqld2.c

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

(/var/lib/mysql/NeoKylin-CNVL.cs1cloud.internal.pid).   [失败]

启动mysql数据库失败 [[email protected] opt]# service mysql start Starting MySQL.....The server quit withoutupdating PID file (/var/lib/mysql/NeoKylin-CNVL.cs1cloud.internal.pid).                         [失败] 解决方法: 将ervice mysql start启动方式改为/etc/init.d/mysqls