Hi all, I was trying to set up a MySQL thing for my server.
So, my password was null, and I tried this settings:-
abc <- mysql_connect("localhost","root","","vcmpdb")But this gave rise to this error:-
Error in 'mysql_connect': Wrong number of arguments or invalid argument type Any help would be appreciated.
While, I tried this code on a php file:-
<?phpif(!@mysql_connect('127.0.0.1', 'root', '')){ echo "mysql not connected ".mysql_error(); exit;}echo 'great work';?>
It echo'ed great work without any errors.
Simple: Use a password. Google how to set one.
Locked.