Question
Mysql issue: Warning: mysqli_real_connect(): Error while reading greeting packet
Hi guys, I hope you can help me. I’m launching a web site and I’m having issues with my droplet. I use 5$ droplet to run a wordpress site which uses mysql. At some points (not always) there is an error:
Warning: mysqlirealconnect(): Error while reading greeting packet. PID=862598 in /var/www/html/wp-includes/wp-db.php on line 1653
Here is the line 1653:
mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags );
Mysql version:
mysql Ver 8.0.22-0ubuntu0.20.04.3 for Linux on x86_64 ((Ubuntu))
I checked the error.log, but I can not find anything meaningful:
https://pastebin.com/QxLRi54p
Please advise me how to fix the issue
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×