Debian Linux Install MySQL Database Server

Debian Linux Install MySQL Database Server

To install the MySQL database server on a Debian Linux system, follow these steps:

  1. Update the package lists:
r‮:ot refe‬lautturi.com
sudo apt-get update
  1. Install the MySQL server package:
sudo apt-get install mysql-server
  1. 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.

  2. After the installation is complete, start the MySQL service:

sudo systemctl start mysql
  1. To make the MySQL service start automatically on boot, enable it:
sudo systemctl enable mysql
  1. To secure the MySQL installation, run the 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.

Created Time:2017-10-28 14:02:24  Author:lautturi