I did a backup of the data folder from mysql server to keep all databases information.
C:\ProgramData\MySQL\MySQL Server 5.7\Data
I uninstalled MySQL server in Control Panel. I copied the data folder and pasted it back where it should be.
I am then trying to reinstall the service using MySQL installer. However, it is stuck on Starting Server... forever and sometimes will pop a message saying it is taking too long than expected. I tried this solution but it does not work for me.
When I remove the ibdata1
, Mysql server installs, starts and runs. However, whenever I try to run a query on a table I get database_name.table
does not exist.
Clearly to me the problem is ibdata1
... So what should I do, if I really need to restore all the databases?