Report this

What is the reason for this report?

Mysql issue: Warning: mysqli_real_connect(): Error while reading greeting packet

Posted on January 21, 2021

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: mysqli_real_connect(): 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.