Use utf8mb4 for MySQL database charset
The default "utf8" character set for MySQL only supports up to 3-byte codepoints. In order to support text with 4-byte codepoints (at the expense of some additional storage) explicitly use "utf8mb4" instead when creating and connecting to the database. Change-Id: I25bd7b5d2a904dad3e13efaf2da94cce205bcc0b
This commit is contained in:
parent
0940bd1e42
commit
e5040616f3
@ -32,5 +32,6 @@ class storyboard::mysql (
|
|||||||
password => $mysql_user_password,
|
password => $mysql_user_password,
|
||||||
host => 'localhost',
|
host => 'localhost',
|
||||||
grant => ['all'],
|
grant => ['all'],
|
||||||
|
charset => 'utf8mb4',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ max_age=<%= @cors_max_age %>
|
|||||||
# connection = mysql://root:pass@127.0.0.1:3306/storyboard
|
# connection = mysql://root:pass@127.0.0.1:3306/storyboard
|
||||||
# Replace 127.0.0.1 above with the IP address of the database used by the
|
# Replace 127.0.0.1 above with the IP address of the database used by the
|
||||||
# main storyboard server. (Leave it as is if the database runs on this host.)
|
# main storyboard server. (Leave it as is if the database runs on this host.)
|
||||||
connection=mysql+pymysql://<%= @mysql_user %>:<%= @mysql_user_password %>@<%=@mysql_host %>:<%= @mysql_port %>/<%= @mysql_database %>
|
connection=mysql+pymysql://<%= @mysql_user %>:<%= @mysql_user_password %>@<%=@mysql_host %>:<%= @mysql_port %>/<%= @mysql_database %>?charset=utf8mb4
|
||||||
|
|
||||||
# The SQLAlchemy connection string used to connect to the slave database
|
# The SQLAlchemy connection string used to connect to the slave database
|
||||||
# slave_connection =
|
# slave_connection =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user