How to install MySQL server on Ubuntu 20.04 LTS Linux

To install MySQL Server on Ubuntu 20.04 LTS Linux, follow these steps:

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

Leave a Comment