Looking for more information on MySQL ? Search our Knowledge Base ! Once everything is uninstalled and your MySQL data directories have been deleted, simply restart your computer and confirm that the changes have taken place.Īnd there you have it! MySQL is uninstalled and its data directories are removed.
![delete mysql delete mysql](https://static.javatpoint.com/mysql/images/mysql-delete-statement4.png)
Select the View tab and remove the following folders from your system:Īlso check if a folder exists at the location: C:\Users\\AppData\Roaming\MySSQL
DELETE MYSQL WINDOWS
To completely remove MySQL from your Windows system, just follow these 3 steps:
DELETE MYSQL INSTALL
If you’d like to reinstall MySQL, you can do so using your distribution’s package manager, replacing the “ remove ” commands used above with the install command instead: *Note: need a refresher on renaming in Linux ? Check out this post from our Knowledge Base!Īt this point, you’ve successfully uninstalled MySQL from your Linux server. Sudo mv /var/lib/mysql /var/lib/mysql_directory_backup
![delete mysql delete mysql](https://i.ytimg.com/vi/RSoxxIaXXjI/maxresdefault.jpg)
To rename the old MySQL directory use the mv command: This way, the data remains, in case you ever need to access it in the future, but should you reinstall MySQL, it won’t check the newly renamed file and will instead create a new directory. You can choose to delete this directory entirely using the remove command, but it’s typically better to simply rename the old directory to something new. By default, this can be found at /var/lib/mysql.
![delete mysql delete mysql](https://www.tutorialgateway.org/wp-content/uploads/MySQL-Delete-Database-4.png)
Whether your running MySQL on Linux or Windows, just follow these instructions to uninstall MySQL and its associated data completely. If you find yourself needing to uninstall MySQL, it can be tricky sometimes to know if you’ve uninstalled it completely.