diff --git a/changelog.d/20240704_112127_danyal.faheem_fix_mysql_native_password_plugin.md b/changelog.d/20240704_112127_danyal.faheem_fix_mysql_native_password_plugin.md new file mode 100644 index 0000000000..edfd9f40ca --- /dev/null +++ b/changelog.d/20240704_112127_danyal.faheem_fix_mysql_native_password_plugin.md @@ -0,0 +1 @@ +- [Bugfix] Fix `mysql-native-password is not loaded` error in MySQL 8.4 when upgrading from tutor 15 or an earlier release to tutor 18 by enabling the plugin. (by @Danyal-Faheem) \ No newline at end of file diff --git a/tutor/templates/k8s/deployments.yml b/tutor/templates/k8s/deployments.yml index ee4e9e8573..778118b511 100644 --- a/tutor/templates/k8s/deployments.yml +++ b/tutor/templates/k8s/deployments.yml @@ -397,6 +397,7 @@ spec: - "--character-set-server=utf8mb4" - "--collation-server=utf8mb4_unicode_ci" - "--binlog-expire-logs-seconds=259200" + - "--mysql-native-password=ON" env: - name: MYSQL_ROOT_PASSWORD value: "{{ MYSQL_ROOT_PASSWORD }}" diff --git a/tutor/templates/local/docker-compose.yml b/tutor/templates/local/docker-compose.yml index aaa9601da0..14e141434d 100644 --- a/tutor/templates/local/docker-compose.yml +++ b/tutor/templates/local/docker-compose.yml @@ -44,6 +44,7 @@ services: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --binlog-expire-logs-seconds=259200 + --mysql-native-password=ON restart: unless-stopped user: "999:999" volumes: