config.php update

remotes/origin/database-api-implementation
Dorian HODIN 2 years ago committed by felixmielcarek
parent 8c8f689854
commit 45740065b2

@ -94,7 +94,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

@ -4,8 +4,8 @@ function connection(): bool|int|mysqli
{
$username = "root"; //Get the username
$host = "localhost:3306"; //Get the url of the database
$password = ""; //Get the password for the user selected
$host = "193.49.118.214"; //Get the url of the database
$password = $_ENV["ROOT_PASSWORD"]; //Get the password for the user selected
$db_name = $_ENV["DATABASE"]; //Get the name of the database
try { //Try to connect to the database

Loading…
Cancel
Save