遇到一个PHP连接MySQL问题,PHP支持MySQL,但是总是提示Access denied for user 'IUSR_TOMC-YKJ'@'localhost' (using password
肯定是连接时的用户名和密码错误,否则没可能提示这个错误的,还有(using password: NO) 这里提示你那个代码连接时没有写密码,就是提交空密码。建议楼主吧连接数据库的代码贴出来看看
调试欢乐多
<head>
<title>数据库访问</title>
</head>
<body>
<?php $db=mysql_connect('localhost','root','123456') or die(mysql_error());
?>
</body>
</html>