Cannot connect to DB
-
Hi,
I have just migrated my site to a new hosting package with my provider. Therefor I needed to migrate the site and the database and now I can’t connect to my database. I get ‘Error establishing database connection’. Also if I try to logon via wp-admin. I also did a check with a check.php file to connect to my database. This results in a blanck page. I used the following script;
<?php
$link = mysql_connect(‘DB Host’, ‘DB username’, ‘DB password’);
if (!$link) {
die(‘Could not connect: ‘ . mysql_error());
echo ‘Connected successfully’;
mysql_close($link);
?>I am really desperate ??
Kind regards,
Stephen
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Cannot connect to DB’ is closed to new replies.