Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: KAKAN on Dec 11, 2015, 04:05 PM

Title: MySQL connect error
Post by: KAKAN on Dec 11, 2015, 04:05 PM
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.
Title: Re: MySQL connect error
Post by: Xmair on Dec 11, 2015, 04:31 PM
Aren't php and squirrel are different languages?
Title: Re: MySQL connect error
Post by: Thijn on Dec 11, 2015, 04:35 PM
Simple: Use a password. Google how to set one.

Locked.