Support » Installing WordPress » Creating connection with database

  • I’m trying to install wordpress locally, however, I’ve been running into a lot of issues starting with this page:

    “Before getting started
    Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.

    Database name
    Database username
    Database password
    Database host
    …”

    So I update my wp-config-sample.php file by putting my DB name: ‘learningWordPress’, DB username: ‘root’, DB password: ‘root’, and DB host: ‘localhost:3306’ (It’s that port because if I go to xamp and click config, service and portsettins, and then MySQL, it says it’s running on mainport 3306).

    then I inputed all that information to install wordpress and I get an error establishing database connection.

    Then I found somewhere that you’re supposed to rename the wp-config-sample.php file to wp-config.php. However, when I did that, I got this error:

    ‘Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file to your WordPress installation.’

    Then I tried to just have both files ‘wp-config-sample.php’ and ‘wp-config.php’ and that did not work either. Are there any experts out there who know how to solve these issues?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, spadejac000 & welcome.

    The file needs to be called wp-config.php. Please try eliminating the port number, as it should work w/o it. It should be placed in the folder where your WordPress is installed.

    Have you created your WordPress database yet in phpMyAdmin or the MySQL command line? You’ll need to do that first.

    Please let us know whether or not that helps.

    hi

    i think your fallowing stpes are wrong
    1.Download the file from wordpress.org
    2.move to xampp->ht docs
    3.create the database in phpmyadmin
    4.go to browser type the link http://localhost/yourfoldername
    5.Database name
    Database user root
    Database pwd EMPTY
    Database localhost
    6.finish the next step.
    7.then login
    [ Signature moderated ]
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating connection with database’ is closed to new replies.