Techron Posted January 23, 2008 Share Posted January 23, 2008 PHP 5.2.5 Using a simple script to test connection to MySQL (v5.0.45) installed on this new testbed running Apache 2.2.6 ; the "MySQL" section comes up on the " php info() " page: " <?php mysql_connect("localhost", " ", "xxxx") or die(mysql_error()); echo "Connected to MySQL<br />"; ?> " The password is the same one I use when logging to MySQL from the client ( don't know how exactly to assure "username" is other than "no value" ). But I am still getting " Access denied for user 'ODBC'@'localhost' (using password: YES) " ; I've even tried omitting the username argument , no help. Link to comment https://forums.phpfreaks.com/topic/87313-solved-access-error-when-attempt-to-connect-mysql/ Share on other sites More sharing options...
revraz Posted January 23, 2008 Share Posted January 23, 2008 Isn't the default username root? Link to comment https://forums.phpfreaks.com/topic/87313-solved-access-error-when-attempt-to-connect-mysql/#findComment-446586 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.