Step 01: Update your packages with the command:
sudo apt update
Step 02: Upgrade your packages with the command:
sudo apt upgrade
Step 03: With packages upgraded, install MySQL with the command:
sudo apt install mysql-server
Step 04: You can then log in to MySQL Server by running the command:
sudo mysql -u root
#ubuntu #linux #mysql