-2

I have problem in my wamp server . I dont know how to fix that . You can see the Error in photo ?? enter image description here

help me . Thanks

  • 4
    Did you care to Google the message? It has to do with your MySQL server not setup correctly. Example result from Google: http://stackoverflow.com/questions/25003590/host-localhost-is-not-allowed-to-connect-to-this-mysql-server – bzeaman Aug 22 '16 at 13:30
  • Did you install MySQL on your machine? – K.I Aug 22 '16 at 13:31
  • have you checked the connection Parameter .... – Jens Aug 22 '16 at 13:31
  • @K.I Evidently he did, as MySQL responds. – bzeaman Aug 22 '16 at 13:34
  • no body can answer to the question ?? – Mohammadali Mirhamed Aug 22 '16 at 13:41
  • 3
    Some explanation for downvotes: The question demonstrates impatience, no research effort whatsoever, & doesn't even transcribe the error message into text where it can be more readily indexed so others can find it later. It's also probably a duplicate of [this question](https://stackoverflow.com/questions/15087492/host-localhost-is-not-allowed-to-connect-to-this-mysql-server-1130) and/or off-topic as a better fit for [Server Fault](http://serverfault.com/) if it were a better quality question. SO likes to punish people who try to answer such low quality questions (as you can see below). – WBT Aug 22 '16 at 13:44
  • Can you edit your question to paste in the lines of PHP code where you create the MySQL connection object and any before that where you set variables that are used, EXCEPT `$password` (and if you're not using a variable for that, replace it with one for your post). Examples might look like [this](http://www.w3schools.com/php/php_mysql_connect.asp). – WBT Aug 22 '16 at 13:55

1 Answers1

1

The username and password PHP is using to try to connect to MySQL is not recognized as a valid set of credentials by the MySQL server. Check to make sure you have the credentials entered correctly in PHP and that the user exists in the MySQL database, allowed to access from LOCALHOST.
Do answers on this question help?

WBT
  • 2,249
  • 3
  • 28
  • 40
  • 1
    Why is this answer being downvoted? – bzeaman Aug 22 '16 at 13:34
  • i dont know . my question has downvote too – Mohammadali Mirhamed Aug 22 '16 at 13:38
  • @bzeaman Certain members of the Stack Overflow community like to punish folks who try to be helpful to people who ask low quality questions, and the OP hasn't read [this](https://stackoverflow.com/help/how-to-ask). – WBT Aug 22 '16 at 13:48
  • There maybe many reasons for the downvote. First if there is a question with same Problem, you should mark the question as duplicate and not link to it in your own answer. Second one, because the question can be solved by googling. – Jens Aug 22 '16 at 14:08
  • I hadn't found the likely dupe at first because answering directly was actually easier. That the question demonstrates low research effort is an issue that in my opinion should lead to downvotes on the *question* rather than its *answers,* but others clearly disagree. – WBT Aug 22 '16 at 14:10
  • @Jens Also, I don't have the dupehammer, though I did flag it. – WBT Aug 22 '16 at 14:18