База сломалась. Нужно восстановить.

wiefix
На сайте с 25.07.2008
Offline
96
1092

База данных сломалась. Есть файлы: ib_logfile1, ib_logfile0, ibdata1 и *.frm файлы. Нужно из этого восстановить базу. Кто сможет помочь?

Вдохновения в картинках (http://2inspire.ru)
[umka]
На сайте с 25.05.2008
Offline
456
#1
wiefix:
База данных сломалась. Есть файлы: ib_logfile1, ib_logfile0, ibdata1 и *.frm файлы. Нужно из этого восстановить базу. Кто сможет помочь?

Что значит "сломалась"? Дала трещину или какую шестерню заклинило? :)

Ошибки какие-нибудь пишет?

Лог в помощь!
wiefix
На сайте с 25.07.2008
Offline
96
#2
'[umka:
;8232133']Что значит "сломалась"? Дала трещину или какую шестерню заклинило? :)
Ошибки какие-нибудь пишет?

Ну повредилась вроде как сама по себе.

Вот у парня такая же проблема была

N
На сайте с 06.05.2007
Offline
419
#3

wiefix, ошибки то пишет хоть какие-нибудь?

не указал ничего - будь готов, что тебе выставят расценки в широком диапазоне.

http://www.percona.com/prices/per-hour-prices/


Premium Rate - Two Hour Minimum
Tasks below have a two-hour minimum billing per incident, or $900 ($450 per hour Ч 2):
Data recovery tasks, whether done on an emergency basis or not.

ну это так, попугаться.

Кнопка вызова админа ()
wiefix
На сайте с 25.07.2008
Offline
96
#4

Stellar Phoenix Database Recovery for MySQL

Эта программа данные и таблицы видит. А вот вручную что-то восстановить неполучаеться. =( Логов тоже нет — удалили.

N
На сайте с 06.05.2007
Offline
419
#5
Stellar Phoenix Database Recovery for MySQL

Ну так и восстанови ей. Украл, выпил, в тюрьму...

Думаешь, вручную дешевле 300$ будет?

Новые логи должны быть. Когда mysql загружается он запускает innodb и что-то пишет в логи. Покажи их.

wiefix
На сайте с 25.07.2008
Offline
96
#6

101223 13:39:53 InnoDB: Started; log sequence number 0 59557458

InnoDB: !!! innodb_force_recovery is set to 4 !!!

101223 13:39:53 [Note] /usr/sbin/mysqld: ready for connections.

Version: '5.0.51a-24+lenny1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian)

101223 13:39:54InnoDB: Assertion failure in thread 3013704592 in file dict0load.c line 369

InnoDB: Failing assertion: ut_dulint_cmp(table->id, mach_read_from_8(field)) == 0

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.0/en/forcing-recovery.html

InnoDB: about forcing recovery.

101223 13:39:54 - mysqld got signal 11;

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=2097152

read_buffer_size=131072

max_used_connections=1

max_connections=100

threads_connected=1

It is possible that mysqld could use up to

key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 219647 K

bytes of memory

Hope that's ok; if not, decrease some variables in the equation.

thdxa27b068

Attempting backtrace. You can use the following information to find out

where mysqld died. If you see no messages after this, something went

terribly wrong...

Cannot determine thread, fpxb3a13088, backtrace may not be correct.

Stack range sanity check OK, backtrace follows:

0x81f3821

0x8346440

0x8342d18

0x82b61f9

0x82aa2df

0x8236c1d

0x822cfa8

0x822f4e1

0x822fb03

0x822fde7

0x82e52a1

0x82dd1f0

0x8255625

0x82520ab

0x8257196

0x82074dc

0x820de0e

0x8210793

0x821121a

0x8211b94

0x89ff3b

0x4bfbee

New value of fpnil) failed sanity check, terminating stack trace!

Please read http://dev.mysql.com/doc/mysql/en/using-stack-trace.html and follow instructions on how to resolve the stack trace. Resolved

stack trace is much more helpful in diagnosing the problem, so please do

resolve it

Trying to get some variables.

Some pointers may be invalid and cause the dump to abort...

thd->query at 0xa2b3990 = SELECT CONCAT('SELECT COUNT(*) INTO @discard FROM `',

TABLE_SCHEMA, '`.`', TABLE_NAME, '`' )

FROM information_schema.TABLES WHERE ENGINE='MyISAM'

thd->thread_id=6

The manual page at http://www.mysql.com/doc/en/Crashing.html contains

information that should help you find out what is causing the crash.

101223 13:39:54 InnoDB: Started; log sequence number 0 59557458

InnoDB: !!! innodb_force_recovery is set to 4 !!!

101223 13:39:54 [Note] /usr/sbin/mysqld: ready for connections.

Version: '5.0.51a-24+lenny1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian)

wiefix добавил 23.12.2010 в 16:46

Что это можетбыть?

N
На сайте с 06.05.2007
Offline
419
#7

wiefix, да, это уже что-то страшное. могу посмотреть.

останови, запакуй все имеющиеся файлы и вышли мне. емейл в личке.

wiefix
На сайте с 25.07.2008
Offline
96
#8

Отписал....

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий