Let us understand how to install MySQL on Linux −
Linux supports many different solutions to install MySQL. We will see how to install MySQL on Ubuntu 20.02. Following are the steps −
Step1 − Open Terminal and enter the following command −
Press Enter above and wait for download to complete.
Step 2 − Set Password
Use the mysql_secure_installation command and press enter to set password.
Step 3 − Now, enter the MySQL Console using the below command
Step 4 − Display all the databases using the “SHOW DATABASES’ command −
Now, start creating a new database and tables in it.