MySQL startet nicht mehr

C

Clif

Grünschnabel
[erledigt] MySQL startet nicht mehr

Hallo zusammen,

ich musste gestern das Backup von meinem Server einspielen, seit dem startet aber mysql nicht mehr.
Code:
140823 11:51:35 InnoDB: Completed initialization of buffer pool
140823 11:51:35 InnoDB: highest supported file format is Barracuda.
140823 11:51:35  InnoDB: Waiting for the background threads to start
140823 11:51:36 InnoDB: Error: tablespace size stored in header is 3712 pages, but
140823 11:51:36 InnoDB: the sum of data file sizes is only 3136 pages
140823 11:51:36 InnoDB: Cannot start InnoDB. The tail of the system tablespace is
140823 11:51:36 InnoDB: missing. Have you edited innodb_data_file_path in my.cnf in an
140823 11:51:36 InnoDB: inappropriate way, removing ibdata files from there?
140823 11:51:36 InnoDB: You can set innodb_force_recovery=1 in my.cnf to force
140823 11:51:36 InnoDB: a startup if you are trying to recover a badly corrupt database.
140823 11:51:36 [ERROR] Plugin 'InnoDB' init function returned error.
140823 11:51:36 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140823 11:51:36 [ERROR] Unknown/unsupported storage engine: InnoDB
140823 11:51:36 [ERROR] Aborting

wenn ich
Code:
innodb_force_recovery=1
in der my.cfg setze startet mysql zwar aber ich kann nicht verbinden.
Hat jemand eine Idee dazu :)?
 
Zuletzt bearbeitet:
Problem gelöst.

mit
Code:
innodb_force_recovery=1
habe ich mysql zum laufen gebracht und einen Dump (mittels mysqldump) gezogen.
Danach /var/lib/mysql leer gemacht und mysql_install_db ausgeführt. Schnell noch das root passwort setzen und den Dump einspielen und alles läuft wieder...

Code:
mysqld --innodb_force_recovery=1 &
mysqldump --all-databases > sqldump.sql
rm -rf /var/lib/mysql/*
mysql_install_db
/usr/bin/mysqladmin -u root password "PASSWORT"
/etc/init.d/mysql start
mysql -uroot -p < sqldump.sql
ggf empfiehlt es sich /var/lib/mysql zu sichern ;)
 

Ähnliche Themen

Nginx als Reverse Proxy für Nextcloud und Emby

Akonadi startet nicht mehr

JBidWatcher: Problem bei loading Auctions in Verbindung mit mySQL

Autostart von X mit google-chrome durch systemd

X startet nichtmehr

Zurück
Oben