Error message

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
phpBrandNew
Forum Commoner
Posts: 36
Joined: Thu Sep 02, 2010 12:51 am

Error message

Post by phpBrandNew »

I have this message after typing into the browser.
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\Database.php on line 6
Couldn't connect to server

How do I enable MySQL to allow connection ? Help wanted.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Error message

Post by AbraCadaver »

MySQL will allow the connection if you provide the correct username and password.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
phpBrandNew
Forum Commoner
Posts: 36
Joined: Thu Sep 02, 2010 12:51 am

Re: Error message

Post by phpBrandNew »

Where can I see what username and password for that database ?
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Error message

Post by McInfo »

Read this.
Post Reply