Database connection failed: Mysql_error:access denied for user ' root ' @ ' localhost '

Source: Internet
Author: User
Difficult diseases

Database connection failed: Mysql_error:access denied for user ' root ' @ ' localhost ' (using Password:yes)

What is this, what's the password?
I'll put Appserv in the bar. This error occurs when the project is accessed and then visited the project site.
Access to phpMyAdmin is normal
(Not the server is your own computer)
Please help, the strength of the detailed point. To PHP just to understand


Reply to discussion (solution)

Root user doesn't have permission to check your password.

Find the configuration file for your project and change the password.

Mysql_error:access denied for user ' root ' @ ' localhost ' (using Password:yes)
It says your root user's password is wrong.

Root's default administrator user name, as long as you do not delete him, then the root user always exists
Then the problem is on the password, using Password:yes means you entered the password, but the password was wrong

Since phpMyAdmin can work, you just have to find the password from the phpMyAdmin configuration file.

  • 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.