Access PHP database, MySQL solution

Source: Internet
Author: User
Access PHP database, MySQL
Access denied for user ' * * * * * * (using Password:yes)

Why my server address is filled with the server address of the database, the database user name and password I also filled in the right

Always show this error, ask for expert guidance

------Solution--------------------
Do you have a MySQL client locally? Try it if you have one.
Mysql-h your MySQL ip-u you on the server side user-P Enter
Then enter the user's password

But I guess, there are eight or nine is the MySQL authorization is not done well ... Recommended LZ to study hard ... [email protected] means allow user to log on to MySQL on the IP machine

MySQL in the user table, there should be a record is
Host user
Your server IP you are on the server side of the user


------Solution--------------------
No permissions
------Solution--------------------
Search the keywords.
"MySQL arbitrary host login"
Http://hi.baidu.com/gdsoftware/blog/item/e42dccfcd9cb5187b901a08a.html
Maybe it'll solve your problem.
------Solution--------------------
Execute in MySQL
SQL Code
Grant all privileges on * * to root@ '% ' identified by ' your password ' with grant Option;flush privileges;
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.