Another DB Error... selecting the DB (2 posts)

  1. Camisado
    Posted 10 years ago #

    Ugh... i hate fresh installs...

    Can’t select database

    We were able to connect to the database server (which means your username and password is okay) but not able to select the socalsci_wrdp2 database.

    * Are you sure it exists?
    * On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?

    Some stuff that may help...


    Users in wrdp2
    socalsci_wrdp2 (Privileges: ALL PRIVILEGES)

    Connection Strings
    Perl $dbh = DBI->connect("DBI:mysql:socalsci_wrdp2:localhost","socalsci_wrdp2","<PASSWORD HERE>");
    PHP $dbh=mysql_connect ("localhost", "socalsci_wrdp2", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
    mysql_select_db ("socalsci_wrdp2");

    Existing MySQL Users

    Any idea?

  2. davidhouse
    Posted 10 years ago #

    Check the database name in your wp-config.php is correct. I guess, trying to decipher all that stuff you pasted here, that you've already createad a database. If not, you'll have to.

Topic Closed

This topic has been closed to new replies.

About this Topic