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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!