Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mysqld service won't start

After Fedora 28 decided to upgrade mysql-community packages to 8.0 (latest) ,I realized my application was failing and had to downgrade to mysql 5.27.2

Of course my db files (.idb) were the same (altered by mysql 8.0). When starting mysql 5.27 service, it fails. I have read the log file /var/log/mysqld.log and found this:

InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibdata1 are 0x4000!

like image 305
jmojico Avatar asked May 22 '18 13:05

jmojico


People also ask

How do I fix attempting to start MySQL service?

If you have the MySQL already installed on your windows, then go to the Services by executing "services. msc" run command or from the Start menu on your windows and right-click the MySQL file and then stop the service, now open your XAMPP and start MySQL. Now the MySQL will start on the port 3306.

Can't start MySQL service while installing?

Restart the machine and try Instance Configuration Again. Uninstall all MySQL software and making sure that there was no service and reinstall. search registry to make sure there was no MySQL entries.


1 Answers

This problem was solved removing all database files:

 sudo rm -rf /var/lib/mysql/*

Please be aware you will lose every database in the server by doing this!!! In my case I had a dump and i could restore.

like image 106
jmojico Avatar answered Sep 18 '22 18:09

jmojico