首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

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

2012-04-22 
网页上显示这个Warning是什么意思?SQL codeWarning: mysql_connect() [function.mysql-connect]: Cant co

网页上显示这个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中连接参数是否写错。

热点排行