Jump to content

Database Puzzle


enginemike

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/129912-database-puzzle/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.