#!/bin/bash ############################################################## ### bash <(curl -fsSL https://raw.lhy.life/discard/mysql.sh) ### ############################################################## wget -O mysql-apt-config.deb https://dev.mysql.com/get/mysql-apt-config_0.8.30-1_all.deb dpkg -i ./mysql-apt-config.deb apt update && apt install mysql-community-server -y ## https://github.com/docker-library/mysql/issues/1048#issuecomment-2088836076 echo 'mysql_native_password=ON' >> /etc/mysql/mysql.conf.d/mysqld.cnf systemctl restart mysql rm -rf mysql-apt-config.deb