Before "PDO connection error" when trying to deploy symfony project in Debian

My project works great on my local one. When I put it on Debian, I ran into an error:

PDO connection error: SQLSTATE [HY000] [2013] Lost connection to MySQL server while "reading the initial communication packet", system error: 110

I searched it online, everyone thinks of it because of the databases.yml file. I tried a lot of one, but could not fix the problem.

+3
source share
1 answer
For the PDO, I think all you have to activate it is to add in your php.ini the

extension = pdo.so line.

Are modules installed for the curl and imagemagick extensions?

sudo apt-get install php5-curl php5-imagick

0
source

Source: https://habr.com/ru/post/1783673/


All Articles