Answer the question
In order to leave comments, you need to log in
What's wrong with openserver?
Here is the error PDO::__construct(): MySQL server has gone away
Points to the 4th line of this code
<?php
try {
$pdo = new PDO('mysql:host=localhost;dbname=u571306', 'root', '', array(PDO::ATTR_PERSISTENT => true));
} catch (PDOException $ev) {
print "Ошибка подключения к БД! <br>" . $ev->getMessage() . "<br>";
die();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question