• I found a cool link showing how to download WordPress locally but I’m having difficulty…here’s the link https://tamba2.org.uk/wordpress/xampp/

    I understand everything and did it correctly until I got to this part:
    Download and unzip WordPress.
    “Open the file wp-config-sample.php
    These are the exact details you need for Xampp to work because the default user in phpmyadmin is called ‘root’ and there is no password.
    define(‘DB_NAME’, ‘wordpress’); // The name of the database
    define(‘DB_USER’, ‘root’); // Your MySQL username
    define(‘DB_PASSWORD’, ”); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
    Copy those details into your wp-config file, and save it as wp-config.php

    Now you need to copy the files to the right place.
    Click the Start button, followed by My Computer > Main drive > Xampplite > htdocs
    Copy the whole WordPress folder into this directory.

    In your browser, go to https://localhost/wordpress/wp-admin/install.php and everything from there should run smoothly !”

    When I entered the above link in my browser, I got the following error message:
    “Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.”

    [please don’t post in capital letters – https://codex.www.ads-software.com/Forum_Welcome#The_Bad_Stuff ]

    CAN ANYONE HELP!! NOT SURE WHAT I DID WRONG BUT COULD’NT UNDERSTAND EXACTLY HOW TO “COPY AND PASTE WP-CONFIG FILES”?

    WHAT PASSWORD AND USERNAME ARE THEY REFERRING TO? I DID NOT HAVE TO SET UP ONE WHEN I INSTALLED XAMPP ON MY SYSTEM OR WORDPRESS, HELP!

Viewing 5 replies - 1 through 5 (of 5 total)
  • you will need to check wp-config.php file and see if you made a mistake in entering databse info.

    When you installed Xampp did you set password for root or when you created the database did create password for the database.

    Thread Starter nekiwa07

    (@nekiwa07)

    When I installed the Xampp, it did not ask me if I wanted to create a password. All of this is new to me. What database info was I suppose to enter and where?

    hey I’ve created a nice tutorial for this purpose only… Though it’s in WAMP sever i guess it’ll be useful and moreover (IMO only i don’t intend to start any fights here) WAMP is much more user friendly than XAMPP.(which i just don’t get it). If you’re solely trying to do WordPress development i suggest you to try WAMP once.

    link: https://youtu.be/eunNVeMmigM

    wish you luck…

    In your wp-config.php you need use root as user name leave password blank if you did not create any password.
    Or you can create another user with a name and password and use that in wp-config.php

    Hi nekiwa07,

    You need to setup passwords for mysql database before proceed forward.

    once installed XAMPP then go to

    https://localhost/security/
    then click on the link given below
    => https://localhost/security/xamppsecurity.php <=
    the you got the option to set password for database user “root”.

    then go to
    https://localhost/phpmyadmin/

    login here using username: root and password you entered above.

    create a database.

    then extract and copy files to a directory and just browse
    https://localhost/directory/

    enter the details and install it.
    it is better option to install.
    for more details installation and setup of XAMPP you can see
    here :

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need Help Installing LOCALLY!!’ is closed to new replies.