Establishing a database connection

q2ax10ho

New Member
Messages
1
Reaction score
0
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');
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
Have you created a MySQL user, attached it to the database and given it privileges?
 

Anna

I am just me
Staff member
Messages
11,733
Reaction score
578
Points
113
The database you have in there doesn't appear to match the actual username (the part after ****x10ho_ is different).
 
Top