MySQL-003 Install MySQL in Linux Distribution
Install MySQL
The following command will be used to install the MySQL
sudo apt install mysql-server
![](https://www.ruianding.com/blog/wp-content/uploads/2024/03/image-2.png)
Verify the Installation
systemctl status mysql
![](https://www.ruianding.com/blog/wp-content/uploads/2024/03/image-3.png)
Secure the Installation
Run the following command to process the secure installation.
sudo mysql_secure_installation
The next prompt will ask for the secure level of password validation policy
![](https://www.ruianding.com/blog/wp-content/uploads/2024/03/image-4.png)
In my test environment, it says skipping password set as I am authenticated with root.
![](https://www.ruianding.com/blog/wp-content/uploads/2024/03/image-6.png)
Test MySQL Shell
sudo mysql
Show databases
show databases;
![](https://www.ruianding.com/blog/wp-content/uploads/2024/03/image-8.png)