2012-03-12 17 views
0

mysqlサーバの起動時に問題が発生しました。「ready」mysql設定ファイル(/usr/local/share/mysql/my-huge.cnf)を/etc/my.cnfにコピーしてからmysqlサーバを再起動し、再起動する代わりに。mysqlサーバを起動できません

私は、任意のコンソールエラーを持っていけないが、これは私の/var/db/mysql/hostname.pidファイルに表示されます。

120312 17:57:43 mysqld_safe mysqld from pid file /var/db/mysql/hostname.pid ended 
120312 17:58:09 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql 
120312 17:58:09 InnoDB: The InnoDB memory heap is disabled 
120312 17:58:09 InnoDB: Mutexes and rw_locks use GCC atomic builtins 
120312 17:58:09 InnoDB: Compressed tables use zlib 1.2.3 
120312 17:58:09 InnoDB: Initializing buffer pool, size = 128.0M 
120312 17:58:09 InnoDB: Completed initialization of buffer pool 
120312 17:58:09 InnoDB: highest supported file format is Barracuda. 
InnoDB: The log sequence number in ibdata files does not match 
InnoDB: the log sequence number in the ib_logfiles! 
120312 17:58:09 InnoDB: Database was not shut down normally! 
InnoDB: Starting crash recovery. 
InnoDB: Reading tablespace information from the .ibd files... 
InnoDB: Restoring possible half-written data pages from the doublewrite 
InnoDB: buffer... 
120312 17:58:09 InnoDB: Assertion failure in thread 34387018176 in file fsp0fsp.c line 2040 
InnoDB: Failing assertion: inode 
InnoDB: We intentionally generate a memory trap. 
InnoDB: Submit a detailed bug report to http://bugs.mysql.com. 
InnoDB: If you get repeated assertion failures or crashes, even 
InnoDB: immediately after the mysqld startup, there may be 
InnoDB: corruption in the InnoDB tablespace. Please refer to 
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html 
InnoDB: about forcing recovery. 
17:58:09 UTC - mysqld got signal 6 ; 
This could be because you hit a bug. It is also possible that this binary 
or one of the libraries it was linked against is corrupt, improperly built, 
or misconfigured. This error can also be caused by malfunctioning hardware. 
We will try our best to scrape up some info that will hopefully help 
diagnose the problem, but since we have already crashed, 
something is definitely wrong and this may fail. 

key_buffer_size=8388608 
read_buffer_size=131072 
max_used_connections=0 
max_threads=151 
thread_count=0 
connection_count=0 
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 338444 K bytes of memory 
Hope that's ok; if not, decrease some variables in the equation. 

120312 17:58:09 mysqld_safe mysqld from pid file /var/db/mysql/hostname.pid ended 

いただきましたの?

+0

古いcnfファイルをバックアップします。サーバの設定がmy-huge.cnfと一致しません - ib_dataファイルからサーバをバックアップしようとすると、linuxで同様のエラーが発生します。 MyISAMはうまく動作しますが、innodbはテーブルを構成するために他のファイルを使用するために使用しません。 – B4NZ41

答えて

1

ibdataファイルのサイズが間違っています。

さらに正確には、ibdataファイルは、新しいmy.cnfファイルで指定したものとは異なるファイルサイズです。 my.cnfファイルの古いバージョンと新しいバージョンのibdata(とbinログファイルの値)をチェックしてください。違いはわかります。

にはがあり、古い値を使用してdbを開始させます。そこに他のinnodbの値もチェックしてください:重要なものをすべて同じものにします(作業をした後にそれらを変更します)。一度起動したら、dbsをダンプしてからmysqldをシャットダウンしてください。 my.cnfファイルを編集し、ibdataを削除し、dbを再起動して、dbsを再インポートします。プレスト - 固定。

+0

ログファイル、 'ibdata'ファイル、そして最後に' my.cnf'ファイルを削除しているので、非常に奇妙です... mysqlは見つめていますが、なぜNO configで始まるのですか? '/ etc'に設定ファイルを置くと、問題が発生します。 – Cyclone

+0

設定ファイルがない場合、mysqldはすべてのデフォルト値で始まります。そのため、設定ファイルがないのはなぜですか。私はあなたがこの一連の作業で大丈夫だと思います:バックアップ(ibdataファイルにデータがあるので)、ibdataとib_logfile [01]を削除し、必要な設定を開始してください。データを再読み込みすると、すべての設定が完了します。 –

0

my.cnfファイルが不良であるか、いくつかの不良エントリがあるようです。あなたはmy.cnfで置き換えられたmy.cnfのコピーを持っていますか?私は2つのファイルのdiffを実行し、何が起こっているかを見てみましょう。

+1

my.cnfファイルではありません - mysqlのインストール後に表示されるファイルです。 '/ etc /'に 'my.cnf'ファイルがありますが、mysqlサーバが動作しました!その後、サンプルファイルをそこにコピーして問題を開始し、このファイルを削除してmysqlサーバを起動しようとしました。結果もなく、このcnfファイルを別のサーバで使用しているものに置き換えようとしました。 .. – Cyclone

0

おそらくInnodbのログが壊れている可能性があります。このログの名前を変更してmysqldを再起動してから、mysqldは新しいログを作成し、正常に再起動するようにしてください。

+0

既にあなたが言ったことを試しました - 結果はありません。 – Cyclone

関連する問題