In this article, we have explained how to install MySQL on Ubuntu Server. This article contains 4 steps.
Install MySQL on Ubuntu:
Prerequisites:
1. Must have internet conneciton.
2. Make sure you are logged in as a user with sudo privileges
1. Update Index Package:
sudo apt-get update
2. Install MySQL server.
sudo apt install mysql-server
3. Install security script.
sudo mysql_secure_installation
4. Change root user password.
Connect to MySQL server
sudo mysql
Change the root password as shown below example:
alter user root@localhost IDENTIFIED BY 'Admin@123';
5. Verify the MySQL Server status on Ubuntu:
systemctl status mysql.service
Same explained in this video. If its useful to you, please subscribe my channel.