php连接数据库失败

WBOY
Release: 2016-06-23 13:09:05
Original
1141 people have browsed it

使用xampp时phpmyadmin页面可以进去,但是php连接数据库时显示错误,以下是错误提示内容
Access denied for user ''@'localhost' (using password: NO)


求大神帮忙看看,百度了好多问题还在,有点懵


回复讨论(解决方案)

      密码不对               密码不对           

进入到phpmyadmin面板的密码和连接数据库的密码不一样吗

用户名呢?没看到

找到问题了,是引入文件的变量没有得到调用,作用域的问题好像

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!