Hi all, I have done a program in php and mysql using software WAMP5 PHP5- Appache 2- MySQL 5 Server Configuration Apache version : Apache/2.2.4 (Win32) PHP version : 5.2.1 Loaded extensions : bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, apache2handler, mbstring, mysql, mysqli, PDO, pdo_sqlite, SQLite MySQL version : 5.0.27-community-nt Well, I have got this error when trying to excute a file istall.php which I create mysql database using php script but it is giving me this error and when i open database.php and the lin 26 is this code $conn = mysql_connect($sql_host,$sql_username,$sql_password); Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\Program Files\wamp\www\CMT3092\database.php on line 26 Cannot conect to the server... : Access denied for user 'root'@'localhost' (using password: YES) I really be very grateful if anyone can help me and tell me what is wring or if i can send them all the files and checked by using that software wamp beacuse i use password in mysql but in the wamp systen mysql there is not databse tho. Thanks all in advance.
that just looks like a login error. double check your password. i think root should automatically have mysql permissions but you might want to check that too.
Remove the password field it will work no need to add password. I agree with PresFox default in Wamp, root has no password.