Ad Widget

Collapse

ошибка открытия базы mysql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vad_v
    Junior Member
    • Dec 2014
    • 16

    #1

    ошибка открытия базы mysql

    День добрый.
    Затерлись файлы ib_logfile0 и ib_logfile1.
    MySQL запускается,пробовал режим innodb_force_recovery=6, только в логе:
    Code:
    .
    .
    .
    141230  6:40:03 InnoDB: !!! innodb_force_recovery is set to 6 !!!
    141230  6:40:03 [Note] Server socket created on IP: '0.0.0.0'.
    141230  6:40:03 [Note] Event Scheduler: Loaded 0 events
    141230  6:40:03 [Note] /usr/sbin/mysqld: ready for connections.
    Version: '5.5.33-MariaDB'  socket: '/var/run/mysql/mysql.sock'  port: 3306  openSUSE package
    141230  6:40:11 [ERROR] Cannot find or open table zabbix/dbversion from the internal data dictionary of InnoDB though the .frm file for the
    table exists. Maybe you have deleted and recreated InnoDB data
    files but have forgotten to delete the corresponding .frm files
    of InnoDB tables, or you have moved .frm files to another database?
    or, the table contains indexes that this version of the engine
    doesn't support.
    See [url]http://dev.mysql.com/doc/refman/5.5/en/innodb-troubleshooting.html[/url]
    how you can resolve the problem.
  • Zentarim
    Senior Member
    • Mar 2012
    • 526

    #2
    Originally posted by vad_v
    День добрый.
    Затерлись файлы ib_logfile0 и ib_logfile1.
    MySQL запускается,пробовал режим innodb_force_recovery=6, только в логе:
    Code:
    .
    .
    .
    141230  6:40:03 InnoDB: !!! innodb_force_recovery is set to 6 !!!
    141230  6:40:03 [Note] Server socket created on IP: '0.0.0.0'.
    141230  6:40:03 [Note] Event Scheduler: Loaded 0 events
    141230  6:40:03 [Note] /usr/sbin/mysqld: ready for connections.
    Version: '5.5.33-MariaDB'  socket: '/var/run/mysql/mysql.sock'  port: 3306  openSUSE package
    141230  6:40:11 [ERROR] Cannot find or open table zabbix/dbversion from the internal data dictionary of InnoDB though the .frm file for the
    table exists. Maybe you have deleted and recreated InnoDB data
    files but have forgotten to delete the corresponding .frm files
    of InnoDB tables, or you have moved .frm files to another database?
    or, the table contains indexes that this version of the engine
    doesn't support.
    See [url]http://dev.mysql.com/doc/refman/5.5/en/innodb-troubleshooting.html[/url]
    how you can resolve the problem.

    Уверены, что только они затерлись?

    141230 6:40:11 [ERROR] Cannot find or open table zabbix/dbversion from the internal data dictionary of InnoDB though the .frm file for the
    table exists. Maybe you have deleted and recreated InnoDB data

    Да и вообще слово "затерлись" настораживает. Вот прям так сами взяли и затерлись?

    Comment

    • vad_v
      Junior Member
      • Dec 2014
      • 16

      #3
      Originally posted by Zentarim
      Уверены, что только они затерлись?

      141230 6:40:11 [ERROR] Cannot find or open table zabbix/dbversion from the internal data dictionary of InnoDB though the .frm file for the
      table exists. Maybe you have deleted and recreated InnoDB data

      Да и вообще слово "затерлись" настораживает. Вот прям так сами взяли и затерлись?
      Несколько раз пробовали восстановить. Копировали с места на место, вот и случайно вновь созданный лог переписали на старый. ibdata1 сохранился, а вот логи нет.

      Comment

      • yukra
        Senior Member
        • Apr 2013
        • 1359

        #4
        Originally posted by vad_v
        ibdata1 сохранился, а вот логи нет.
        Обычно помогает полное удаление файлов логов и повторный старт сервера, но вот сообщение "Cannot find or open table zabbix/dbversion ..." как бы намекает что не в логах дело. Может было указанно innodb_file_per_table ??

        Кстати уверены что версия БД и версия заббикс сервера (или заббикс фронтенда) совпадают?

        Comment

        • Zentarim
          Senior Member
          • Mar 2012
          • 526

          #5
          Originally posted by vad_v
          старый. ibdata1 сохранился
          а ругается на другой файл.

          Действительно, проверьте innodb_file_per_table

          Comment

          • vad_v
            Junior Member
            • Dec 2014
            • 16

            #6
            Не получилось восстановить. Пришлось базу с нуля поднимать

            Comment

            Working...