MySQL: change default MySQL collate to utf8_general_ci
Install & configure MySQL database by using utf8_general_ci collation which is the way documented in OpenStack [1] and already the default in puppetlabs-mysql [2]. [1] http://goo.gl/GA5gyZ [2] https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/db.pp#L7 Change-Id: Iafdb875ce636aefd81e07861230e3a60b3cd22c7 Closes-bug: #1446375
This commit is contained in:
parent
70325fb0fc
commit
bc197410ac
@ -47,7 +47,7 @@
|
|||||||
#
|
#
|
||||||
# [*collate*]
|
# [*collate*]
|
||||||
# (optional) Charset collate of trove database
|
# (optional) Charset collate of trove database
|
||||||
# Defaults 'utf8_unicode_ci'.
|
# Defaults 'utf8_general_ci'.
|
||||||
#
|
#
|
||||||
# [*mysql_module*]
|
# [*mysql_module*]
|
||||||
# (optional) Deprecated. Does nothing
|
# (optional) Deprecated. Does nothing
|
||||||
@ -59,7 +59,7 @@ class trove::db::mysql(
|
|||||||
$host = '127.0.0.1',
|
$host = '127.0.0.1',
|
||||||
$allowed_hosts = undef,
|
$allowed_hosts = undef,
|
||||||
$charset = 'utf8',
|
$charset = 'utf8',
|
||||||
$collate = 'utf8_unicode_ci',
|
$collate = 'utf8_general_ci',
|
||||||
$mysql_module = undef,
|
$mysql_module = undef,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ describe 'trove::db::mysql' do
|
|||||||
:password => 's3cr3t',
|
:password => 's3cr3t',
|
||||||
:user => 'trove',
|
:user => 'trove',
|
||||||
:charset => 'utf8',
|
:charset => 'utf8',
|
||||||
:collate => 'utf8_unicode_ci',
|
:collate => 'utf8_general_ci',
|
||||||
:host => '127.0.0.1',
|
:host => '127.0.0.1',
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user