Home  >  Article  >  Backend Development  >  php连接错误

php连接错误

WBOY
WBOYOriginal
2016-06-23 13:57:43936browse

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO)


回复讨论(解决方案)

显然 root 用户有口令,而你连接时没给

你的密码是不是错了?????

(using password: NO) 连接时没有密码

我数据库没有密码啊

显然 root 用户有口令,而你连接时没给



你的密码是不是错了?????



(using password: NO) 连接时没有密码

数据库没有密码呢

可在phpmyadmin中查看root localhost是否有权限。
如没有加上便可。


mysql重新安装,设置密码

Statement:
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