mysql启动报错 Starting MySQL.The server quit without updating PID file (/usr/local/m
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 /usr/local/mysql/bin/mysqld (mysqld 5.5.48-log) starting as process 27553 ...
161111 15:34:51 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 Plugin 'InnoDB' init function returned error.
161111 15:34:51 Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
161111 15:34:51 Unknown/unsupported storage engine: InnoDB
161111 15:34:51 Aborting
161111 15:34:51 /usr/local/mysql/bin/mysqld: Shutdown complete
161111 15:34:51 mysqld_safe mysqld from pid file /usr/local/mysql/var/egonew.pid ended
my.cnf 配置文件
#password = your_password
port = 3306
socket = /tmp/mysql.sock
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
quick
max_allowed_packet = 16M
回复 2# 的帖子
InnoDB: Error: space header page consists of zero bytes in data file ./ibdata1161111 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目录下面的文件也不能随便删除
军哥,注释打开还是不行,网上的方法都试过,就是不行,换成MYISAM,可以启动,但是访问不了之前的innodb数据库,是不是innodb引擎出问题了呀?
161114 11:01:44 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var161114 11:01:44 /usr/local/mysql/bin/mysqld (mysqld 5.5.48-log) starting as process 16196 ...
161114 11:01:44 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 Plugin 'InnoDB' init function returned error.
161114 11:01:44 Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
161114 11:01:44 Unknown/unsupported storage engine: InnoDB
161114 11:01:44 Aborting
161114 11:01:44 /usr/local/mysql/bin/mysqld: Shutdown complete
161114 11:01:44 mysqld_safe mysqld from pid file /usr/local/mysql/var/egonew.pid ended 你安装的时候选启用innodb了没?
你做mysql配置改动的详细步骤及有哪些操作?
页:
[1]