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?? Link to comment https://forums.phpfreaks.com/topic/94987-wont-connect-to-database/ 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? Link to comment https://forums.phpfreaks.com/topic/94987-wont-connect-to-database/#findComment-486752 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. Link to comment https://forums.phpfreaks.com/topic/94987-wont-connect-to-database/#findComment-488476 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 Link to comment https://forums.phpfreaks.com/topic/94987-wont-connect-to-database/#findComment-490361 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. Link to comment https://forums.phpfreaks.com/topic/94987-wont-connect-to-database/#findComment-490397 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.