WebSite X5Help Center

 
sattar E.
sattar E.
User

I cant connect to database  en

Autore: sattar E.
Visite 1110, Followers 1, Condiviso 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 

Postato il
4 RISPOSTE
sattar E.
sattar E.
User
Autore

Php ver : PHP 7.3.25

Leggi di più
Postato il da 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

Leggi di più
Postato il da Paul M.
sattar E.
sattar E.
User
Autore

hi,

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

Leggi di più
Postato il da 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.

Leggi di più
Postato il da Paul M.