WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a database connection (5 posts)

  1. srolls
    Member
    Posted 3 years ago #

    Trying to install wordpress and I get a "Error establishing a database connection" error.

    The database is not in the public folder but instead in a database folder off the root. Is this a problem, and if so do I have to specify the location in the wp-config file somewhere?

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Try asking your host for assistance.

  3. christopherross
    Member
    Posted 3 years ago #

    srolls, WordPress makes use of a MySQL database which isn't really 'stored' the way you're describing. You'll be best to talk to your hosting company or take a look in your control panel to see if there's a one click install option.

  4. itcigarrilloselectronicos
    Member
    Posted 3 years ago #

    I get this error: Does any know how to fix it? Thanks

    Warning: mysql_get_server_info() expects parameter 1 to be resource, boolean given in /home/weblog/public_html/wp-content/db.php on line 1349

    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 weblog_global database.

    * Are you sure it exists?
    * Does the user weblog have permission to use the weblog_global database?
    * On some systems the name of your database is prefixed with your username, so it would be like username_weblog_global. 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.

  5. louis.brandon99
    Member
    Posted 3 years ago #

    @itcigarrilloselectronicos : Please do not interfere in any other issues as it may cause trouble while assisting to actual issue.

    You need to start a new thread.. Access http://wordpress.org/support and at the bottom, you can start the new topic.

Topic Closed

This topic has been closed to new replies.

About this Topic