$handler=mysql_connect("localhost:3306","root",""); $handler=mysql_connect("localhost:3306","",""); and all parameters are default,
But both can't connect to Mysql.
WHY?
What's the error message?
The error message is below: Warning: Can't connect to MySQL server on 'localhost' (10061) in c:\program files\apache group\apache\htdocs\wpage\dbconn.php on line 8
Are you sure mysql lets you connect without a password (unusual)
Can you connect using the mysql commandline tool?
YES, I can connect to mysql in MS-DOS command line without password.