starka
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: mysqli_real_connect(): (HY000/2002): No such file or directoryHi guys, not sure if this topic is still alive but as of recently (last 3 days) I’ve been getting this same error on my new site.
To be specific it’s this error
mysqli_real_connect(): (HY000/2002): No such file or directory in /home/go4digit/public_html/wp-includes/wp-db.php on line 1490and this one
mysql_connect(): No such file or directory in /home/go4digit/public_html/wp-includes/wp-db.php on line 1520
Thing is, when I check those lines there is only this:
line 1490: $message .= ‘<p>’ . sprintf(
as a part of this
$message .= “
- \n”;
- ‘ . __( ‘Are you sure that the database server is running?’ ) . “
- ‘ . __( ‘Are you sure that the database server is not under particularly heavy load?’ ) . “
$message .= ‘\n”;
$message .= ‘\n”;
$message .= “\n”;
$message .= ‘<p>’ . sprintf(
/* translators: %s: support forums URL */also, line 1520: * Some queries are made before the plugins have been loaded,
as a part of this
* Filter the database query.
*
* Some queries are made before the plugins have been loaded,
* and thus cannot be filtered with this method.
*
* @since 2.1.0
*
* @param string $query Database query.
*/I don’t know much about WordPress, so I don’t know what to do here.
Can you guys help please?Also, so far I’ve had a successful connect to database (error that first pops up on homepage) so DB name, username, password and host are fine. I’ve pressed the repair database in cPanel and it says repaired but nothing changes.
Any help would be much appreciated!
Thanks!