Access denied for MySQL

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

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.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 99 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.