To install MySQL Server on Ubuntu 20.04 LTS Linux, follow these steps:
- Open the terminal by pressing “Ctrl + Alt + T” or by searching for “terminal” in the start menu
- Run the command “sudo apt update” to update the package list
- Run the command “sudo apt install mysql-server” to install MySQL Server
- After the installation is complete, run the command “sudo mysql_secure_installation” to secure the installation
- Follow the prompts to set a root password, remove anonymous users, and disable remote root login
- Run the command “sudo systemctl status mysql” to check the status of the MySQL service, it should be active (running)
- You can now use the “mysql” command to access the MySQL shell and create databases and tables.