What I’m seeing is: Error connectiong to database, connection is unstable
I’m using this software: WordPress
Additional information:
Doens’t happen everytime; the error triggers in every page
**Warning** : mysqli_real_connect(): (HY000/2002): Connection refused in **/home/vol14_5/epizy.com/epiz_25084651/htdocs/wp-includes/wp-db.php** on line **1633**
**Deprecated** : mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in **/home/vol14_5/epizy.com/epiz_25084651/htdocs/wp-includes/wp-db.php** on line **1665**
**Warning** : mysql_connect(): Connection refused in **/home/vol14_5/epizy.com/epiz_25084651/htdocs/wp-includes/wp-db.php** on line **1665**
`Connection refused`
I believe that’s WordPress falling back on the legacy mysql extension because it can’t connect with the newer mysqli extension. It’s a weird design choice from WordPress, but completely normal. And definitely not a reason to downgrade your PHP version.
Do you have any indication as to when this happens? Your website was working fine just now.
The same as what happens now: it will try to connect with mysqli first and if that fails, it will try to connect with mysql. Which will also fail, just because of a different reason.