diff options
author | maxm123 <maxm123@techie.com> | 2020-04-14 04:55:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 23:55:20 -0300 |
commit | 9b7737df2dc6bc1b66f47dde7a219dad28b24c1b (patch) | |
tree | 6cef5113f0ba4016ac2c71394375302216d4fb47 /docs/content/doc | |
parent | 281029529bf98218b6c75353f2fce2d74b7ba196 (diff) | |
download | gitea-9b7737df2dc6bc1b66f47dde7a219dad28b24c1b.tar.gz gitea-9b7737df2dc6bc1b66f47dde7a219dad28b24c1b.zip |
Add charset handling to backup/restore doc (#11062)
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'docs/content/doc')
-rw-r--r-- | docs/content/doc/usage/backup-and-restore.en-us.md | 2 | ||||
-rw-r--r-- | docs/content/doc/usage/backup-and-restore.zh-cn.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/doc/usage/backup-and-restore.en-us.md b/docs/content/doc/usage/backup-and-restore.en-us.md index a3887bc64a..cefdf5d3da 100644 --- a/docs/content/doc/usage/backup-and-restore.en-us.md +++ b/docs/content/doc/usage/backup-and-restore.en-us.md @@ -75,7 +75,7 @@ mv custom/conf/app.ini /etc/gitea/conf/app.ini # or mv app.ini /etc/gitea/conf/a unzip gitea-repo.zip mv gitea-repo/* /var/lib/gitea/repositories/ chown -R gitea:gitea /etc/gitea/conf/app.ini /var/lib/gitea/repositories/ -mysql -u$USER -p$PASS $DATABASE <gitea-db.sql +mysql --default-character-set=utf8mb4 -u$USER -p$PASS $DATABASE <gitea-db.sql # or sqlite3 $DATABASE_PATH <gitea-db.sql service gitea restart ``` diff --git a/docs/content/doc/usage/backup-and-restore.zh-cn.md b/docs/content/doc/usage/backup-and-restore.zh-cn.md index 17e6ae2741..84938967fc 100644 --- a/docs/content/doc/usage/backup-and-restore.zh-cn.md +++ b/docs/content/doc/usage/backup-and-restore.zh-cn.md @@ -54,7 +54,7 @@ mv custom/conf/app.ini /etc/gitea/conf/app.ini unzip gitea-repo.zip mv gitea-repo/* /var/lib/gitea/repositories/ chown -R gitea:gitea /etc/gitea/conf/app.ini /var/lib/gitea/repositories/ -mysql -u$USER -p$PASS $DATABASE <gitea-db.sql +mysql --default-character-set=utf8mb4 -u$USER -p$PASS $DATABASE <gitea-db.sql # or sqlite3 $DATABASE_PATH <gitea-db.sql service gitea restart ``` |