Skip to content

Commit

Permalink
Mysql 8 support
Browse files Browse the repository at this point in the history
This comes by hand with #1805
  • Loading branch information
Skamasle authored Jan 12, 2019
1 parent 0d85c88 commit 1742357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion func/rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ rebuild_mysql_database() {
mysql_query "CREATE DATABASE \`$DB\` CHARACTER SET $CHARSET" >/dev/null
if [ "$mysql_fork" = "mysql" ]; then
# mysql
if [ "$(echo $mysql_ver |cut -d '.' -f2)" -ge 7 ]; then
if [ "$(echo $mysql_ver |cut -d '.' -f2)" -ge 7 ] || [ "$(echo $mysql_ver |cut -d '.' -f1)" -eq 8 ]; then
# mysql >= 5.7
mysql_query "CREATE USER IF NOT EXISTS \`$DBUSER\`" > /dev/null
mysql_query "CREATE USER IF NOT EXISTS \`$DBUSER\`@localhost" > /dev/null
Expand Down

0 comments on commit 1742357

Please sign in to comment.