To install the MySQL database server on Debian Linux, you can follow these steps:
- Update the package list:
sudo apt update
- Install the MySQL server package:
sudo apt install mysql-server
- During the installation process, you will be prompted to set a root password for the MySQL server. Choose a strong password and remember it, as you will need it later to manage the MySQL server.
- Start the MySQL service:
sudo systemctl start mysql
- Verify that the MySQL service is running:
sudo systemctl status mysql
This will display the status of the MySQL service and show that it is running.
- Configure the MySQL service to start automatically at boot:
sudo systemctl enable mysql
After completing these steps, the MySQL database server will be installed and running on your Debian system. You can use the mysql
command line client or a GUI client to connect to the MySQL server and manage databases and tables.