error Access denied

Problems with the Windows version of XAMPP, questions, comments, and anything related.

error Access denied

Postby squills » 07. December 2009 01:43

hey guys/girls.. I am getting this error only when accessing one table in the database.


Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\RRR\include\bittorrent.php on line 411

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\xampp\htdocs\RRR\include\bittorrent.php on line 411
Access denied for user 'ODBC'@'localhost' (using password: NO)


any other time i try to access the db it works great? any ideals why i would get this error?
thanks
squills
squills
 
Posts: 15
Joined: 22. November 2009 14:19

Re: error Access denied

Postby Wiedmann » 07. December 2009 01:46

I am getting this error only when accessing one table in the database.
Code: Select all
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost'

Your script is connecting without an username to the database.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: error Access denied

Postby squills » 07. December 2009 01:55

why dont i get that error when ever i access the database the other times? How can i set up a username?
squills
 
Posts: 15
Joined: 22. November 2009 14:19

Re: error Access denied

Postby Wiedmann » 07. December 2009 02:04

why dont i get that error when ever i access the database the other times?

Maybe the other times an username is used for the connection?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: error Access denied

Postby squills » 07. December 2009 02:33

all .php files include

require "include/bittorrent.php";

and bittorrent.php includes

require_once("secrets.php");

secrets.php has all the access info.. so should be the same..
would there be any other reason for this error?
squills
 
Posts: 15
Joined: 22. November 2009 14:19

Re: error Access denied

Postby Wiedmann » 07. December 2009 02:39

would there be any other reason for this error?

No.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 37 guests