mysql 和php连接
<?php$hostname='localhost';
$username='new';
$password='';
if (mysql_connect("$hostname","$path","$username","$password"))
{
echo "与mysql服务器连接成功<br>";
echo "ID:".$mysqlid;
}
else {
echo mysql_errno();
echo mysql_error();
}
?>
为什么老出现如下提示呢?
1045Access denied for user 'ODBC'@'localhost' (using password: YES)