WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] First WP install error (7 posts)

  1. csdickson86
    Member
    Posted 1 year ago #

    So I am getting this:

    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.

    Try again

    I need help knowing what to put in here (Dont know what to put for DB Host or Table Prefix, need examples):

    Below you should enter your database connection details.

    Database Name
    User Name
    Password
    Database Host
    Table Prefix

  2. michael.mariart
    Member
    Posted 1 year ago #

    The prefix can be whatever you want it to be, but it's normally set up as "wp_" to start with.

    The other values for DB name, host, username and password are all something that you have to ask your hosting company about. They are different from server to server so there's never one value that will work for everyone.

  3. If you're having these problems, your best bet is to start over again and do a one-click install of WordPress. With a one-click install, you won't have to worry about any of these details.

    Who is your host? At this point, most of the major hosting companies offer one-click installs. Look for the SimpleScripts or WordPress links from your cPanel.

  4. csdickson86
    Member
    Posted 1 year ago #

    Thats my problem... there is no 1 click install. Thats what I usually do and its not really hard, but this is a contract job and I am trying to work with the people who host their site. It really sucks, but I am trying to get them to update stuff. If not then I think I will just have to inform them to get a new host. Thanks for the help.

  5. If you can access phpMyAdmin and cPanel, you can do the following:

    - From phpMyAdmin: Create a database
    - From cPanel - MySQL Databases: Create a MySQL user
    - From cPanel - MySQL Databases: Add that MySQL user to the new database
    - Add the database name, user name, and user password to the wp-config file. Just be sure to add the hosting account prefix.
    - DB host is probably: localhost

    The bottomline: if you're not doing a one-click install you need to create the following:
    - database
    - user
    - password

  6. csdickson86
    Member
    Posted 1 year ago #

    Thanks. Thats basically my plan. Problem is that their phpMyAdmin is so far out of date that it doesnt have some of those features (I think its like 2.11.10 and the current version is 3.5.5), so I informed them of this and I hope they will update it. If they do, then I can follow those steps. Thanks again.

  7. csdickson86
    Member
    Posted 1 year ago #

    Figured out the problem with the host provider. It was a mislabeling on their part. Thanks guys!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.