Skip to content

Commit 097cd1e

Browse files
Update authentication plugin to caching_sha2_password (mysql_native_password is deprecated)
1 parent 5a5e4b6 commit 097cd1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ jobs:
278278
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md#mysql
279279
sudo apt-get install -y mysql-server
280280
sudo systemctl start mysql
281-
sudo mysql -uroot -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ''; FLUSH PRIVILEGES;"
281+
sudo mysql -uroot -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY ''; FLUSH PRIVILEGES;"
282282
sudo systemctl restart mysql
283283
sudo mysql -uroot -e "SELECT VERSION();"
284284

tools/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RUN mvn -Pdeveloper -Dsimulator -DskipTests clean install
5858
RUN find /var/lib/mysql -type f -exec touch {} \; && \
5959
(/usr/bin/mysqld_safe &) && \
6060
sleep 5; \
61-
mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by ''" --connect-expired-password; \
61+
mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password by ''" --connect-expired-password; \
6262
mvn -Pdeveloper -pl developer -Ddeploydb; \
6363
mvn -Pdeveloper -pl developer -Ddeploydb-simulator; \
6464
MARVIN_FILE=`find /root/tools/marvin/dist/ -name "Marvin*.tar.gz"`; \

0 commit comments

Comments
 (0)