reinstall mysql ubuntu code example

Example 1: install mysql ubuntu

sudo apt install mysql-server

Example 2: uninstall mysql 8 ubuntu 20.04

sudo apt-get remove --purge mysql*

Example 3: how to install mysql ubuntu

sudo apt update
sudo apt install mysql-server
sudo service mysql start
sudo mysql_secure_installation
sudo mysql -u root 

In mysql console:
DROP USER 'root'@'localhost';
CREATE USER 'root'@'%' IDENTIFIED BY 'YOURPASSWORD';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Example 4: installing mysql on ubuntu

systemctl status mysql

Example 5: How to install mysql on Ubuntu

sudo apt install mysql-serverCopy

Example 6: install mysql ubuntu

//follow this blog

https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04

Tags:

Sql Example