• So I’m trying out the new version of WP.

    I’m trying to install it locally, but for some reason it won’t connect to the DB “Error establishing a database connection”.

    I know my username & password is correct(copy & paste).

    As far as the hostname, I am unsure. I am using EasyPHP 12.1. I’ve tried using “localhost” and “http://127.0.0.1/” and “http://127.0.0.1:8080/”.

    http://127.0.0.1:8080/” is what is showing in my browser when I view the site. This is also what I use when installing other software locally, and it works.

    Any ideas why I cannot connect to the DB?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    Error connecting to your database is common, but it isn’t necessarily a problem with wordpress itself.
    – double check your wp-config.php file settings for the database name, database username and database password. This is where most errors occur.
    -Then check that you don’t need to change the database host from “localhost” to something else.
    -Check you have actually created a database with the same database name as is in your wp-config.php file.
    -Last, but not least, if all that information is correct your database probably has a problem with it.
    -There are also many threads on this topic on these forums: http://wordpress.org/search/Error+establishing+a+database+connection?forums=1

    -also review info in this codex: http://codex.wordpress.org/WordPress_Installation_Techniques#Installing_WordPress_Locally

    Thread Starter Xarcell

    (@xarcell)

    Thanks for the help with the links.

    I realized I wasn’t at the correct address to install WP(it’s been awhile):wp-admin/install.php

    From there I was able to debug my issues and now have successfully installed it locally.

    Moderator t-p

    (@t-p)

    Glad to hear that 🙂

    Hi!

    I’m having the same error: Error establishing a database connection
    I ensured i put the correct information about user password and hostname even I proved that the data base conection is ok.

    What can i do?

    Thank you

    Moderator t-p

    (@t-p)

    @srtauls: Despite any similarity in symptoms, your issue is likely to be completely different because of possible differences in physical servers, hosts, plugins, theme, configurations, etc. Also, It’s easier for volunteers to help you if you have your own topic. Therefore, as per the Forum Welcome, please post your own topic. Posting in an existing topic prevents from being able to track issues by topic. 🙂

    Sorry,

    It was my first time here and I was not sure about how it works.
    I will explain my problem with a new topic.

    Thank you 🙂

    Moderator t-p

    (@t-p)

    You are welcome 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Local Install: Cannot Connect To DB’ is closed to new replies.