From 4e71e38e343dab72a5e2ea221bbaa9be2594295a Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Mon, 28 Nov 2022 11:13:42 +0100 Subject: [PATCH] config.php update --- .drone.yml | 2 +- Sources/php_script/script/config.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 85402d5..a69149b 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 5deff47..f41290e 100644 --- a/Sources/php_script/script/config.php +++ b/Sources/php_script/script/config.php @@ -10,6 +10,7 @@ function connection(): bool|int|mysqli try { //Try to connect to the database + print(json_encode(mysqli_connect($host, $username, $password, $db_name))); return mysqli_connect($host, $username, $password, $db_name); //Connecting to database }catch (mysqli_sql_exception) { //If the connection failed