Uninstall MySQL 8 Database from Ubuntu 22.04 LTS

Опубликовано: 13 Октябрь 2024
на канале: PnTutorials by Pradnyankur Nikam
3,141
44

Completely remove or Uninstall MySQL 8 database server from Linux Ubuntu 22.04LTS operating system. You may be learning SQL or working on a MySQL projects. Once you remove MySQL, all your data would be gone. So before uninstall we will take database back. Once MySQL uninstall on Ubuntu 22.04LTS is done. The uninstall steps in this video will work on from Ubuntu 18.04LTS to Ubuntu 22.10 (Latest release). You can do a fresh installation by following my video tutorial where I've covered MySQL 8 installation on Linux Ubuntu 22.04LTS. Here is the link:    • How to Install MySQL 8 in Ubuntu 22.0...  

The command used in this tutorial are as following,

MySQL 8 database export/backup command *
sudo mysqldump -u root -p --all-databases > /home/pradnyankur/Desktop/alldb.sql

Purge or remove all MySQL packages command *
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*

Remove MySQL 8 database files & folder command *
sudo rm -rf /etc/mysql /var/lib/mysql /var/log/mysql

Chapters #

0:00 Introduction
01:04 Backup or Export MySQL 8 databases in Linux Ubuntu 22.04LTS
04:40 Stop MySQL 8 server instance in Ubuntu 22.04LTS operating system
05:21 Purge or remove all MySQL 8 packages from Linux Ubuntu 22.04LTS
06:31 Delete all MySQL 8 files & folders from Ubuntu 22.04LTS
07:15 Remove and Clean MySQL 8 packages from Ubuntu 22.04LTS
08:11 End message, ask questions, like & subscribe

#Linux #Ubuntu #MySQL8 #Uninstall #Remove #Database #PnTutorials