From 08ad73e34e813a630e74f3760144b585719c97ec Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Tue, 23 Nov 2021 16:29:25 +0100 Subject: [PATCH] minor fix --- pandora_console/install.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/install.php b/pandora_console/install.php index a41db9e4cc..a670d02fb9 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -993,8 +993,14 @@ function install_step4() $step5 = mysqli_query( $connection, - "CREATE USER pandora@$host IDENTIFIED BY '".$random_password."'" + "CREATE USER IF NOT EXISTS pandora@$host" ); + + mysqli_query( + $connection, + "SET PASSWORD FOR 'pandora'@'".$host."' = '".$random_password."'" + ); + $step5 |= mysqli_query( $connection, "GRANT ALL PRIVILEGES ON `$dbname`.* to pandora@$host"