Home > Backend Development > PHP Tutorial > PHP学习----Access denied for user root@localhost

PHP学习----Access denied for user root@localhost

WBOY
Release: 2016-07-29 09:16:00
Original
1467 people have browsed it

:)

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

PHP to import other people's projects I am using XAMPP Then the first error reported

How to fix it: Configuration file error. Mainly caused by the project that comes from others. The database password is different from your settings. Just change it.

Find the data folder under the project name and then find it again. conf folder and then find db.php and modify its content. Open db.php and change the password. You should be able to change the password in the box:


Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

The above introduces PHP learning----Access denied for user root@localhost, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template