enginemike Posted October 24, 2008 Share Posted October 24, 2008 I just created a database using phpmyAdmin My code is /development parameters //comment out for production use $db_host = 'localhost'; $db_name = 'sassy'; $db_user = 'root'; $db_password = ''; //establish connection with database if ( !($link_id = @mysql_connect($db_host, $db_user, $db_password)) ) { message_die(CRITICAL_ERROR, __LINE__, __FILE__, "Unable to establish connection with server"); } //open database if ( !(@mysql_connect($db_name, $link_id)) ) { message_die(CRITICAL_ERROR, __LINE__, __FILE__, "Unable to open requested database"); } I am getting the following error error number ---> 1045 error description ---> Access denied for user 'ODBC'@'localhost' (using password: NO) I have no user ODBC of course. I have never seen this before and have no idea what to do about it. I have never had a problem with user "root" before. Can anyone offer some insight? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/129912-database-puzzle/ Share on other sites More sharing options...
fenway Posted October 24, 2008 Share Posted October 24, 2008 You're not connecting as root... as the error message says. Quote Link to comment https://forums.phpfreaks.com/topic/129912-database-puzzle/#findComment-673780 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.