uninstall
First open the Control Panel >>> Programs >>> Programs and Features to uninstall all mysql programs.
Then go to the computer files to check if there are any mysql files left, and delete them all.
Delete the mysql path in the system variable Path.
Then go to delete the service and run the terminal as an administrator.
Finally, go to the registry to delete the item about mysql. There are some differences between different computers here, so search online by yourself.
Take my computer as an example: (the file is not specified below, anyway, I will find the file with mysql)
Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\EventLog\
download
Keep going to the next step.
Set the password halfway until the installation is complete.
In the end I was using a DateGrip app to connect to the database.