Skip to content
TrySitePrice

Debian Linux Install MySQL Database Server

Best/Tutorial

To install the MySQL database server on Debian Linux, you can follow these steps:

  1. Update the package list:

    sudo apt update

  2. Install the MySQL server package:

    sudo apt install mysql-server

  3. 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.
  4. Start the MySQL service:

    sudo systemctl start mysql

  5. 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.

  6. Configure the MySQL service to start automatically at boot:

    sudo systemctl enable mysql

rnAfter 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.