Page 1 of 1

Access denied for user 'ODBC'@'localhost' (using password: N

PostPosted: 24. July 2010 23:30
by bombnail
Access denied for user 'ODBC'@'localhost' (using password: NO)

I hae installed and uninstalled 4 times the latest XAMPP on Win7, seems i can connect bust every time i try to run a query i get this error.
Never happened before, have used this query 1000 times before on my old setup.
Could it be a PHP version issue?

Re: Access denied for user 'ODBC'@'localhost' (using password: N

PostPosted: 24. July 2010 23:40
by Altrea
looks like your script tryies to send a query without doing a connect.
If this is the case php tries to do a default connect with the data you get in the error message.

Have you recently updated your XAMPP to a Version with PHP 5.3 (XAMPP 1.7.2 or 1.7.3).
If this is the case, then try the search for short_open_tags.

btw: This is the german part of the board. Next time look better for the right forum to post!

Re: Access denied for user 'ODBC'@'localhost' (using password: N

PostPosted: 25. July 2010 03:34
by bombnail
Worked out the error, maybe what i did is what alot of ppl are doing, i copied the contents of the htdocs folder and after i re-installed XAMMP i copied my HTDOCS contents back over, what i didnt realise is that there is an XAMPP folder in there and i had over written it.
Also i set XAMPP without assigning a drive letter, if that helps.. Either way it now works!.

Re: Access denied for user 'ODBC'@'localhost' (using password: N

PostPosted: 25. July 2010 03:35
by bombnail
Altrea wrote:looks like your script tryies to send a query without doing a connect.
If this is the case php tries to do a default connect with the data you get in the error message.

Have you recently updated your XAMPP to a Version with PHP 5.3 (XAMPP 1.7.2 or 1.7.3).
If this is the case, then try the search for short_open_tags.

btw: This is the german part of the board. Next time look better for the right forum to post!


Sorry, yes is was 1am and i was so so tired.