Access denied for MySQL

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 09, 2008
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England
  • Status: Offline

Post December 11th, 2009, 7:24 am

Im trying to conect to my local copy of MySQL now ive set up a username "neil" for me and a password in the mysql controal pnall but when I try to conect to it I get this error
Quote:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'neil'@'localhost' (using password: YES) in C:\xampp\htdocs\site\includes\functions.php on line 16

along with the die statement
I tried using the root with no password and this gets rid of the error but I still the the die. I am new to mysql but have used it a bit in the past and its always worked. I am using a new copy of xampp could that be it. Any ideas on how to fix this as I have viery little to do with the project untill I can get this working.
^__^
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 11th, 2009, 7:24 am

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post December 11th, 2009, 7:52 am

Double-check your user/pass against what you're passing via code. Acess Denied error is pretty straightforward - either the info is being passed incorrectly or the user hasn't been set up properly.
I'd love to change the world, but they won't give me the source code.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 186 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.