How To Install MySQL Server on Ubuntu!

Created September 6, 2021

Step 1. Installing MySQL

On Ubuntu 20.04, you can install MySQL using the APT package repository. At the time of this writing, the version of MySQL available in the default Ubuntu repository is version 8.0.19.

To install it, update the package index on your server if you’ve not done so recently:

sudo apt update

sudo apt update.png Then install the mysql-server package:

sudo apt install mysql-server

sudo apt install mysql-server.png This will install MySQL, but will not prompt you to set a password or make any other configuration changes. Because this leaves your installation of MySQL insecure, we will address this next.

If you found this usful then please comment and follow me! Also check out my website where I also post everything from here