diff --git a/.drone.yml b/.drone.yml index a69149b..85402d5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -92,7 +92,7 @@ steps: IMAGENAME: mariadb:10.5 CONTAINERNAME: mysql_location COMMAND: create - # OVERWRITE: true + OVERWRITE: true # PRIVATE: true CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD: from_secret: db_root_password diff --git a/Sources/php_script/script/config.php b/Sources/php_script/script/config.php index 868456e..5fdca5c 100644 --- a/Sources/php_script/script/config.php +++ b/Sources/php_script/script/config.php @@ -10,7 +10,7 @@ function connection(): bool|int|mysqli try { //Try to connect to the database - return mysqli_connect($host, $username, $password); //Connecting to database + return mysqli_connect($host, $username, $password, $db_name); //Connecting to database }catch (mysqli_sql_exception) { //If the connection failed