WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Camisado
    Member
    Posted 8 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...

    socalsci_wrdp2

    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
    socalsci_brent
    socalsci_wrdp2

    Any idea?

  2. davidhouse
    Member
    Posted 8 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

Tags