mysqli_real_connect(): php_network_getaddresses: getaddrinfo failed
. These usually appear during scaling events, but sometimes can actually take our servers offline, creating a domino effect and taking out all of our servers. The only way to get back up is to replace all the application servers. Once that is done, things go back to normal and the servers stop spitting out the errors. (Technically warnings).
I’ve done plenty of digging and can’t figure out why this would be happening only some of the time. Any help would be appreciated.
]]>My site keeps crashing and leaving this message:
Warning: mysqli_real_connect(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/html/wp-includes/wp-db.php on line 1490
]]>Warning: Error while sending QUERY packet. PID=179098 in /home/xxxxxxxxx/public_html/wp-includes/wp-db.php on line 1803
Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /home/xxxxxxxxx/public_html/wp-includes/wp-db.php on line 1489
I have searched the forums and various search engines buy still struggling to find a solution. Any assistance would be much appreciated.
Thanks
Rockforduk
]]>Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /var/www/vhosts/xxxx.nl/httpdocs/wp-includes/wp-db.php on line 1489
It is quite a problem,
Anybody an idea about the solution?
Thanks!
Auke.
]]>Warning: mysqli_real_connect(): (HY000/2000): mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file in /home/nieidealno/www/wp-includes/wp-db.php on line 1488
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/nieidealno/www/wp-includes/wp-db.php on line 1518
Tried this in phpmyadmin but it didn’t work
SET @@session.old_passwords = 0;
SET PASSWORD FOR 'existinguser'@'localhost' = PASSWORD('existingpass');
existinguser – db user name
existingpass – db password