Database Connection failed: mysql_error: Accessdeniedforuser 'root' @ 'localhost'

Source: Internet
Author: User
Database Connection failed: mysql_error: Accessdeniedforuserroot @ localhost FAQ

Database Connection failed: mysql_error: Access denied for user 'root' @ 'localhost' (using password: YES)

What is this? what is the password?
This error occurs when I install AppServ in the project and access the project website.
Access phpMyAdmin is normal
(The server is not your computer)
Please help. please give me more details. Only understand php


Reply to discussion (solution)

The root user has no permissions. check your password.

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

Mysql_error: Access denied for user 'root' @ 'localhost' (using password: YES)
Your root user's password is incorrect.

The default administrator username of the root user. as long as you have not deleted it, the root user always exists.
The problem lies in the password. using password: YES indicates that you have entered the password, but the password is incorrect.

Since phpMyAdmin can work, you can find the password in 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.