读书人

网页上显示这个Warning是什么意思?该

发布时间: 2012-04-22 18:34:46 作者: rapoo

网页上显示这个Warning是什么意思?

SQL code
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10048) in D:\APMServ5.2.6\www\htdocs\config.php on line 19Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in D:\APMServ5.2.6\www\htdocs\config.php on line 20Warning: mysql_query() [function.mysql-query]: Can't connect to MySQL server on 'localhost' (10048) in D:\APMServ5.2.6\www\htdocs\config.php on line 21


网页可以正常显示,但是页面上方提示这个是怎么回事?

[解决办法]
错误提示应该是无法连接数据库。

你的网页能从数据库中获取信息吗?
[解决办法]
检查config.php中连接参数是否写错。

读书人网 >Mysql

热点推荐