I have a problem with my mysql-async not wanting to connect to my sql server. (OR just don’t want to write anything into the database)
I followed the tutorial and searched around google and in here for an answer, sadly I found no solution.
This is my mysql-async\lib\config.lua
MySQL.Config.Host = '127.0.0.1'
MySQL.Config.User = 'root'
MySQL.Config.Port = '3306'
MySQL.Config.Database = 'gta5_gamemode_essential'
MySQL.Config.Password = '1202'
I don’t get any errors in my Server console, other than stuff with CouchDB, but that’s no the issue.
I got the tables on the SQL, but it just don’t want to implement the stuff.
For example; Lastposition. It does not save the last position for a player
I did add “require “resources/mysql-async/lib/MySQL”” in the server.lua of Lastposition.
Another example: Apartments; I did the same “require “resources/mysql-async/lib/MySQL”” to the apart_server.lua"
The menu is working, the houses are working, I just can’t purchase any buildings, because it simply does not write any data to the mysql server.
I hope that someone can come up with a solution for this.