瀏覽代碼

Uses UTF8 as MySQL character set (#492)

algooapy 7 年之前
父節點
當前提交
4af923e3e5
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      doc/database.md

+ 3 - 3
doc/database.md 查看文件

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