php - mysqli::__construct(): MySQL server has gone away -
i can't connect server. here mistakes gives me:
warning: mysqli::__construct(): mysql server has gone away in c:\xampp\htdocs\www\php-project\logic\db_connection.php on line 3
warning: mysqli::__construct(): error while reading greeting packet. pid=8632 in c:\xampp\htdocs\www\php-project\logic\db_connection.php on line 3
warning: mysqli::__construct(): (hy000/2006): mysql server has gone away in c:\xampp\htdocs\www\php-project\logic\db_connection.php on line 3
fatal error: maximum execution time of 30 seconds exceeded in c:\xampp\htdocs\www\php-project\logic\db_connection.php on line 3
this connection file:
define("host", "localhost:81"); define("db_user", "root"); define("db_password", ""); define("db_name", "bulitfactory_person_cv"); $db_connection = new mysqli(host, db_user, db_password, db_name); if ($db_connection->connect_error) { die("connection failed. ".$db_connection->connect_error); }
please, me!
try increase max_allowed_packet , restart server
wiki
Comments
Post a Comment