mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
parent
0d85c88d18
commit
1742357022
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue