使用Wamp的php和mysql之间的连接错误 [英] Connection error between php and mysql using wamp

查看:298
本文介绍了使用Wamp的php和mysql之间的连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对这个错误有任何想法:
在第73行的C:\ bookstore \ db_mysql.inc中拒绝用户``SYSTEM''@``localhost''的访问(使用密码:NO)(我需要在My Php代码和Wamp中创建的mysql数据库之间建立连接(从.sql文件导入表))

Have any one an idea about this error:
Access denied for user ''SYSTEM''@''localhost'' (using password: NO) in C:\bookstore\db_mysql.inc on line 73(i need to make connection between My Php code and mysql database created in Wamp(importing the tables form .sql file))

推荐答案

您必须配置数据库以授予对该用户名/主机组合的访问权限:http://dev.mysql.com/doc/refman/5.5/en/privilege-system.html [ ^ ]
您还应该为该帐户设置密码以保护数据库.
You must configure the database to grant access to that username/host combination: http://dev.mysql.com/doc/refman/5.5/en/privilege-system.html[^]
You should also set up a password for the account to protect the database.


这篇关于使用Wamp的php和mysql之间的连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆