Quantcast
Channel: Topic Tag: Database Error | WordPress.org
Viewing all articles
Browse latest Browse all 631

Database error

$
0
0

Hi,

I can connect to my database using PHPMyAdmin, I can see all the tables and eveything work fine.

But I’ve got this message “Error establishing a database connection” when I’m trying to connect to this my website: https://paullehmanndesign.com/

I’ve checked many times my wp-config.php file and the username, Database name and hostname are correct.

The same problem occur with https://paullehmanndesign.com/wp-admin/

I’ve checked my MySQL Server using this code:

<?php
$link = mysql_connect(‘localhost’, ‘root’, ‘password’);
if (!$link) {
die(‘Could not connect: ‘ . mysql_error());
}
echo ‘Connected successfully’;
mysql_close($link);
?>

and it works.

So I really don’t know what to do to fix the issue.

Thank you for your help


Viewing all articles
Browse latest Browse all 631

Trending Articles