WebSite X5Help Center

 
sattar E.
sattar E.
User

I cant connect to database  en

Author: sattar E.
Visited 928, Followers 1, Shared 0  

hi,

I'm using Sitground for hosting and PHP ver is 7.2 and sever is Linux still I can't get connected to my database first I follow up with them as they said all is good on my end  can you help me, please 

Posted on the
4 ANSWERS
sattar E.
sattar E.
User
Author

Php ver : PHP 7.3.25

Read more
Posted on the from sattar E.
Paul M.
Paul M.
Moderator

Hello Sattar,

Can we assume that you were able to successfully create a database on your Siteground hosting?  You will need to first make a database specifically for use with your WebSite X5 project.  If unsure on how to do this you can find instructions from Siteground here:

How to create MySQL User and Database Tutorial

If you've already created the database, do you receive any error messages when trying to connect?  If so, what are they?

Kind regards,

Paul

Search the WebSite X5 Help Center

Read more
Posted on the from Paul M.
sattar E.
sattar E.
User
Author

hi,

yes I have a database only for this site but always give me this error 

Read more
Posted on the from sattar E.
Paul M.
Paul M.
Moderator

Try and connect to your database using this free tool (instead of from within WebSite X5):

Siteground - phpMyAdmin

phpMyAdmin will give you a more meaningful error message in the event that you cannot connect to the database.  You can then resort to us with this information and/or ask Siteground for assistance.

Once you can connect successfully using phpMyAdmin then you need to mirror the database connection settings within WebSite X5 in Step 1 Settings > Advanced > Data Management > Database

The most common cause of failure to connect to the database is incorrect access credentials (Hostname, Database Name, Username, Password)  -  these must all be exactly as specified by Siteground.

Read more
Posted on the from Paul M.