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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了启动mysql时报错误:Starting MySQL.The server quit without updating PID file (/var/lib/mysql/tserver.pid).[F相关的知识,希望对你有一定的参考价值。

  进入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即可

以上是关于启动mysql时报错误:Starting MySQL.The server quit without updating PID file (/var/lib/mysql/tserver.pid).[F的主要内容,如果未能解决你的问题,请参考以下文章

解决Linux下MySQL启动错误Starting MySQL.Manager of pid-file quit without updating file.[FAILED]

mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/mysql

IDEA启动Tomcat时报java.lang.IllegalStateException: Error starting child

IDEA启动Tomcat时报java.lang.IllegalStateException: Error starting child

linux 启动mysq报错 提示 mysqld: cannot execute binary file

mysql启动报错:Starting MySQL... ERROR! The server quit without updating PID file