Como instalar MySql 8 no Debian 12.
apt update apt install wget -y
wget https://repo.mysql.com//mysql-apt-config_0.8.29-1_all.deb apt install ./mysql-apt-config_0.8.29-1_all.deb -y apt updatePs. Sinta-se avontade para baixar o resitório mais recente no site da MySQl
https://dev.mysql.com/downloads/
Caso precise refazer alguma configuração execute:
dpkg-reconfigure mysql-apt-config
apt update apt install mysql-server -y
systemctl enable --now mysql systemctl status mysql
mysql_secure_installation
Press y|Y for Yes, any other key for No: Y Remove anonymous users? (Press y|Y for Yes, any other key for No) : y Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y