Peter is quite right, void of your application if you logged into the server through, say Query Browser, you would get the same error.
To correct this, you should log into MySQL Administrator as root (or any other power user who has the ability to change user rights) goto the user administration and select your admin user, view there permissions, and then grant them permissions to the entire database you are trying to select from.
(This can also be done through a MySQL shell, but I can't quite remember the commands to change user rights through the shell)
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========