DEV Community

Robiul Awal
Robiul Awal

Posted on

How to install MySql on Linux

Step 1: Update Your Package List
sudo apt update
Step 2: Install MySQL Server
sudo apt install mysql-server
Step 3: Start MySQL Service
sudo systemctl start mysql
Step 4: Enable MySQL to Start on Boot
sudo systemctl enable mysql
Step 5: Secure MySQL Installation
Need to run the following command to set up security options like setting a root password, removing anonymous users, and disabling remote root login:

sudo mysql_secure_installation

Top comments (0)

Retry later
Retry later