怎么用appserv连接mysql运行php文件
怎么用appserv连接mysql运行php文件,运行的时候出现这个了。怎么解决。Warning:mysql_connect()[function.mysql-conne...
怎么用appserv连接mysql运行php文件,运行的时候出现这个了。怎么解决。
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\AppServ\www\oa\conn\conn.php on line 2
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\oa\conn\conn.php on line 3
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\oa\conn\conn.php on line 4
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\oa\conn\conn.php on line 4
用户名称:
用户密码:
用户组: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\oa\index.php on line 38 Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\oa\index.php on line 39 展开
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\AppServ\www\oa\conn\conn.php on line 2
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\oa\conn\conn.php on line 3
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\oa\conn\conn.php on line 4
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\oa\conn\conn.php on line 4
用户名称:
用户密码:
用户组: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\oa\index.php on line 38 Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\oa\index.php on line 39 展开
3个回答
展开全部
连接数据库的 用户名和密码不正确,最好先连接一下数据库 然后再程序里写代码
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
appserv 的用户名默认是root 密码是你安装的时候输入的那两行 想一想 改改密码就OK了
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这里出错信息显示: root用户登录的密码不对,请检查一下 。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询