Installation help (Mysql connection refused error)

120 views
Skip to first unread message

Bhushan Kakulte

unread,
Aug 23, 2021, 12:44:58 PM8/23/21
to Easy!Appointments - Support Group
Hi Team,

We were exploring installation of easy-appointments. We are stuck at the mysql connection refused error. Can someone help over here?

Error : 
Screenshot 2021-08-23 at 10.13.04 PM.png

Below is my config file : 
const BASE_URL = 'http://localhost:8000/';
const LANGUAGE = 'english';
const DEBUG_MODE = TRUE;

const DB_HOST = '127.0.0.1';
const DB_NAME = 'easyappointments';
const DB_USERNAME = 'root';
const DB_PASSWORD = 'root';

const GOOGLE_SYNC_FEATURE = FALSE; // Enter TRUE or FALSE
const GOOGLE_PRODUCT_NAME = '';
const GOOGLE_CLIENT_ID = '';
const GOOGLE_CLIENT_SECRET = '';
const GOOGLE_API_KEY = '';

Here is my docker info : 
Screenshot 2021-08-23 at 10.12.29 PM.png

Thanks,
Bhushan

sandip tawar

unread,
Aug 24, 2021, 1:50:35 PM8/24/21
to Easy!Appointments - Support Group
Hi Bhushan,

Instead of using  DB_HOST = '127.0.0.1" use service name for mysql container for eg: DB_HOST="mysql".

This should work for you!!

Regards,
Sandip

JCAK

unread,
Aug 26, 2021, 9:34:37 PM8/26/21
to Easy!Appointments - Support Group
Hi,

I think you problem is, because you are missing to install/enable mysqli on PHP server.

Regards,

Reply all
Reply to author
Forward
0 new messages