Mike269 Posted March 20, 2015 Posted March 20, 2015 Hello guys I just bought delux host and I would like to know how could I make a script, like "WSSdatabase" or "SAESdatabase" to connect with mysql_connect, My host have mysql and everything but I don't know how could I make a script to connect with it , help me please!
WhoAmI Posted March 20, 2015 Posted March 20, 2015 Use dbConnect you have examples on wiki. dbConnect( "mysql", "dbname=frank;host=1.2.3.4", "username", "password", "share=1" ) frank - database name host - ip to your database
Mike269 Posted March 20, 2015 Author Posted March 20, 2015 Look I tried with this one: http://www.mediafire.com/download/254xa ... tabase.zip but when I restart the script still says: mysql_connect failed
WhoAmI Posted March 20, 2015 Posted March 20, 2015 If you are using mysql_connect you have to install mysql module on server. https://wiki.multitheftauto.com/wiki/Mysql#Installation
WhoAmI Posted March 20, 2015 Posted March 20, 2015 Not all. Check the modules folder on /mods/deathmatch.
Mike269 Posted March 20, 2015 Author Posted March 20, 2015 oh cool, there's no modules in deatchmatch, ill add it, could I get your skype? Thanks, you're a good guy ^^
Mike269 Posted March 20, 2015 Author Posted March 20, 2015 btw, where could I get mta_mysql.dll file?
WhoAmI Posted March 20, 2015 Posted March 20, 2015 You are using Linux or Windows? If windows (which i dont think so) https://code.google.com/p/multitheftaut ... l&can=2&q= If Linux (hosted server always are in this OS) https://code.google.com/p/multitheftaut ... o&can=2&q=
Tomas Posted March 20, 2015 Posted March 20, 2015 Yes, just like that Did you restart the server? btw, you bought a VPS or just a Game-Server?
WhoAmI Posted March 20, 2015 Posted March 20, 2015 He bought game-server on delux host. After adding .so module it still doesn't work. Don't know why.
Mike269 Posted March 20, 2015 Author Posted March 20, 2015 just game server , tried everything idk what the hell is wrong
Mike269 Posted March 20, 2015 Author Posted March 20, 2015 Look if that will work I'm ready to buy another host I just want it to work
Mike269 Posted March 21, 2015 Author Posted March 21, 2015 Yes they are like "attempt to call global "mysql_connect" (a nil value)
Addlibs Posted March 21, 2015 Posted March 21, 2015 As far as I'm aware, you also need to enable a module through console commands or mtaserver.conf
WhoAmI Posted March 21, 2015 Posted March 21, 2015 He solved the problem already. Delux host has problem with it. On other host it is working well.
Mike269 Posted March 22, 2015 Author Posted March 22, 2015 Special thanks to WhoAmI he helped me everytime and he didn't even know me, we need more people like that!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now