Jump to content

Link to database cannot be established.


Recommended Posts

Hi guys,

I am a newbie. I have installed all my folders through the FileZilla FTP and also created the new database to use however when I go back to my home page to complete the Prestashop installation "Link to database cannot be established" appears. Can anyone tell me whether I have done anything wrong along the line or whether there are settings I need to change to stop this from happening?

Many thanks,
Teresa

Link to comment
Share on other sites

Please check your database connection information is correct in /config/setting.inc.php file as following

define('_DB_NAME_', 'yourdbname');
define('_DB_SERVER_', 'localhost');
define('_DB_USER_', 'youdbuser');
define('_DB_PASSWD_', 'yourdbuserpassword');
define('_DB_TYPE_', 'MySQL');

And also make sure if you have set correct permission for the db user to access the db.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...