Permalink
Browse files

Avoid collation mismatch errors when saving siteadmin user's password.

  • Loading branch information...
rimas-kudelis committed Sep 3, 2016
1 parent 1add158 commit 717cb5a9a9d5f2ed0126ff0b0ff0216184f19635
Showing with 1 addition and 1 deletion.
  1. +1 −1 setup/mysql.sql
View
@@ -215,7 +215,7 @@ SET @SITE_ADMIN_PW = SUBSTRING(CONV(FLOOR(RAND() * 9999999999999999999), 10, 36)
LOCK TABLES `users` WRITE;
ALTER TABLE `users` DISABLE KEYS;
-INSERT INTO `users` VALUES (1,1,'siteadmin','siteadmin',ENCRYPT(@SITE_ADMIN_PW,CONCAT(@PW_PREFIX,MD5(RAND()))),65535,65535,'','','site',1,0,0,0,0,0,0,0,1,NULL,NULL,0,0,0,'SiteAdmin',0,0,NULL,NULL);
+INSERT INTO `users` VALUES (1,1,'siteadmin','siteadmin',ENCRYPT(@SITE_ADMIN_PW,CONCAT(@PW_PREFIX,CONVERT(MD5(RAND()) USING utf8))),65535,65535,'','','site',1,0,0,0,0,0,0,0,1,NULL,NULL,0,0,0,'SiteAdmin',0,0,NULL,NULL);
ALTER TABLE `users` ENABLE KEYS;
UNLOCK TABLES;

0 comments on commit 717cb5a

Please sign in to comment.