VPS侦探论坛

 找回密码
 注册
查看: 4251|回复: 4

mysql启动报错 Starting MySQL.The server quit without updating PID file (/usr/local/m

[复制链接]
发表于 2016-11-11 15:53:14 | 显示全部楼层 |阅读模式

mysql启动报错 
Starting MySQL.The server quit without updating PID file (/usr/local/mysql/var/egonew.pid).

错误日志:
161111 15:34:51 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
161111 15:34:51 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.48-log) starting as process 27553 ...
161111 15:34:51 [Note] Plugin 'FEDERATED' is disabled.
161111 15:34:51 InnoDB: The InnoDB memory heap is disabled
161111 15:34:51 InnoDB: Mutexes and rw_locks use GCC atomic builtins
161111 15:34:51 InnoDB: Compressed tables use zlib 1.2.7
161111 15:34:51 InnoDB: Initializing buffer pool, size = 128.0M
161111 15:34:51 InnoDB: Completed initialization of buffer pool
InnoDB: Error: space header page consists of zero bytes in data file ./ibdata1
161111 15:34:51 InnoDB: Could not open or create data files.
161111 15:34:51 InnoDB: If you tried to add new data files, and it failed here,
161111 15:34:51 InnoDB: you should now edit innodb_data_file_path in my.cnf back
161111 15:34:51 InnoDB: to what it was, and remove the new ibdata files InnoDB created
161111 15:34:51 InnoDB: in this failed attempt. InnoDB only wrote those files full of
161111 15:34:51 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
161111 15:34:51 InnoDB: remove old data files which contain your precious data!
161111 15:34:51 [ERROR] Plugin 'InnoDB' init function returned error.
161111 15:34:51 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
161111 15:34:51 [ERROR] Unknown/unsupported storage engine: InnoDB
161111 15:34:51 [ERROR] Aborting

161111 15:34:51 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

161111 15:34:51 mysqld_safe mysqld from pid file /usr/local/mysql/var/egonew.pid ended
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-11-11 15:55:48 | 显示全部楼层

my.cnf 配置文件



[client]
#password       = your_password
port            = 3306
socket          = /tmp/mysql.sock

[mysqld]
port            = 3306
socket          = /tmp/mysql.sock
datadir = /usr/local/mysql/var
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
thread_cache_size = 8
query_cache_size = 8M
tmp_table_size = 16M
table_open_cache = 64
#innodb_force_recovery=1

#skip-networking
max_connections = 500
max_connect_errors = 100
open_files_limit = 65535

log-bin=mysql-bin
binlog_format=mixed
server-id       = 1
expire_logs_days = 10

default_storage_engine = InnoDB
#innodb_data_home_dir = /usr/local/mysql/var
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /usr/local/mysql/var
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 16M
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50


[mysqldump]
quick
max_allowed_packet = 16M
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-11-11 19:21:42 | 显示全部楼层

回复 2# 的帖子


InnoDB: Error: space header page consists of zero bytes in data file ./ibdata1
161111 15:34:51 InnoDB: Could not open or create data files.
161111 15:34:51 InnoDB: If you tried to add new data files, and it failed here,
161111 15:34:51 InnoDB: you should now edit innodb_data_file_path in my.cnf back

你前面发的错误日志已经告诉你了
你既然启用了innodb,下面的那些你就别注释,mysql目录下面的文件也不能随便删除
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-11-14 11:17:10 | 显示全部楼层

军哥,注释打开还是不行,网上的方法都试过,就是不行,换成MYISAM,可以启动,但是访问不了之前的innodb数据库,是不是innodb引擎出问题了呀?




161114 11:01:44 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
161114 11:01:44 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.48-log) starting as process 16196 ...
161114 11:01:44 [Note] Plugin 'FEDERATED' is disabled.
161114 11:01:44 InnoDB: The InnoDB memory heap is disabled
161114 11:01:44 InnoDB: Mutexes and rw_locks use GCC atomic builtins
161114 11:01:44 InnoDB: Compressed tables use zlib 1.2.7
161114 11:01:44 InnoDB: Unrecognized value normal for innodb_flush_method
161114 11:01:44 [ERROR] Plugin 'InnoDB' init function returned error.
161114 11:01:44 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
161114 11:01:44 [ERROR] Unknown/unsupported storage engine: InnoDB
161114 11:01:44 [ERROR] Aborting

161114 11:01:44 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

161114 11:01:44 mysqld_safe mysqld from pid file /usr/local/mysql/var/egonew.pid ended
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-11-14 15:57:00 | 显示全部楼层

你安装的时候选启用innodb了没?
你做mysql配置改动的详细步骤及有哪些操作?

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-28 13:15 , Processed in 0.027232 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表