This error also happens when your Database data is corrupt. You may fix this issue by moving your Db data files (ib_logfile0 and ib_logfile1) mentioned below to another location. ib_logfile0 and ib_logfile1 are system tablespace for the InnoDB infrastructure. These files contains several classes for information vital for InnoDB. You may read about these files here.
Before following below steps please keep a copy of files (ib_logfile0 and ib_logfile1) so you may restore your data in case it is lost:
Follow below steps:
- Login to server via SSH with root access.
- Navigate to /var/lib/mysql.
- If you see files like, ib_logfile0 and ib_logfile1, rename or move them to some other folder.
- Stop and start the MySQL service by running
sudo service mysql stop
andsudo service mysql start
These files will be recreated after you restart the server and the issue will be fixed hopefully.
Thanks