vinsux Posted July 31, 2012 Share Posted July 31, 2012 i'm in my cpanel.. my website displays Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /home/ocmpq/public_html/index.php on line 15 Access denied for user 'root'@'localhost' (using password: NO) i can't see where is the host name of my site in cpanel?.. we actually pay for that web hosting site.. PLease help.. asap!! THANK YOU VERY MUCH.. Link to comment https://forums.phpfreaks.com/topic/266501-where-is-the-host-name/ Share on other sites More sharing options...
Christian F. Posted July 31, 2012 Share Posted July 31, 2012 Ask your web host, or check the mail you most certainly have got from them, for how to connect to the MySQL server. Link to comment https://forums.phpfreaks.com/topic/266501-where-is-the-host-name/#findComment-1365705 Share on other sites More sharing options...
jazzman1 Posted July 31, 2012 Share Posted July 31, 2012 This warning: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /home/ocmpq/public_html/index.php on line 15 Access denied for user 'root'@'localhost' (using password: NO) there is nothing to do it with the host name. Do you have access to DB through any php web or desktop applications ? Link to comment https://forums.phpfreaks.com/topic/266501-where-is-the-host-name/#findComment-1365723 Share on other sites More sharing options...
vinsux Posted July 31, 2012 Author Share Posted July 31, 2012 it works in localhost... i just changed the server name and pass... tnX!! Link to comment https://forums.phpfreaks.com/topic/266501-where-is-the-host-name/#findComment-1365727 Share on other sites More sharing options...
Christian F. Posted July 31, 2012 Share Posted July 31, 2012 You're welcome, and glad to see you got it sorted out. Link to comment https://forums.phpfreaks.com/topic/266501-where-is-the-host-name/#findComment-1365736 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.