To install MySQL on a Linux system, you can use the package manager specific to your distribution. Below are instructions for installing MySQL on some popular Linux distributions:
sudo apt update
sudo apt install mysql-server
sudo systemctl status mysql
After MySQL is installed and running, you can secure the installation by running the MySQL secure installation script:
sudo mysql_secure_installation
Follow the prompts to set a root password, remove anonymous users, disallow remote root login, and remove test databases and access to them.
Once completed, you can start using MySQL on your Linux system for storing and managing databases.