生逢驿马乡是什么意思:请各位高手帮帮忙,我在调试PHP时出现了以下错误。急求解决办法

来源:百度文库 编辑:高考问答 时间:2024/04/29 19:11:18
Warning: mysql_connect() [function.mysql-connect]: Host 'localhost' is not allowed to connect to this MySQL server in F:\周传平\web\functions.php on line 12

Warning: mysql_select_db() [function.mysql-select-db]: Host 'localhost' is not allowed to connect to this MySQL server in F:\周传平\web\functions.php on line 13

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in F:\周传平\web\functions.php on line 13

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in F:\周传平\web\functions.php on line 18

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in F:\周传平\web\functions.php on line 20

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in F:\周传平\web\functions.php on line 18

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in F:\周传平\web\functions.php on line 28

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in F:\周传平\web\functions.php on line 18

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in F:\周传平\web\functions.php on line 18

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in F:\周传平\web\functions.php on line 18

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in F:\周传平\web\functions.php on line 18

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in F:\周传平\web\functions.php on line 18

Warning: Cannot modify header information - headers already sent by (output started at F:\周传平\web\functions.php:12) in F:\周传平\web\index.php on line 51
不知是什么原因?请高手指点解决办法 谢谢!
还可以更为具体一点吗?[

你用的是SQL数据库管理系统。把你的权限设置高一些有2种合法渠道:第一种是,编写数据库的人员的编辑初始设置权限。第二是,数据库系统的管理员拥有的权限,他能够合法的设置权限。

方法:
下一个phpmyadmin
是个用php做的mysql的管理工具
放在php文件目录下,
用它去管理mysql,加一个用户,admin,密码admin.
把所有的对号都选上,
就是给它最大的权限的意思,
没有权限就访问不了数据库
再把程序中的数据库用户名密码改成admin,admin
就成功了,
不过这中间会有一些配置,做不好就会失败,
如果想一次成功按以下方法做,
1.关了,iis,mysql,apache,mssql,防火墙,win自带的防火墙,
2.下一个apache+php+mysql+phpmyadmin+zend的合装版
http://xxmi.com
下那个v1.1的,
3.安装到d:/usr目录,不改默认目录就对了,
4.把你的程序放到d:/usr/www/html/里
4.改用户名:root
密码:xxmi.com
如果程序有安装文件,./install.php或./install/或setup.php
要用ie运行一次http://localhost/mydir/install.php
mydir是要变的
5.访问你的主页文件
如果还不成功,那就是这个程序有问题了,
天下程序千千万,这个不行咱就换,
www.chinaz.com
下载,php里有很多好程序,