dcsimg
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2015
    Posts
    1

    Corrupt MySQL db, how to fix?

    I work for a small company made up of a salesman, a graphic artist, and an engineer.
    The engineer writes and maintains all of his own software to run a network of interactive kiosks around the globe.
    As artist, I use his tools to update the network.
    Last month, the engineer died of a heart attack - leaving me and the salesman to keep the network running.

    The power supply went out on the pc hosting the mysql server and corrupted the db. I am trying to recover the db, but I am flying blind.

    All I have to go on are the instructions on how to reboot the server should it go down.
    This tells me where the db is located the user name and password.

    1.When I run the start up, I get: InnoDB:
    2.Error: page XX log sequence number 0 36808 is in the future!
    3.Current system log sequence number 0 8204.
    4.Your database may be corrupt or you may have copied the InnoDB
    5.tablespace but not the InnoDB log files. See blah, blah for more
    information.

    I feel like the kid trying to land the plane when the pilot passed out.

    What should be my next move?

  2. #2
    Join Date
    Apr 2015
    Posts
    1
    Probably here you'll find the answer http://www.sqlservercentral.com/Foru...94-2893-1.aspx

  3. #3
    Join Date
    May 2015
    Posts
    19
    Use following commands to shutdown and restoring the database:

    mysqladmin --defaults-file=/usr/local/mysql/my.cnf --user=root --password shutdown

    mysqlbackup --defaults-file=/usr/local/mysql/my.cnf \ --backup-dir=/export/backups/full/copy-back

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.