diff --git a/pandora_console/install.php b/pandora_console/install.php index 3d61be33ae..2265fad2a8 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"