kadamsurekha Posted March 9, 2007 Share Posted March 9, 2007 hello!! my code is:- <?php $link = mysql_connect('localhost:3306', 'mobis', ''); if (!$link) { die('Could not connect: ' . mysql_error()); } else { echo "connection"; } mysql_close($link); ?> if i try with this code it is fine with my server. but when i try for my online site it gives me the foll msg:- Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mobis'@'localhost' (using password: NO) in /home/httpd/vhosts/mobishoptalk.fritzdsouza.com/httpdocs/wel.php on line 99 Could not connect: Access denied for user 'mobis'@'localhost' (using password: NO) line 99 : $link = mysql_connect('localhost:3306', 'mobis', ''); i hav hosted my site using filezilla server. do i need any configurations there or in mysql? can u tell me the soln thx Quote Link to comment https://forums.phpfreaks.com/topic/41967-mysql-connectns/ Share on other sites More sharing options...
fenway Posted March 9, 2007 Share Posted March 9, 2007 No password? Sounds like a problem to me. Quote Link to comment https://forums.phpfreaks.com/topic/41967-mysql-connectns/#findComment-203551 Share on other sites More sharing options...
DanDaBeginner Posted March 13, 2007 Share Posted March 13, 2007 well, basically the problem is you can't access the database.. asked for the info on how to access your database in your hosting company.. Quote Link to comment https://forums.phpfreaks.com/topic/41967-mysql-connectns/#findComment-206158 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.