Browse Source

Uses UTF8 as MySQL character set (#492)

algooapy 7 years ago
parent
commit
4af923e3e5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      doc/database.md

+ 3 - 3
doc/database.md View File

57
 In this case, delete the user and database and start over:
57
 In this case, delete the user and database and start over:
58
 
58
 
59
     sudo --user=postgres psql \
59
     sudo --user=postgres psql \
60
-         --command="DROP USER tracimuser;" \
61
-         --command="DROP DATABASE tracimdb;"
60
+         --command="DROP DATABASE tracimdb;" \
61
+         --command="DROP USER tracimuser;"
62
 
62
 
63
 [//]: # (The following lines are only necessary to fix permissions on an existing database:)
63
 [//]: # (The following lines are only necessary to fix permissions on an existing database:)
64
 [//]: # (    sudo --user=postgres psql \)
64
 [//]: # (    sudo --user=postgres psql \)
88
 
88
 
89
 Create a database with following command:
89
 Create a database with following command:
90
 
90
 
91
-    CREATE DATABASE tracimdb;
91
+    CREATE DATABASE tracimdb CHARACTER SET = utf8;
92
 
92
 
93
 Create a user with following command:
93
 Create a user with following command:
94
 
94