login community faq

i was wondering how do connect to the mysql db that i have made on the backend? im using

$conn = mysql_connect('localhost','username','password','mysql_db') or trigger_error("SQL", E_USER_ERROR);

and i keep getting an error saying

Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'username'@'web??.webfaction.com' (using password: YES) in example.php on line 13 what is going on?

asked Sep 25 '12 at 13:10

ericspecullaas's gravatar image

ericspecullaas
11


You should be using the name of your database as the username. More information is available in our documentation: Databases

answered Sep 25 '12 at 13:14

seanf's gravatar image

seanf ♦♦
56441220

thanks you very much I didnt have the db with the username like username_db

(Sep 25 '12 at 13:22) ericspecullaas ericspecullaas's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited