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