From b11172080a2781f5fae28fc0e237c10119f47956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B5=A9=E6=96=8C?= Date: Fri, 29 Sep 2023 22:27:00 +0800 Subject: [PATCH] Update restore.sh --- trunk/install/restore.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/install/restore.sh b/trunk/install/restore.sh index e45948af8c0..6b660f5332f 100755 --- a/trunk/install/restore.sh +++ b/trunk/install/restore.sh @@ -28,6 +28,7 @@ chown www-data -R /home/judge/src/web/ bzip2 -d var/backups/db_${BAKDATE}.sql.bz2 sed -i 's/COLLATE=utf8mb4_0900_ai_ci//g' var/backups/db_${BAKDATE}.sql sed -i 's/COLLATE utf8mb4_0900_ai_ci//g' var/backups/db_${BAKDATE}.sql +sed -i 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g' var/backups/db_${BAKDATE}.sql if ! mysql -h $SERVER -u$USER -p$PASSWORD $DATABASE < var/backups/db_${BAKDATE}.sql ; then mysql $DATABASE < var/backups/db_${BAKDATE}.sql fi