![]() ![]() Similar to the prior process, we have also renamed the file located at /etc/ which was previously named as mysql has been renamed to mysql_bk. This command has renamed the file present at /var/lib/ from mysql to mysql_bk (bk is used for indicating backup, you can make it as you want.) To take backup of your files, use following commands: We are going to rename them so they won’t get deleted. These files are present in /etc and /var/lib/mysql directory. We recommend you top backup your directories because they might contain important information inside. Sudo apt purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*īacking up and Removing MySQL Directories To uninstall MySQL Server with all dependencies, use the following commands: We are going to use purge so that we can remove all the packages including dependencies. To check the status of MySQL, use the following command:Īs you can see, MySQL is in an inactive state so use the following command to make it inactive:Īs you can see, it is inactive now so we can proceed further in the uninstallation process. The reason behind this is we can’t remove actively running programs. If it is in an inactive state, we have to stop MySQL. Unlike other uninstallation processes where you can remove packages by a single command, we are required here to perform several tasks to remove MySQL completely from Ubuntu so that we can reinstall it without worrying about any conflictsįirst, we have to check whether MySQL is currently running or not. It can be scaled to handle thousands of queries per second. It is so powerful that you can use it from storing a single record of data to the entire inventory of products for an e-commerce store. It is used for a wide range of applications such as data warehousing, e-commerce, and many more but it is mainly used for web databases. MySQL is a database management system based on SQL (Structured Query Language). Today, we will guide you through how you can manually remove MySQLfrom Ubuntu 22.04 or later including configuration files. You can’t just remove your MySQL by sudo apt remove. Most of the time, MySQL works great without any issues but sometimes we may face issues that can be related to configuration files and many others. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |