To install the MySQL database server on a Debian Linux system, follow these steps:
sudo apt-get update
sudo apt-get install mysql-server
During the installation, you will be prompted to set a password for the MySQL root user. Enter and confirm a strong password, then continue with the installation.
After the installation is complete, start the MySQL service:
sudo systemctl start mysql
sudo systemctl enable mysql
mysql_secure_installation
script:sudo mysql_secure_installation
This script will ask you a series of questions to secure the MySQL installation. Answer the questions as appropriate for your setup.
That's it! You should now have MySQL installed and running on your Debian Linux system.