PDA

View Full Version : Having trouble connecting to the MySQL DataBase


arenlor
08-13-2006, 02:55 AM
Here is the code I'm using
$conn = mysql_connect ('mysql.ulmb.com','1162_comics','the password');
$db = mysql_select_db ('1162_comics');

I get this error
Warning: mysql_connect() [function.mysql-connect]: Access denied for user '1162_comics'@'unlimitedmb.com' (using password: YES) in /hosted/subs/ulmb.com/a/r/arenlor/public_html/index.php on line 2

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'root'@'localhost' (using password: NO) in /hosted/subs/ulmb.com/a/r/arenlor/public_html/index.php on line 3

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /hosted/subs/ulmb.com/a/r/arenlor/public_html/index.php on line 3
I do have MySQL training so feel free to just say which part is FUBAR

clancpu
08-13-2006, 03:18 AM
the first part (mysql.ulmb.com) should just be mysql.

(at least i think it is)

arenlor
08-13-2006, 03:22 AM
I don't know why that is, I should know though lol, but yes that's right.