how to fix Link to database cannot be established: SQLSTATE[HY000] [2002]Error - Part 01

preview_player
Показать описание
how to fix Link to database cannot be established: SQLSTATE[HY000] [2002]Error - Part 01

* PrestaShop makes use of a MySQL database to store product information and other settings for your online store. When installing or moving PrestaShop, there are database credentials that are needed in order for PrestaShop to establish a link to the database. Depending on whether you are performing a new install of PrestaShop, or moving an existing PrestaShop store to a new server, the steps to resolve a database connection error can vary.

when you change anything of your website please keep it mind.
Рекомендации по теме
Комментарии
Автор

i have a problem...

Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Active'' at line 1

can anyone help me out...
Thanks in advance

amanasim
Автор

This is what happened to mine, It said:

Database connection exception: SQLSTATE[HY000] [1203] User flipanimhlmain already has more than 'max_user_connections' active connections

untitledmutt
Автор

Thankyou, had to update mine to 5.5 latest version

BenCassell
Автор

thanks you so much, you save my life :D

lucianocruchaga
Автор

thanks, switch php version working, In my case wamp.

rdstudio
Автор

try to change localhost to 127.0.0.1 or 127.0.0.1 to localhost

JBAmbegoda