Home > Backend Development > PHP Tutorial > php连接异常

php连接异常

WBOY
Release: 2016-06-13 11:56:32
Original
872 people have browsed it

php连接错误
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO)
------解决方案--------------------
显然 root 用户有口令,而你连接时没给
------解决方案--------------------
你的密码是不是错了?????

------解决方案--------------------
(using password: NO) 连接时没有密码
------解决方案--------------------
可在phpmyadmin中查看root localhost是否有权限。
如没有加上便可。



------解决方案--------------------
mysql重新安装,设置密码

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