Skip to content

Commit c3bda1b

Browse files
committed
Use caching_sha2_password authentication plugin
`mysql_native_password` is now disabled by default in 8.4 and removed in 9.0. So, it's better to use the new default authentication plugin which is `caching_sha2_password`
1 parent 54e8c82 commit c3bda1b

File tree

1 file changed

+1
-1
lines changed
  • runner/main/modules/docker-database/mysqli.d/primary/docker-entrypoint-initdb.d

1 file changed

+1
-1
lines changed

runner/main/modules/docker-database/mysqli.d/primary/docker-entrypoint-initdb.d/01_privileges.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE USER 'replication'@'%' IDENTIFIED WITH mysql_native_password BY 'replication';
1+
CREATE USER 'replication'@'%' IDENTIFIED WITH caching_sha2_password BY 'replication';
22
GRANT REPLICATION SLAVE ON *.* TO 'replication'@'%';
33

44
ALTER USER 'root'@'%' IDENTIFIED BY 'moodle';

0 commit comments

Comments
 (0)