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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.