tmysql

I’m not sure if this is in the right section, sorry.

Can I get a link to tmysql download? I’ve been looking everywhere and I can’t seem to find it. :confused:

http://gmodmodules.googlecode.com/svn/trunk/

I’m getting an error saying “bad argument #3 to ‘initialize’ <string expected, got nil)(Hook: Initialize)” on line 99 which is:

[lua]
tmysql.initialize(self.Config[“MySQL Host”], self.Config[“MySQL Username”], self.Config[“MySQL Password”], self.Config[“MySQL Database”], 3306, 5, 5)
[/lua]

I’m sorry, I’ve never used MySQL or anything before. I’m guessing I have to connect all this to a MySQL database or something, right?

Where are you calling that in?

In GM:Initialize

And is self.Config[“MySQL Host”] defined?

Em, I don’t know… I downloaded the applejack gamemode and put tmysql on and I’m getting this error. I am not familiar with applejack coding nor do I know mysql

As far as I can tell, no.

So why is it that when I put in:

tmysql.initialize(self.Config[“MySQL Host”], self.Config[“MySQL Username”], self.Config[“MySQL Password”], self.Config[“MySQL Database”], 3306, 5, 5)

It all works except the password… but when I put in my mysql stuff everything but the Host works… ?

[editline]20th February 2012[/editline]

What I think I’m supposed to do with this:

MySQLHost is supposed to be localhost
MySQL Username is supposed to be what I use to log into the cpanel
MySQL Password is supposed to be the password to log in
MySQL Database is supposed to be the database I’m connecting to

… right?

What do you mean it works except for the password.

who is your host for the database

Forget that…

I use xfactorservers

-snip-

i stand corrected

close enough