Jump to content

Link to database cannot be established.


Recommended Posts

I know this query has come up several times but I haven't found a solution yet.

 

I had problems with my presta shop cart before and decided to reload the whole this which sorted the problem and all worked fine.

 

Now (several weeks later) I tried to go back into it and I am getting the error Link to database cannot be established.

 

I am not 100% sure that I am entering the correct link address but I have used a link from a login email I received so I'm pretty sure the link does not work.

 

1. How can I check that I have the correct link?

 

2. I have changed the password to my hosting website recently is it possible that this is blocking the link? If so how on earth do I correct this, I'm using justhost as my hosting company. I've tried looking in phpadmin and I can't seem to find anywhere that allows me change my password for my database. (bare in mind I'm a bit of a dope with all this stuff and learning slowly, usually after each cock up)

 

I have emailed my hosting company to see if it is a problem on their end but any help or suggestions would be greatly appreciated.

 

Very frustrated :-(

Link to comment
Share on other sites

Hi,

Depending on your server or hosting type, it is likely that changing your server administrator password has caused this problem. I have found some hosting companies use this administrator information as the database credentials.

 

Have you looked at the 'settings.inc.php' file in the config folder of your Prestashop installation directory and ensured the following lines are correct to your server.

 

define('_DB_USER_', 'your username');

define('_DB_PASSWD_', 'your password');

 

If not, try changing these lines to your username and your password matching your server details and ftp the modified file back to the server.

 

Don't forget to always backup any files prior to modification!!!

 

Phil

Link to comment
Share on other sites

×
×
  • Create New...