WordPress.org

Forums

WordPress installation problem (8 posts)

  1. romeocameo
    Member
    Posted 1 year ago #

    When I install and setup wordpress on my localhost, this is the error message that I have got. May I know how can I solve this problem? Thanks.

    ===
    Can’t select database

    We were able to connect to the database server (which means your username and password is okay) but not able to select the wordpress database.

    Are you sure it exists?
    Does the user root have permission to use the wordpress database?
    On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?

    If you don't know how to set up a database you should contact your host. If all else fails you may find help at the WordPress Support Forums.

    Try again
    ===

  2. statehill
    Member
    Posted 1 year ago #

    I also have the same problem, I have modified the config many ways and it still gives me an error when I view index.php.
    e.g. MySQL database username */ define('DB_USER',
    - I tried DB_USER as 'USER_DB' = NOTHING
    as 'USER' = Still nothing.
    what am I doing wrong?
    Thanx
    http://www.statehill.co.za/company

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    @statehill: It is considered impolite to interrupt another poster's ongoing thread unless you are posting a solution or suggestion. As per the Forum Welcome, please post your own topic.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    @romeocameo: You need to re-check your database details - specifically the name of the database.

  5. statehill
    Member
    Posted 1 year ago #

    not our intention. sorry all

  6. ampli
    Member
    Posted 1 year ago #

    login to phpmyadmin select the database it will show the prefix.

    If nothing works drop all your tables, delete the existing wp-config.php make sure you have the wp-config sample.php

    Then start installing it again.

    This is not an exact tutorial but it shows how to drop the tables and configure again.

  7. statehill
    Member
    Posted 1 year ago #

    thanx @ampli, your tutorial helped. I had to load my username as both DB name and user @ localhost.

  8. ampli
    Member
    Posted 1 year ago #

    @statehill I am glad my tutorial helped you :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.