GNU/Linux >> Linux Esercitazione >  >> Debian

Installare MySQL 8.0 Server su Debian 11 Bullseye

MySQL è un sistema di database relazionale open source molto diffuso. Debian 11 usa MariaDB per impostazione predefinita, ma è possibile installare MySQL di Oracle aggiungendo il repository APT ufficiale.

Installare MySQL 8.0 su Debian 11

1. Scaricare il pacchetto del repository MySQL

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

Installare MySQL 8.0 Server su Debian 11 Bullseye

2. Aggiungere il repository MySQL

sudo apt install ./mysql-apt-config_*_all.deb

Selezionate MySQL Server and Cluster, scegliete MySQL 8.0 e confermate la configurazione.

Installare MySQL 8.0 Server su Debian 11 Bullseye Installare MySQL 8.0 Server su Debian 11 Bullseye Installare MySQL 8.0 Server su Debian 11 Bullseye

3. Aggiornare i metadati dei pacchetti

sudo apt update

4. Installare MySQL Server

Se MariaDB è già installato, rimuovetelo prima per evitare conflitti.

sudo apt install mysql-server

Impostate una password di root e scegliete il metodo di autenticazione forte quando richiesto.

Installare MySQL 8.0 Server su Debian 11 Bullseye Installare MySQL 8.0 Server su Debian 11 Bullseye

5. Avviare e abilitare MySQL

sudo systemctl enable --now mysql
systemctl status mysql

Installare MySQL 8.0 Server su Debian 11 Bullseye

6. Rendere sicura l'installazione

sudo mysql_secure_installation

Installare MySQL 8.0 Server su Debian 11 Bullseye

Debian
  1. Installare Redis Server su Debian 11

  2. Come installare MySQL 8.0 / 5.7 su Debian 11 / Debian 10

  3. Come installare Python 3.8 su Debian 11 Bullseye

  4. Come installare MySQL Server su Debian 9

  5. Come Installare MySQL su Debian 11

Installare FastPanel su Debian 11 in pochi comandi

Come installare I2P su server Debian

Come installare Python 3.7 su Debian 11 Bullseye

Come installare Elasticsearch su Debian 11 Bullseye

Installare Webmin su un server Debian 11 Bullseye

Come installare Discourse su Debian 11 Bullseye server