WordPress.org

Forums

[resolved] Database problem. anyone used 000webhost? (5 posts)

  1. bigproud
    Member
    Posted 6 years ago #

    I registered an account at 000webhost.com
    well,I wrote the wp-config.php as follows:

    define('DB_NAME', 'a2000000_abc');

    define('DB_USER', 'a2000000_abc');

    define('DB_PASSWORD', '******');

    define('DB_HOST', 'localhost');

    but when I go to my domain, only to find this:
    Error establishing a database connection

    I am confused how to settle the wp-config.php down.
    and if there is anyone who used 000webhost successfully,can you tell me what is your settings.
    thx a lot

  2. Samuel B
    moderator
    Posted 6 years ago #

    define('DB_HOST', 'localhost');

    000webhost does not use localhost
    click on your mysql icon in 000webhost control panel
    at bottom of screen it shows what connect to use

  3. bigproud
    Member
    Posted 6 years ago #

    000webhost does not use localhost
    click on your mysql icon in 000webhost control panel
    at bottom of screen it shows what connect to use

    thx a lot. I made a refinary.
    define('DB_HOST', 'mysql5.000webhost.com');

    but it fails again.

    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 mysql5.000webhost.com. This could mean your host's database server is down.

  4. stuartpturner
    Member
    Posted 6 years ago #

    I'm having a similar problem with this host (not sure if it's worth resolving tbh) but:

    wp-config file is totally correct, all DB settings are correct, al files are uploaded however, when I try and access 'mydomain/wp-admin/install.php' a 'forbidden' error occurs, or a link appears in the top left of the page, with the anchor text 'Enter The Website'.

    This link resolves to a 404 page on 000webhost and opens a pop up ad. Not good. Has anyone else seen anything like this?

  5. leoxgeo
    Member
    Posted 5 years ago #

    Same Issue with 000webhost.com

    <<<<<<<<<<<<<<<<This is the error message >>>>>>>
    PHP Error Message

    Warning: require_once(/home/a6354703/public_html/blog/wp-includes/wp-db.php) [function.require-once]: failed to open stream: No such file or directory in /home/a6354703/public_html/blog/wp-includes/functions.php on line 2788

    Free Web Hosting

Topic Closed

This topic has been closed to new replies.

About this Topic