MySQL connect error

Started by KAKAN, Dec 11, 2015, 04:05 PM

Previous topic - Next topic

KAKAN

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:-
<?php
if(!@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.
oh no

Xmair

Aren't php and squirrel are different languages?

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Thijn

Simple: Use a password. Google how to set one.

Locked.