ダメージしたデータベースフォームの修復
2011/03/09(水) 23:02
ホームページをアクセスする時mysqlエラーが現れました:
view plaincopy to clipboardprint?
01.load() - DBD::mysql::st execute failed: Table './test/test_user' is marked as crashed and last (automatic?) repair failed at /usr/local/share/perl/5.10.0/Rose/DB/Object.pm line 385.
コマンドラインでアクセスする時は:
view plaincopy to clipboardprint?
01.ERROR 145 (HY000): Table './test/tst_user' is marked as crashed and should be repaired
ERROR 145 (HY000): Table './test/tst_user' is marked as crashed and should be repaired
始まる時はmyisamchk -r -o /home/test/test_user.MYIを使って修復する,エラーが現れてきた:myisamchk: error: myisam_sort_buffer_size is too small。
dfがmysql tempディレクトリが小さすぎる,逆にこのフォームが。my.cnfファイルを変更するtempパスが剰余空間が大きなファイルに移動する。
もう一度myisamchk -r -o /home/test/test_user.MYIをアグゼクティブする,エラー:
view plaincopy to clipboardprint?
01.myisamchk: error: Can't create new tempfile: '/home/test/test_user.TMD'
02.myisamchk: Unknown error 126
03.myisamchk: error: 126 when reading last record
仕方がないです,強引でmyisamchk -r -o -f /home/test/test_user.MYをエグゼクティブする
Translated from:
http://blog.csdn.net/hfahe/archive/2010/05/18/5604130.aspx