After installing MySQL on a windows machine, I set up a root account and password with the winMySQL tool. When using the MySQL database then, I connect to it in a PHP page by executing:
mysql_connect("localhost","username_i_entered","password_i_entered");
mysql_select_db("root");
I have noticed, however, that the MySQL database can be accessed just the same by executing:
mysql_connect("localhost");
mysql_select_db("root");
What can I do to prevent this??
Many thanks...