Access Denied for user ODBC
Posted by: nickycdk (---.dk)
Date: January 26, 2007 09:54AM

Hi, i just installed Wampserver, but i have encountered a problem i've never seen before, and i haven't got the slightest idea how to solve it.

When i try to run a script i get this error:

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in D:\Xampp\xampp\htdocs\MusikkenTilJeresBryllup\admin\includes\rtrnfuncs.php on line 6

------------------
This does not make any sense, cause the standard user is "root" without any password, anyways, i gave the "root" user a password (just for security reasons)

But the thing i dont understand is why the script says that the user "ODBC" have access denied to it, but there is no ODBC user! I've tried to make a user called ODBC, but it still gives me the same error.

My connection file looks:

<?

$host = "localhost"; // Host

$user = "root"; // User

$pass = "xxxxxx"; // Password

$db = "bryllup"; // Database

mysql_connect('$host','$user','$pass');
mysql_select_db('$db');


?>
----------------------------------------

Options: ReplyQuote
Re: Access Denied for user ODBC
Posted by: hans83 (83.116.190.---)
Date: January 26, 2007 10:24PM

view this faq
[www.wampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.