• I am not a tech expert, but I have previously installed many blogs using wordpress, b2evolution, and other php scripts and programs.

    I know how to set up sql databases, users, etc.

    For some reason, I cannot get a fresh install of wordpress 2.2.1 done on one of my domains. The sql database is set up, the user and pass with all privileges is set up, but I keep on getting an error message during the quick install saying that my user name and password are correct, but that it cannot connect to my database. I have tried multiple times to delete the database/user using different combinations, i have edited the config.php file numerous times, but I keep on getting the same error.

    Any thoughts?

Viewing 7 replies - 1 through 7 (of 7 total)
  • are your using ‘localhost’ in the wp-config.php. Ignore the comment about 99% – many times it does have to be changed.

    Thread Starter stormlaw

    (@stormlaw)

    yes I am using localhost. I have never had to change it before!

    It’s time to look at the error log (both the webserver and the db logs, and maybe the system/message log). A failed login will be logged somewhere.

    One can get some pretty odd symptoms if for some odd ball reason the web server doesn’t have directory/file write permissions to the the sql tables for the new db.

    Incorrectly configured php can get you some funny problems too. It’s all in the logs.

    Also, Since it’s not working and empty there’s no harm in changing the db host setting n wp-config.php from ‘localhost’ to ‘127.0.0.1’ or your servers ‘x.y.z.a’ IP number. Yes, I’ve seen DNS go weird in odd ways even on ‘localhost’. Might work, probably not.

    stormlaw, IF you installed b2evolution to this domain, AND used localhost, you can use localhost to install wp, as well.

    If you are seeing this error:

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

    that confirms that the localhost setting isnt the problem.

    whats missing is the correct database name.

    It should have told you that right above the other line 🙂

    “<h1>Can’t select database</h1>”

    When I setup mine I replaced the ‘localhost’ with the “Host Name” string below, yours will be different. I am hosting with GoDaddy and the info was on the details page of mysql database. It works great and have setup 3 sites. Hope it helps???

    MySQL Database Information

    Host Name:h53mysq538.secureserver.net

    Database Name:stuwart
    Database Version:5.0
    Description:Stuwart
    User Name:stuwart

    Thread Starter stormlaw

    (@stormlaw)

    Thanks for the replies everyone. No the B2evolution is on a different domain in the same server. I have a reseller account.

    I am not quite sure what the heck happened but I terminated the account for the domain. Made a fresh database and user. Renamed and modified the wp-config.php file, and it worked!

    The WordPress interface is so much different than B2evolution I have my work cut out for me learing the new interface.

    Thanks everyone.

    For future reference:

    No the B2evolution is on a different domain in the same server

    Thats the same MySQL database 🙂 so if localhost worked on the other domain, localhost will work on that domain as well.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Fresh 2.2.1 install not working!’ is closed to new replies.