Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Ksna on Aug 06, 2015, 10:39 AM

Title: mysql_connect ; invalid no of arg of invalid argument type
Post by: Ksna on Aug 06, 2015, 10:39 AM
I have tried this using fuzzie account system as is but changed this one line

sqliteDB <- mysql_connect( "localhost", "root", "", "vcmp" );

Error:
mysql_connect  ; invalid no of arg or invalid argument type
password,username ,everything is same as default wamp/xamp , database and everything is working fine and the domain is localhost while installating wamp.
Title: Re: mysql_connect ; invalid no of arg of invalid argument type
Post by: Thijn on Aug 06, 2015, 10:59 AM
Give your root user a password or add another user.
Title: Re: mysql_connect ; invalid no of arg of invalid argument type
Post by: Ksna on Aug 06, 2015, 11:18 AM
i have changed root password to ksna without making other user and i get connection details are wrong. i have used other  hostings like hostinger mysql  same error (connection details are wrong).

Host database:
sqliteDB <- mysql_connect( "mysql.hostinger.in", "u839634666_vcm", "password", "u839634666_vcm" );i have not created tables, anyone can use it for testing

i haved checked connection details many times im sure nothing wrong in connection details
Title: Re: mysql_connect ; invalid no of arg of invalid argument type
Post by: ThunderStorm on Aug 06, 2015, 01:41 PM
I guess this will not work for Hostinger (tried already)
Try adding 3306 as port in final argument.
Title: Re: mysql_connect ; invalid no of arg of invalid argument type
Post by: Ksna on Aug 06, 2015, 01:43 PM
Thunderstrom it should work for any host ..
Error Video
https://www.youtube.com/watch?v=KltoSlc6Qro&feature=youtu.be



Files : http://www.filedropper.com/f_2
Title: Re: mysql_connect ; invalid no of arg of invalid argument type
Post by: Thijn on Aug 06, 2015, 04:06 PM
What does this show:
print("Mysql error: " + mysql_errno());

Add that below the mysql_connect statement.
The plugin works fine for me on localhost or remote, so your details are probably wrong :P
Title: Re: mysql_connect ; invalid no of arg of invalid argument type
Post by: MatheuS on Aug 06, 2015, 04:50 PM
I have already connected a mysql database using EasyPHP and it worked. ???
Title: Re: mysql_connect ; invalid no of arg of invalid argument type
Post by: Ksna on Aug 06, 2015, 05:12 PM
Thijn, It doesn't print anything
I guess the problem is with uac or may be i have 2 operating systems (7, 10) and 10 is primary and wamp has been installed to windows 10 drive from win 7 this has completely changed my mysql i will try hosting a wordpress and use easyphp
Title: Re: mysql_connect ; invalid no of arg of invalid argument type
Post by: Thijn on Aug 06, 2015, 06:07 PM
Instead of localhost, try using 127.0.0.1. Might help, might not.
Title: Re: mysql_connect ; invalid no of arg of invalid argument type
Post by: Ksna on Aug 07, 2015, 09:17 AM
Working now ;)  but hostinger mysql wont work... and this one too
sqliteDB <- mysql_connect( "mysql5.000webhost.com", "a6117057_dell", "dell123", "a6117057_dell" );

Title: Re: mysql_connect ; invalid no of arg of invalid argument type
Post by: Thijn on Aug 07, 2015, 09:33 AM
Unless you paid for hostinger, they don't allow remote access to their mysql servers.