Close Menu
DPC Virtual Tips
    Read More

    How to Troubleshoot Packet Drops on an ESXi Host

    August 16, 2026

    SlurmDBD Is Down: What Continues Working and What Does Not

    August 15, 2026

    How to Investigate Jobs Stuck in COMPLETING State on Slurm

    August 14, 2026
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Tuesday, August 25
    DPC Virtual Tips
    • Home
    • Operating Systems
    • PowerFlex
    • HPC
    • Virtualization
    • About the Author
    • About Us
    • Contact
    DPC Virtual Tips
    Home » Installing MySQL DB on Debian 11
    Operating Systems

    Installing MySQL DB on Debian 11

    DaniloBy DaniloDecember 6, 2023Updated:July 30, 2026No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Installing MySQL on Debian 11
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Installing MySQL DB on Debian 11 is an article that shows how to install the DB MySQL on Linux Debian 11 step-by-step.

    First and foremost, we have written an article explaining how to install the Debian 11 in a lab environment. If you want to check it, please visit the below link:
    https://dpcvirtualtips.com/installing-linux-debian-11/

    Downloading and Installing the MySQL Debian Repository

    First, we must download the MySQL repository file and install it on our Debian 11 OS:

    apt update
    
    apt install wget -y
    
    wget https://dev.mysql.com/get/mysql-apt-config_0.8.20-1_all.deb

    After downloading the file “mysql-apt-config_0.8.20-1_all.deb”, we need to install it:

    dpkg -i mysql-apt-config_*_all.deb

    Installing the MySQL Server on Debian 11

    We will install the MySQL Server package on our Debian 11 system. Run the command to update the packages:

    apt update

    In this case, we received an error related to the MySQL repo:

    E: The repository 'http://repo.mysql.com/apt/debian bullseye InRelease' is not signed.

    Checking the apt keys, we can see that this repo key is expired:

    apt-key list

    We need to delete this key. We can do that with the below command:

    apt-key del 'A4A9 4068 76FC BD3C 4567  70C8 8C71 8D3B 5072 E1F5'
    

    I tried to follow up on the steps provided in the below link to fix this issue, but I did not have success:
    https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/

    So, I will update the local repository using a commando to bypass the repository validation – It is not recommended, but in this case, it was the only way that I found to follow up on this procedure:

    apt update --allow-insecure-repositories

    After that, install the MySQL server:

    apt install mysql-server

    Type the root password for the MySQL server:

    Re-enter the root password:

    MySQL 8 uses a new authentication based on improved SHA256-based password methods. You can use or not this new authentication method. In our case, for instance, we will not use this method:

    Wait a few seconds while the installation is running:

    Here, we can check the MySQL service status:

    systemctl status mysql

    Here, we can check if the MySQL server is configured to automatically starts on the system’s boot:

    Improving the MySQL Server Secure

    The MySQL server installations come with a script called “mysql_secure_installation”. This script allows you to improve the MySQL server security:

    mysql_secure_installation

    As we can see in the below pictures, we have a lot of configurations to tune and improve the MySQL server security. You can choose each option to fit your needs:

    Accessing the MySQL Server from the Command Line

    We can interact locally with the MySQL server, accessing it using the following command:

    mysql -u root -p


    Wrapping This Up

    If you can access your MySQL server as we can show in the above picture, your installation is fine and now you can create your databases, tables, and so on 🙂

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleInstalling Apache with PHP on Debian 11
    Next Article Working on MySQL Server on Debian 11
    Danilo

    Infrastructure Engineer with experience in Virtualization, Linux, Windows Server and learning automation using Python. DPC Virtual Tips was created to share practical tutorials, lab experiences and troubleshooting guides focused on enterprise infrastructure technologies.

    Related Posts

    Linux Server Has Free Memory but Is Swapping: Why?

    August 13, 2026

    How to Determine Whether Packet Loss Is Local or Network Related on Linux

    August 12, 2026

    How to Investigate TCP Retransmissions on Linux

    August 11, 2026

    Comments are closed.

    Search
    Categories
    • HPC (12)
    • Operating Systems (85)
    • PowerFlex (22)
    • Virtualization (130)
    Read More
    Virtualization

    How to Troubleshoot Packet Drops on an ESXi Host

    By DaniloAugust 16, 20260
    HPC

    SlurmDBD Is Down: What Continues Working and What Does Not

    By DaniloAugust 15, 20260
    HPC

    How to Investigate Jobs Stuck in COMPLETING State on Slurm

    By DaniloAugust 14, 20260
    Operating Systems

    Linux Server Has Free Memory but Is Swapping: Why?

    By DaniloAugust 13, 20260
    Operating Systems

    How to Determine Whether Packet Loss Is Local or Network Related on Linux

    By DaniloAugust 12, 20260
    Latest Posts

    How to Troubleshoot Packet Drops on an ESXi Host

    August 16, 2026

    SlurmDBD Is Down: What Continues Working and What Does Not

    August 15, 2026

    How to Investigate Jobs Stuck in COMPLETING State on Slurm

    August 14, 2026
    Images from Gallery
    hpc main commands
    linux commands
    install rock linux
    lustre fs
    shell scripting
    vSAN Trace Files
    Categories
    • HPC
    • Operating Systems
    • PowerFlex
    • Virtualization
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Copyright © 2026, DPC Virtual Tips. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies to ensure your best experience on our website. If you continue using our website, we'll assume you agree to our cookie policy