我写了以下php链接数据库代码
<?php
$db = mysql_connect( "localhost", "root", "mypassword" );echo $db;
?>提示连接不上数据库: 
Warning: A link to the server could not be established. url=jdbc:mysql://localhost:3306/?characterEncoding=ISO8859_1&useOldAliasMetadataBehavior=true driver=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource java.lang.IllegalStateException [mysql_connect]服务器环境:
Windows 2003 server+ Resin 3.1.10+ MySql 5.1本地同样的配置通过
Windows XP + Resin 3.1.10 + MySql 5.1请各位大侠指导, 谢谢