Karuzo Posted January 7, 2014 Share Posted January 7, 2014 Hey Guys i have found a savesystem with mysql on community.multitheftauto.com , but i wanted to add the row player , so i did , mysql import works fine , but if i start the ressource , it says Trouble. I have loaded the Module and i used localhost and 127.0.0.1 .... Error : Unable to connect to mysql: (2002) Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' Link to comment
zixxonx Posted January 7, 2014 Share Posted January 7, 2014 U started your home MySQL server & gave correct data in the configuration file? Link to comment
Karuzo Posted January 7, 2014 Author Share Posted January 7, 2014 No lol, im using a bought Server by ByServ, the MySQL data is correct. Link to comment
zixxonx Posted January 7, 2014 Share Posted January 7, 2014 You got a MySQL database from MyServ? Also, you can try to input also port & socket in mysql: local handler = mysql_connect("127.0.0.1", "username", "password", "database", 3306, "/var/lib/libmysqlclient.so.15", "") Link to comment
Karuzo Posted January 7, 2014 Author Share Posted January 7, 2014 Ye from ByServ , ok thank you i'll try it out. Link to comment
zixxonx Posted January 7, 2014 Share Posted January 7, 2014 You should ask for the hostname of your ip database, databases can be on other server than 127.0.0.1 (dedi with your gameserver) Link to comment
Karuzo Posted January 7, 2014 Author Share Posted January 7, 2014 Thank you it worked 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