7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-10 01:32:21 +00:00
tutor/tests
Régis Behmo 2a47100d6a fix: broken mysql after palm upgrade
This fix is for a rather serious issue that affects users who upgrade
from Olive to Palm. The client mysql charset and collation was
incorrectly set to utf8mb4, while the server stil runs utf8mb3. Only
users who run the mysql container are affected.

To resolve this issue, we explicitely configure the client to use the
utf8mb3 charset/collation.

Important note: users who have somehow managed to upgrade from olive to
Palm before may find themselves in an undefined state. They might have
to fix their mysql data manually. Same thing for users who launched Palm
from scratch; although, according to my preliinary tests, they should be
able to downgrade their connection from utf8mb4 to utf8mb3 without
issue.

In addition, we upgrade to mysql 8.1.0. Among many other fixes, this
avoids a server restart after the upgrade:

> An in-place upgrade from MySQL 5.7 to MySQL 8.0, without a server
> restart, could result in unexpected errors when executing queries on
> tables. This fix eliminates the need to restart the server between the
> upgrade and queries. (Bug #35410528)

https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-34.html

See also the 8.1.0 release notes:

https://dev.mysql.com/doc/relnotes/mysql/8.1/en/news-8-1-0.html

Close #887.
2023-08-16 19:01:41 +02:00
..
commands fix: broken mysql after palm upgrade 2023-08-16 19:01:41 +02:00
core depr: templated hooks 2023-06-14 21:08:49 +02:00
__init__.py Add unit tests! yay! 2019-03-23 16:16:44 -07:00
helpers.py feat: refactor hooks API for simplification 2023-01-31 10:17:58 +01:00
openedx-lms-common-settings Better dev environment 2019-10-24 20:03:36 +02:00
test_bindmount.py feat: persistent bind-mounts 2023-06-14 21:08:49 +02:00
test_config.py feat: strongly typed hooks 2022-11-15 14:58:36 +01:00
test_env.py feat: upgrade to Palm 2023-06-14 19:40:58 +02:00
test_plugin_indexes.py feat: plugin indexes 2023-02-10 10:06:38 +01:00
test_plugins_v0.py depr: templated hooks 2023-06-14 21:08:49 +02:00
test_serialize.py fix: format output of config printvalue as yaml 2023-06-14 21:08:49 +02:00
test_utils.py refactor: move format_table function to utils 2023-02-28 09:45:11 +01:00