alienmojo Posted January 30, 2007 Share Posted January 30, 2007 ok i just reformated my hard drive and after reinstalling everything and then importing my databasewhen i go to my website i get this error[quote]Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\Documents and Settings\marquis taliaferro\Desktop\web page\results.php on line 178Could not connect: Access denied for user 'root'@'localhost' (using password: YES)[/quote] Link to comment https://forums.phpfreaks.com/topic/36281-error/ Share on other sites More sharing options...
TEENFRONT Posted January 30, 2007 Share Posted January 30, 2007 i take it your PC is the website server?Have you added a user to the database? are you using the correct username and pass to connect to mysql on results.php? Link to comment https://forums.phpfreaks.com/topic/36281-error/#findComment-172490 Share on other sites More sharing options...
alienmojo Posted January 30, 2007 Author Share Posted January 30, 2007 o know the user name is right cause im just using the default root one how do i see what my password it though Link to comment https://forums.phpfreaks.com/topic/36281-error/#findComment-172492 Share on other sites More sharing options...
TEENFRONT Posted January 30, 2007 Share Posted January 30, 2007 erm, im not a server guy. But i add a user to any database that i create and that user has a password. so if your user is root, whats your roots pass? Link to comment https://forums.phpfreaks.com/topic/36281-error/#findComment-172493 Share on other sites More sharing options...
fert Posted January 30, 2007 Share Posted January 30, 2007 root accounts by default have no password Link to comment https://forums.phpfreaks.com/topic/36281-error/#findComment-172500 Share on other sites More sharing options...
TEENFRONT Posted January 30, 2007 Share Posted January 30, 2007 my root user has a password. its the same password as i use to logon to cpanel. Link to comment https://forums.phpfreaks.com/topic/36281-error/#findComment-172509 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.