Forums

Error establishing database connection (5 posts)

  1. zomgguy
    Member
    Posted 1 year ago #

    Hey guys,

    I'm a young student who is interested in Wordpress and just started attempting to learn how to use it but unfortunately I just can't. I'm trying to set up a test wordpress blog which I won't really use.

    I did everything right (at least I think so) until the bit where I have to run the install script. So I went to the install script and it told me that it had an error establishing the database connection. Because this is just a test wordpress blog, I am using a free web host with a free subdomain name. I am using 000webhost. I made an SQL database with the name "a1277650_blog" and with the username of "a1277650_user". I changed the database host in wp-config to "mysql3.000webhost.com" because 000webhost said that it was it's database host.

    This is my PHP script:

    define('DB_NAME', 'a1277650_blog');  
    
    define('DB_USER', 'a1277650_user');   
    
    define('DB_PASSWORD', 'iwantmesos1'); 
    
    define('DB_HOST', 'mysql3.000webhost.com'); 
    
    define('DB_CHARSET', 'utf8');  
    
    define('DB_COLLATE', '');  
    
    define('SECRET_KEY', 'cvkf02520ctv75y2520457ctvy');

    I really am pretty noobish at this stuff. I have no prior knowledge of web developing or databases or all this web stuff. I am a middle school student.

  2. samboll
    moderator
    Posted 1 year ago #

    on 000 i think the user is just "a1277650"

  3. zomgguy
    Member
    Posted 1 year ago #

    No, the username is definitely "a1277650_user". When I created the database, it said so.

    But to be on the safe side, I tried it anyway but it didn't work. Ty for trying to help me though =D

  4. thekyleman71
    Member
    Posted 1 year ago #

    I'm having the exact same problem.

    I've double-checked my server name, host name, user name, everything.

    My website is hosted through http://www.gate.com

    I have installed Wordpress on this database before, but that is not the error I am receiving. It says that it simply cannot access my database. Really frustrating.

  5. debunked
    Member
    Posted 5 months ago #

    Anyone figure out how to get 2.7 or 2.8 to install on gate.com?

    I see this thread and others but no answers, I tried their support and it still doesn't work. I am trying to convince my friend to let me switch her server since gate.com seems to be back in 1999.......

    Thank you for any help in advance

Topic Closed

This topic has been closed to new replies.

About this Topic