• i was trying to set up my database info into the cPanel, but when i made a username and then added a database of ‘wordpress’ it doesnt give me anywhere to add:

    $dbh = mysql_connect("hostname", "username", "<PASSWORD HERE>") or die ("message");
    mysql_select_db("databasename");

    or at least see it 🙁

    any help

Viewing 1 replies (of 1 total)
  • You shouldn’t need that–that article needs to be update. In cPanel, create the database, create the user, assign the user to the database, then put your database information in your wp-config.php.

    Might look at this:

Viewing 1 replies (of 1 total)

The topic ‘Error establishing a database connection’ is closed to new replies.