mark_18 Posted March 7, 2008 Share Posted March 7, 2008 hi i just had some help from here in the mysql department of things just wondering if someone could help me connecting to the database. I'v done all the db name and db password and stuff but still wont connect. ill post what it says here Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'marksfor_mark'@'localhost' (using password: YES) in /home/marksfor/public_html/tekchat/config.php on line 15 Unable to connect to database. anyone have any ideas?? Quote Link to comment Share on other sites More sharing options...
tippy_102 Posted March 8, 2008 Share Posted March 8, 2008 What does line 15 of config.php look like? Quote Link to comment Share on other sites More sharing options...
fenway Posted March 10, 2008 Share Posted March 10, 2008 You have the wrong password. Or you're connecting from a new/different host. Quote Link to comment Share on other sites More sharing options...
mark_18 Posted March 12, 2008 Author Share Posted March 12, 2008 sorry it has taken me so long to give you the config.php line 15 as i had to re install my computer. here is the error Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'marksfor_mark'@'localhost' (using password: YES) in /home/marksfor/public_html/tekchat/config.php on line 15 Unable to connect to database. and here is like 15 of config.php $conn = mysql_connect("$dhost","$dusername","$dpwd") or die ("Unable to connect to database."); it cant be the password as there is only 1 password and username all your help appreciated Quote Link to comment Share on other sites More sharing options...
fenway Posted March 12, 2008 Share Posted March 12, 2008 It could still be wrong... check the grants table, make sure you're connecting from the right host. Make a new user, with no IP restriction (%), test that one. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.