Skip to content

Commit

Permalink
docs: change create database collate (#5184)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored May 14, 2021
1 parent 6bf187e commit 0a77dfa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/installation/providers/debian.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand Down
10 changes: 2 additions & 8 deletions docs/installation/providers/generic.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand All @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions docs/installation/providers/ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand All @@ -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';
Expand Down

0 comments on commit 0a77dfa

Please sign in to comment.