2012-03-07 22 views
1

新しく作成したデータベースにダンプをインポートするとき、サーバーは従来のserver has gone awayメッセージで停止しました。私はこれがなぜ起こったのか知っています。それが起こったという事実は問題の一部ではありません。私は/usr/local/mysql/data/からデータベースディレクトリを削除しましたが、おそらくログや初期化ファイルのためにmysqldが正常に起動しません。MySQL:データベースへの参照をすべて削除する

目的は、mysqlを完全に再インストールしなくてもこれを解決することです。

MySQLのERRログ:

InnoDB: Page checksum 1559794421, prior-to-4.0.14-form checksum 641317514 
InnoDB: stored checksum 3364647797, prior-to-4.0.14-form stored checksum 641317514 
InnoDB: Page lsn 16 1049927436, low 4 bytes of lsn at page end 1049927436 
InnoDB: Page number (if stored to page already) 43379, 
InnoDB: space id (if created with >= MySQL-4.1.1 and stored already) 0 
InnoDB: Page may be an index page where index id is 0 3302 
InnoDB: (index "some_index" of table "some_database"."some_table") 
InnoDB: Database page corruption on disk or a failed 
InnoDB: file read of page 43379. 
InnoDB: You may have to recover from a backup. 
InnoDB: It is also possible that your operating 
InnoDB: system has corrupted its own file cache 
InnoDB: and rebooting your computer removes the 
InnoDB: error. 
InnoDB: If the corrupt page is an index page 
InnoDB: you can also try to fix the corruption 
InnoDB: by dumping, dropping, and reimporting 
InnoDB: the corrupt table. You can use CHECK 
InnoDB: TABLE to scan your table for corruption. 
InnoDB: See also http://dev.mysql.com/doc/refman/5.1/en/forcing-innodb-recovery.html 
InnoDB: about forcing recovery. 
InnoDB: Ending processing because of a corrupt database page. 

MySQLバージョン:

$ mysql --version 
/usr/local/mysql/bin/mysql Ver 14.14 Distrib 5.1.55, for apple-darwin10.3.0 (i386) using readline 5.1 

MySQLのconfファイル:

$ cat /etc/my.cnf 
[mysqld] 
max_allowed_packet=128M 

答えて

関連する問題