CT MySQL: Bumped mysql version
Bumped mysql to 8.4-lts updated auth policy to `caching_sha2_password`
This commit is contained in:
@@ -1547,7 +1547,7 @@ packages:
|
|||||||
#Mysql Repo
|
#Mysql Repo
|
||||||
- name: mysql.list
|
- name: mysql.list
|
||||||
url: |-
|
url: |-
|
||||||
deb [signed-by=/usr/share/keyrings/mysql-archive-keyring.gpg arch=amd64] http://repo.mysql.com/apt/debian/ {{ image.release }} mysql-8.0
|
deb [signed-by=/usr/share/keyrings/mysql-archive-keyring.gpg arch=amd64] http://repo.mysql.com/apt/debian/ {{ image.release }} mysql-8.4-lts
|
||||||
variants:
|
variants:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
@@ -1737,7 +1737,7 @@ actions:
|
|||||||
echo $password > /opt/Setup/TempMysqlPasswd
|
echo $password > /opt/Setup/TempMysqlPasswd
|
||||||
debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password $password"
|
debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password $password"
|
||||||
debconf-set-selections <<< "mysql-community-server mysql-community-server/re-root-pass password $password"
|
debconf-set-selections <<< "mysql-community-server mysql-community-server/re-root-pass password $password"
|
||||||
debconf-set-selections <<< "mysql-community-server mysql-server/default-auth-override select Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)"
|
debconf-set-selections <<< "mysql-community-server mysql-server/default-auth-override select Use Strong Password Encryption (RECOMMENDED)"
|
||||||
variants:
|
variants:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
[mysqld]
|
[mysqld]
|
||||||
disable_log_bin
|
disable_log_bin
|
||||||
default-authentication-plugin = mysql_native_password
|
# Use legacy authentication method
|
||||||
|
## mysql_native_password = ON
|
||||||
|
## authentication_policy = mysql_native_password
|
||||||
|
|
||||||
|
# Use recommended authentication method
|
||||||
|
authentication_policy = caching_sha2_password
|
||||||
|
|
||||||
user = mysql
|
user = mysql
|
||||||
pid-file = /var/run/mysqld/mysqld.pid
|
pid-file = /var/run/mysqld/mysqld.pid
|
||||||
socket = /var/run/mysqld/mysqld.sock
|
socket = /var/run/mysqld/mysqld.sock
|
||||||
|
|||||||
Reference in New Issue
Block a user