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. Quote 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? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.