Mike269 Posted March 20, 2015 Share 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! Link to comment
WhoAmI Posted March 20, 2015 Share 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 Link to comment
Mike269 Posted March 20, 2015 Author Share 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 Link to comment
WhoAmI Posted March 20, 2015 Share 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 Link to comment
Mike269 Posted March 20, 2015 Author Share Posted March 20, 2015 doesn't hosted servers have that already? Link to comment
WhoAmI Posted March 20, 2015 Share Posted March 20, 2015 Not all. Check the modules folder on /mods/deathmatch. Link to comment
Mike269 Posted March 20, 2015 Author Share 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 ^^ Link to comment
Mike269 Posted March 20, 2015 Author Share Posted March 20, 2015 btw, where could I get mta_mysql.dll file? Link to comment
WhoAmI Posted March 20, 2015 Share 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= Link to comment
Mike269 Posted March 20, 2015 Author Share Posted March 20, 2015 did as you said , still same error Link to comment
WhoAmI Posted March 20, 2015 Share Posted March 20, 2015 Did you add the line in mtaserver.conf? Link to comment
Tomas Posted March 20, 2015 Share Posted March 20, 2015 Yes, just like that Did you restart the server? btw, you bought a VPS or just a Game-Server? Link to comment
WhoAmI Posted March 20, 2015 Share Posted March 20, 2015 He bought game-server on delux host. After adding .so module it still doesn't work. Don't know why. Link to comment
Mike269 Posted March 20, 2015 Author Share Posted March 20, 2015 just game server , tried everything idk what the hell is wrong Link to comment
Mike269 Posted March 20, 2015 Author Share Posted March 20, 2015 Look if that will work I'm ready to buy another host I just want it to work Link to comment
Mike269 Posted March 21, 2015 Author Share Posted March 21, 2015 Yes they are like "attempt to call global "mysql_connect" (a nil value) Link to comment
Addlibs Posted March 21, 2015 Share Posted March 21, 2015 As far as I'm aware, you also need to enable a module through console commands or mtaserver.conf Link to comment
WhoAmI Posted March 21, 2015 Share Posted March 21, 2015 He solved the problem already. Delux host has problem with it. On other host it is working well. Link to comment
Mike269 Posted March 22, 2015 Author Share 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! Link to comment
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