The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Error establishing a database connection (5 posts)

  1. srolls
    Posted 5 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 5 years ago #

    Try asking your host for assistance.

  3. christopherross
    Posted 5 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
    Posted 5 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
    Posted 5 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