From 0a77dfa17a40ad776cbf14633835d7e49259a66b Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Fri, 14 May 2021 13:37:32 +0200 Subject: [PATCH] docs: change create database collate (#5184) --- docs/installation/providers/debian.md | 2 +- docs/installation/providers/generic.md | 10 ++-------- docs/installation/providers/ubuntu.md | 4 ++-- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/docs/installation/providers/debian.md b/docs/installation/providers/debian.md index 04b5602ed2b..e4b7c3beb90 100644 --- a/docs/installation/providers/debian.md +++ b/docs/installation/providers/debian.md @@ -115,7 +115,7 @@ sudo mysql -uroot -p Create a database called 'monica'. ```sql -CREATE DATABASE monica; +CREATE DATABASE monica CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; ``` Create a user called 'monica' and its password 'strongpassword'. diff --git a/docs/installation/providers/generic.md b/docs/installation/providers/generic.md index c62da8983fc..77701b59cec 100644 --- a/docs/installation/providers/generic.md +++ b/docs/installation/providers/generic.md @@ -105,13 +105,7 @@ mysql -u root -p Create a database called 'monica'. ```sql -CREATE DATABASE monica; -``` - -or if you want to support all character (like emojis): - -```sql -CREATE DATABASE monica CHARACTER SET utf8 COLLATE utf8_general_ci; +CREATE DATABASE monica CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; ``` Create a user called 'monica' and its password 'strongpassword'. @@ -120,7 +114,7 @@ Create a user called 'monica' and its password 'strongpassword'. CREATE USER 'monica'@'localhost' IDENTIFIED BY 'strongpassword'; ``` -We have to authorize the new user on the monica db so that he is allowed to change the database. +We have to authorize the new user on the `monica` db so that he is allowed to change the database. ```sql GRANT ALL ON monica.* TO 'monica'@'localhost'; diff --git a/docs/installation/providers/ubuntu.md b/docs/installation/providers/ubuntu.md index cd10b7381d8..35d8ed8a902 100644 --- a/docs/installation/providers/ubuntu.md +++ b/docs/installation/providers/ubuntu.md @@ -129,7 +129,7 @@ mysql -u root -p Create a database called 'monica'. ```sql -CREATE DATABASE monica; +CREATE DATABASE monica CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; ``` Create a user called 'monica' and its password 'strongpassword'. @@ -138,7 +138,7 @@ Create a user called 'monica' and its password 'strongpassword'. CREATE USER 'monica'@'localhost' IDENTIFIED BY 'strongpassword'; ``` -We have to authorize the new user on the monica db so that he is allowed to change the database. +We have to authorize the new user on the `monica` db so that he is allowed to change the database. ```sql GRANT ALL ON monica.* TO 'monica'@'localhost';