'How to reinstall MySQL in Windows but keep all data and configuration

MySQL server was working fine yesterday until the windows update today. I've been looking a solution and tried different ones. I'm running on a Windows 11 OS.

Note that I cannot start the service so I cannot backup my database using mysqldump

What I've tried so far:

  1. Reconfiguring MySQL Server using the community installer
  2. Repair the installed program in Control Panel - Programs and Features

What I'm planning more to do:

  1. Delete the previously installed windows update

I've checked the C:\ProgramData\MySQL folder and found my databases with .IDB extension and configuration files. I was wondering if these files were necessary to backup my data.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source