• Hi everybody!
    I have just installed an apache server on my computer to test wordpress before I get my own webspace. I have the apache server and mysql database running. So far I have tested the server with various php sites and yes it displays them – so the server is working (it’s by the way the latest release).
    Then I have downloaded wordpress and copied everything into the “htdocs” folder of the apache installation. I hope this is right, because you have to copy all *.php files into the “htdocs” folder to load them in your browser with the “http://localhost/xyz.php” command. So I though I have to copy the wordpress folder into that directory as well.
    Then I edited the wp-config (acutally I have left everything the way it was):
    <?php
    /** WordPress’s config file **/
    /** http://wordpress.org/ **/
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘wordpress’); // The name of the database
    define(‘DB_USER’, ‘username’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘password’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
    .
    .
    .
    ?>
    Then I tried to execute the install.php (http://localhost/wp-admin/install.php) and I got this error message:
    Error establishing a database connection! This probably means that the connection information in your wp-config.php file is incorrect. Double check it and try again.
    * Are you sure you have the correct user/password?
    * Are you sure that you have typed the correct hostname?
    * Are you sure that the database server is running?
    ————–
    So what does this mean? Can someone help me out? Thanks for every tip!
    Bye
    Phil

Viewing 9 replies - 1 through 9 (of 9 total)
  • Do you have mysql there as well ?
    If so, create a database in it.
    Get the correct connection details for it (it’ll be in the docs) and you’ll be good to go.

    Thread Starter pro_shine

    (@pro_shine)

    Create the mysql database in where / how?
    According to the installer of the server application (it was the free “xampp” btw. which inlcudes apache, mysql, etc….) everything is installed properly and all I have to do is manually start the apache server and/or mysql – which I did.

    Thread Starter pro_shine

    (@pro_shine)

    Hi again!
    Thanks for the answer but I don’t get it. How do I create the database? So far I have set up the username and pass but I have no idea what I have to do in the phpmyadmin directory to set up this database…?

    Click phpmyadmin in the orange menu on the left side.
    In the next screen, you again have an orange side menu, and a white part – mine says “Welcome to phpMyAdmin 2.5.7-pl1” at the top.
    See the box just above the ‘Create’ button ?
    Type ‘wordpress’ in there and click ‘Create’
    Job done 🙂

    Oh, and once you’ve got this sorted, go grab mediawiki – it’s great !

    Thread Starter pro_shine

    (@pro_shine)

    Oh man I am so stupid…. argh now I know what you mean… and wuhu it works! But still…
    When I go through the steps of install.php I get this error when I click on “On to Step 3”:
    Fatal error: Cannot use object of type stdClass as array in C:\apachefriends\xampp\htdocs\wordpress\wp-admin\upgrade-functions.php on line 705
    But anyway thanks for helping me so far!

    For Pro_shine error. I got the same error on version 1.2.1. I looked in the nightly builds.
    Change file wp-admin/upgrade-functions.php to the following:
    on line 704 change “get_results” to “get_row”
    on line 705 change “$res[0][‘Type’]” to “$res->Type”
    That should get you pass step 3 on the install or upgrade.

    Get Xampp Windows Version 1.4.4
    This has php4.x
    The later versons have php5 hence the error.
    If you cannot get it from the site now, email me and you can ftp it from me.

    Thread Starter pro_shine

    (@pro_shine)

    Thanks! That’s it! Now it’s working.
    I might come back to you guys when I change the templates, but for now thanks so much!
    Bye!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘installation error (database problem)’ is closed to new replies.