Establishing a database connection

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by q2ax10ho, Mar 11, 2015.

  1. q2ax10ho

    q2ax10ho New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I think I'm doing everything right, but I'm unable to connect to the database. Help?

    -123456789-.x10host.com_2015-03-11_04-21-34.png
    Screenshot of error page. All is correct if the HOSTNAME is localhost

    define('QA_MYSQL_HOSTNAME', 'localhost');
    define('QA_MYSQL_USERNAME', '******x10ho_q2a');
    define('QA_MYSQL_PASSWORD', '****************');
    define('QA_MYSQL_DATABASE', '******x10ho_q2a');
     
  2. caftpx10

    caftpx10 Well-Known Member

    Messages:
    1,502
    Likes Received:
    110
    Trophy Points:
    63
    Have you created a MySQL user, attached it to the database and given it privileges?
     
  3. Anna

    Anna I am just me Staff Member

    Messages:
    8,408
    Likes Received:
    242
    Trophy Points:
    63
    The database you have in there doesn't appear to match the actual username (the part after ****x10ho_ is different).
     

Share This Page