For complete removal of MySQL installed from MSI package [MySQL 8 on Windows 10 PC.]
MySQL programs can be uninstalled one by one from Control Panel > Add or Remove Programs
or using MySQL Installer
application.
Using MySQL Installer:
Find MySQLInstaller.exe or MySQLInstallerLauncher.exe (both do the same job)
By default, installer reseides in the System folder where Windows is installed. In my PC it was in below location:
C:\Program Files (x86)\MySQL\MySQL Installer for Windows\
A start menu shortcut may also be available on default installation. Look for MySQL Installer - Community
Double-click on MySQLInstaller (or MySQLInstallerLauncher) and the MySQL installer window will appear.
Here you'll see Add, Modify, Upgrade, Remove, etc. options. Select Remove
.
Again, you can remove one by one or all at once by selecting Product
and then execute
.
This will take some time, installer may freeze in the middle, just kill the process and start again(takes a lot of patience). Don't worry, installer will start where it stopped.
Note: When MySQL is removed using this method, only the installed components are removed. Any database information (including the tables and data), import or export files, log files, and binary logs produced during execution are kept in their configured location.
In default installation, MySQL files are stored in below locations:
C:\ProgramData\MySQL
C:\Program Files\MySQL
C:\Program Files (x86)\MySQL
C:\Users\user_name\AppData\Roaming\MySQL
The C:\ProgramData
directory is hidden by default, thus installer will not remove this folder.
To delete MySQL completely, check above locations and remove MySQL folders manually if they exist.
Now MySQL should be removed completely along with all configurations and databases.
Uninstalling from Control Panel: I believe we all know how to uninstall programs from Control Panel.