• Resolved bigproud

    (@bigproud)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Thread Starter bigproud

    (@bigproud)

    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.

    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?

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Database problem. anyone used 000webhost?’ is closed to new replies.