Hi Cspro Team ,
I followed the instruction in one of your training notes to setup CSWEB. I have this error
"Failed to connect to database. SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known"
I cant figure out where this error is coming from . I quick fix is needed . Thanks
csweb error in connecting to database
Re: csweb error in connecting to database
Hi Mate,
Experiencing same issue. Perhaps tech team can help us reslove this
Experiencing same issue. Perhaps tech team can help us reslove this
Re: csweb error in connecting to database
Please post the configuration you used i.e. the info you entered during CSWeb setup. In particular the values for Hostname and CSWeb API URL.
Re: csweb error in connecting to database
Dear Josh
Please find attached the file :
Please find attached the file :
- Attachments
-
- csweb.JPG (68.12 KiB) Viewed 5993 times
Re: csweb error in connecting to database
Try using "localhost" (without http://) for the hostname. This is the hostname of your MySQL database connection, not the URL for the website. Unless you have your database on a different server from your webserver this should always be localhost.
Re: csweb error in connecting to database
Hi Josh
I tried the "localhost" earlier and it don't work. I will not mind to share the cpanel credential with u to have a look.
I tried the "localhost" earlier and it don't work. I will not mind to share the cpanel credential with u to have a look.
- Attachments
-
- csweb2.JPG (77.06 KiB) Viewed 5991 times
Re: csweb error in connecting to database
That error is just because the username/password for the MySQL database user is incorrect. Make sure you added the user named "cspro" in MySQL and that you are using the correct password for it.
Re: csweb error in connecting to database
Jost ... you the man !!! Bingo and one thanks Boss