当前位置:Gxlcms > 数据库问题 > 启动mysql时报错误:Starting MySQL.The server quit without updating PID file (/var/lib/mysql/tserver.pid).[FAILED]

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

时间:2021-07-01 10:21:17 帮助过:3人阅读

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).[FAILED]

标签:

人气教程排行