Solve MySQL installation error: initializing database prompts an error when installing mysql
when we install MySQL database, we report an error in initializing database font> because MySQL has not been completely uninstalled before. We can solve it according to the following methods: font>
1. First stop the original MySQL service
-Right click my computer
– select “management”
– click “service”
– find MySQL
– right click to close the service
2. Enter the control panel to uninstall mysql
in the panel, right-click Mysql to uninstall, and then follow the steps prompted to uninstall font>
3. Go to MySQL installation directory and delete relevant files
generally, the database is on Disk C by default. Open it in the file browser, and then check the “hidden items” to open the following three files font>
– Program Files
– Program Files (x64)
– ProgramData
delete the MySQL directory under these three folders font>
4. Clean the registry and completely delete the MySQL service
Press and hold the windows key + r on the keyboard to open the command line, enter regedit to enter the registry
and find it in turn: font>
HKEY_ LOCAL_ MACHINE——SYSTEM——ControlSet001——services——eventlog——Application——MySQL
right click the MYSQL to delete it. If there are still the following directories: font>
HKEY_ LOCAL_ MACHINE——SYSTEM——ControlSet002——services——eventlog——Application——MySQL
you can also right-click to delete. If not, it will be ignored font>
5. Restart the system