我刚刚在 Windows 8 上安装了 wampserver,但我无法让它工作,在阅读了一点点之后,我能够让它工作,将端口形式 80 更改为 8080。现在我正在尝试使用默认文件 testmysql.php 来测试它,比如这个:
$link = mysql_connect('localhost:8080','silv','123');
但现在收到以下错误消息
Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: MySQL server has gone away in C:\wamp\www\testmysql.php on line 2
/
arning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Error while reading greeting packet. PID=4848 in C:\wamp\www\testmysql.php on line 2
/
Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: MySQL server has gone away in C:\wamp\www\testmysql.php on line 2
/
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\testmysql.php on line 2
任何想法我可能做错了什么?是主机的名称问题到底是什么?
谢谢,