version 1.50, 2019/02/19 19:03:42
|
version 1.51, 2019/02/19 19:14:54
|
Line 2477 sub new_mysql_rootpasswd {
|
Line 2477 sub new_mysql_rootpasswd {
|
my ($currmysqlpass,$usesauth,$is_mariadb) = @_; |
my ($currmysqlpass,$usesauth,$is_mariadb) = @_; |
if ($usesauth) { |
if ($usesauth) { |
if ($is_mariadb) { |
if ($is_mariadb) { |
return ("ALTER USER 'root'\@'localhost' IDENTIFIED WITH mysql_native_password BY '$currmysqlpass'", |
return ("ALTER USER 'root'\@'localhost' IDENTIFIED BY '$currmysqlpass'", |
"FLUSH PRIVILEGES;"); |
"FLUSH PRIVILEGES;"); |
} else { |
} else { |
return ("ALTER USER 'root'\@'localhost' IDENTIFIED BY '$currmysqlpass'", |
return ("ALTER USER 'root'\@'localhost' IDENTIFIED WITH mysql_native_password BY '$currmysqlpass'", |
"FLUSH PRIVILEGES;"); |
"FLUSH PRIVILEGES;"); |
} |
} |
} else { |
} else { |