Lost connection to MySQL server at 'reading initial communication packet'
错误
我/etc/rc.d/init.d/mysql start 启动下又好了。好多次都出现这样了
求助。。。。大家的帮忙。。
...全文
60014打赏收藏
MYSQL 奇怪问题。自动停止。
环境是 FreeBSD系统、nginx环境、php5.2。8、mysql5.0 有时候不知道为什么会出现 Lost connection to MySQL server at 'reading initial communication packet' 错误 我/etc/rc.d/init.d/mysql start 启动下又好了。好多次都出现这样了 求助。。。。大家的帮忙。。
91112 18:49:06 mysqld_safe mysqld from pid file /usr/data0/mysql3306/test.com.pid ended
091112 18:49:07 mysqld_safe Starting mysqld daemon with databases from /usr/data0/mysql3306
091112 18:49:07 [Warning] The syntax 'for replication startup options' is deprecated and will be removed in MySQL 6.0. Please use 'CHANGE MASTER' instead.
091112 18:49:07 [Warning] Changed limits: max_open_files: 11095 max_connections: 768 table_cache: 5158
091112 18:49:07 InnoDB: Started; log sequence number 0 46409
091112 18:49:08 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his ho
stname changed!! Please use '--relay-log=dq5420-1001-relay-bin' to avoid this problem.
091112 18:49:08 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.000001' at position 106, relay log './dq5420-1001-relay-bin.00000
1' position: 4
091112 18:49:08 [Note] Event Scheduler: Loaded 0 events
091112 18:49:08 [Note] /usr/local/webserver/mysql/libexec/mysqld: ready for connections.
Version: '5.1.34-log' socket: '/tmp/mysql.sock' port: 2323 Source distribution
091112 18:49:08 [ERROR] Slave I/O: error connecting to master 'user_bak@xxx.xxx.xxx.xxx:2424' - retry-time: 60 retries: 86400, Error_code: 1045
我都删除了。还是有。。
091111 17:11:28 mysqld_safe Starting mysqld daemon with databases from /usr/data0/mysql3306
091111 17:11:28 [Warning] The syntax 'for replication startup options' is deprecated and will be removed in MySQL 6.0. Please use 'CHANGE MASTER' instead.
091111 17:11:28 [Warning] Changed limits: max_open_files: 11095 max_connections: 768 table_cache: 5158
InnoDB: No valid checkpoint found.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/error-creating-innodb.html
091111 17:11:28 [ERROR] Plugin 'InnoDB' init function returned error.
091111 17:11:28 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
091111 17:11:28 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his ho
stname changed!! Please use '--relay-log=dq5420-1001-relay-bin' to avoid this problem.
091111 17:11:28 [Note] Slave SQL thread initialized, starting replication in log 'FIRST' at position 0, relay log './dq5420-1001-relay-bin.000001' position:
4
下面是日志文件。大家帮帮忙是什么错误影响到的呢?
091102 03:47:40 mysqld_safe Starting mysqld daemon with databases from /usr/data0/mysql3306
InnoDB: No valid checkpoint found.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/error-creating-innodb.html
091102 3:47:41 [ERROR] Plugin 'InnoDB' init function returned error.
091102 3:47:41 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
091102 3:47:41 [Note] Event Scheduler: Loaded 0 events
091102 3:47:41 [Note] /usr/local/webserver/mysql/libexec/mysqld: ready for connections.
Version: '5.1.34-log' socket: '/tmp/mysql.sock' port: 3267 Source distribution
091102 3:47:48 [Note] /usr/local/webserver/mysql/libexec/mysqld: Normal shutdown
091104 19:15:31 mysqld_safe mysqld from pid file /usr/data0/mysql3306/dq5420-1001.local.com.pid ended
091104 19:15:32 mysqld_safe Starting mysqld daemon with databases from /usr/data0/mysql3306
091104 19:15:32 [Warning] Changed limits: max_open_files: 11095 max_connections: 768 table_cache: 5158
InnoDB: No valid checkpoint found.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/error-creating-innodb.html
091104 19:15:32 [ERROR] Plugin 'InnoDB' init function returned error.
091104 19:15:32 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
091104 19:15:33 [Note] Event Scheduler: Loaded 0 events
091104 19:15:33 [Note] /usr/local/webserver/mysql/libexec/mysqld: ready for connections.
Version: '5.1.34-log' socket: '/tmp/mysql.sock' port: 3267 Source distribution
091107 20:27:52 mysqld_safe Starting mysqld daemon with databases from /usr/data0/mysql3306
091107 20:27:52 [Warning] Changed limits: max_open_files: 11095 max_connections: 768 table_cache: 5158
InnoDB: No valid checkpoint found.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/error-creating-innodb.html
091107 20:27:53 [ERROR] Plugin 'InnoDB' init function returned error.
091107 20:27:53 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
091107 20:27:54 [Note] Event Scheduler: Loaded 0 events
091107 20:27:54 [Note] /usr/local/webserver/mysql/libexec/mysqld: ready for connections.
Version: '5.1.34-log' socket: '/tmp/mysql.sock' port: 3267 Source distribution