From 75928e80c50aefd1b9c959b06f2cb9ac14027f41 Mon Sep 17 00:00:00 2001 From: vadym Novoselskyi Date: Fri, 27 Sep 2024 11:16:47 +0200 Subject: [PATCH] change host to localhsot --- www/public/M6/egyTalk/model/dbEgyTalk.php | 2 +- www/public/M6/inc/egytalk_connect.php | 2 +- www/public/M6/inc/world_connect.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/public/M6/egyTalk/model/dbEgyTalk.php b/www/public/M6/egyTalk/model/dbEgyTalk.php index 8217c75..85fd0d8 100644 --- a/www/public/M6/egyTalk/model/dbEgyTalk.php +++ b/www/public/M6/egyTalk/model/dbEgyTalk.php @@ -11,7 +11,7 @@ class dbEgyTalk // Definierar konstanter med användarinformation. define('DB_USER', 'egytalk'); define('DB_PASSWORD', '12345'); - define('DB_HOST', 'mariadb'); + define('DB_HOST', 'localhost'); define('DB_NAME', 'egytalk'); $dsn = 'mysql:host=' . DB_HOST . ';dbname=' . DB_NAME . ';charset=utf8'; diff --git a/www/public/M6/inc/egytalk_connect.php b/www/public/M6/inc/egytalk_connect.php index d0eddf9..72e9b93 100644 --- a/www/public/M6/inc/egytalk_connect.php +++ b/www/public/M6/inc/egytalk_connect.php @@ -6,7 +6,7 @@ define('DB_PASSWORD', '12345'); } if (!defined('DB_HOST')) { - define('DB_HOST', 'mariadb'); // Use 'mariadb' for Docker, otherwise '127.0.0.1' + define('DB_HOST', 'localhost'); // Use 'mariadb' for Docker, otherwise '127.0.0.1' } if (!defined('DB_NAME')) { define('DB_NAME', 'egytalk'); diff --git a/www/public/M6/inc/world_connect.php b/www/public/M6/inc/world_connect.php index 89cbf39..709531c 100644 --- a/www/public/M6/inc/world_connect.php +++ b/www/public/M6/inc/world_connect.php @@ -2,7 +2,7 @@ // Definierar konstanter med användarinformation. define ('DB_USER', 'world'); define ('DB_PASSWORD', '12345'); - define ('DB_HOST', 'mariadb'); // 'Om docker - 'mariadb', annars 127.0.0.1 + define ('DB_HOST', 'localhost'); // 'Om docker - 'mariadb', annars 127.0.0.1 define ('DB_NAME', 'world'); // Skapar en anslutning till MySql och databasen world