diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-07-07 17:37:35 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-07-08 15:12:07 +0200 |
commit | 76c709d7de67f680b3f1f8b52f0418e029d99341 (patch) | |
tree | 2b81311c0dcc991781503775de8a134671548e30 /lib/private/setup | |
parent | 687cd7fe83fc40d7bc7d2ba7df5b495bf7bebdca (diff) | |
download | nextcloud-server-76c709d7de67f680b3f1f8b52f0418e029d99341.tar.gz nextcloud-server-76c709d7de67f680b3f1f8b52f0418e029d99341.zip |
Add repair step to set MySQL collation to utf8_bin
Set default collation of mysql connection to utf8_bin
Set utf_bin as default collation for new tables
Diffstat (limited to 'lib/private/setup')
-rw-r--r-- | lib/private/setup/mysql.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/setup/mysql.php b/lib/private/setup/mysql.php index b2c28173b1c..3327965fb49 100644 --- a/lib/private/setup/mysql.php +++ b/lib/private/setup/mysql.php @@ -61,7 +61,7 @@ class MySQL extends AbstractDatabase { $name = $this->dbname; $user = $this->dbuser; //we cant use OC_BD functions here because we need to connect as the administrative user. - $query = "CREATE DATABASE IF NOT EXISTS `$name`"; + $query = "CREATE DATABASE IF NOT EXISTS `$name` CHARACTER SET utf8 COLLATE utf8_bin;"; $result = mysql_query($query, $connection); if(!$result) { $entry = $this->trans->t('DB Error: "%s"', array(mysql_error($connection))) . '<br />'; |