Support » Installing WordPress » Error establishing a database connection – but database is fine

  • I get the “Error establishing a database connection” however, this works just fine:

    <?php
    $db = @mysql_connect('localhost', 'wordpress_cgps', '****');
    if (!$db) echo "connection failed";
    else echo "connection succeeded";
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error establishing a database connection – but database is fine’ is closed to new replies.