Skip to content

Instantly share code, notes, and snippets.

@hossainlab
Created March 28, 2020 13:46
Show Gist options
  • Save hossainlab/ff3bd348c0fa27bfd15f6f04c40fd6c8 to your computer and use it in GitHub Desktop.
Save hossainlab/ff3bd348c0fa27bfd15f6f04c40fd6c8 to your computer and use it in GitHub Desktop.
MySQL Installing and Removing in Ubuntu 19.10

MySQL Installing and Removing in Ubuntu 19.10

Check MySQL in Your System

systemctl status mysql.service 

Install MySQL on Ubuntu 19.10

sudo apt update
sudo apt install mysql-server

Configuring MySQL

sudo mysql_secure_installation

Enter MySQL

sudo mysql

## Uninstall / Remove 
### Option-1 

```bash 
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get autoremove
sudo apt-get autoclean

Option-2

sudo apt-get remove --purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean

Resource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment