i can check setting mysql like that worked for me. no more timeout error
I did fix the issue on my side by doing this
set mysql_connection_string âserver=0.0.0.0;database=.;userid=user;password=pwd;connectTimeout=20000;supportBigNumbers=true;acquireTimeout=20000â
âFailed to load script @mysql-async/lib/MySQL.luaâ any idea guys ?
[ script:mysql-async] [MySQL] [WARNING] [esx_vehicleshop] [115ms] SELECT * FROM vehicles : []
[ script:mysql-async] [MySQL] [WARNING] [esx_addoninventory] [105ms] SELECT * FROM addon_inventory : []
[ script:mysql-async] [MySQL] [WARNING] [esx_addonaccount] [76ms] SELECT * FROM addon_account_data WHERE account_name = ? : [âcautionâ]
[ script:mysql-async] [MySQL] [WARNING] [esx_society] [105ms] SELECT * FROM job_grades : []
[ script:mysql-async] [MySQL] [WARNING] [es_extended] [161ms] SELECT * FROM job_grades : []
[ script:mysql-async] [MySQL] [WARNING] [esx_datastore] [112ms] SELECT * FROM datastore_data WHERE name = ? : [âsociety_ambulanceâ]
[ script:mysql-async] [MySQL] [WARNING] [esx_addoninventory] [64ms] SELECT * FROM addon_inventory_items WHERE inventory_name = ? : [âsociety_policeâ]
[ script:mysql-async] [MySQL] [WARNING] [esx_addonaccount] [54ms] SELECT * FROM addon_account_data WHERE account_name = ? : [âsociety_policeâ]
[ script:mysql-async] [MySQL] [WARNING] [esx_datastore] [56ms] SELECT * FROM datastore_data WHERE name = ? : [âuser_earsâ]
who can help
These are warnings when you boot up the server most probably and you can ignore them.
For those of you receiving warnings like those below add mysql_log_level 9 (This will only display errors in console) under your connection string like this:
set es_enableCustomData 1
set mysql_connection_string âserver=xxxxxxxx;database=xxxxxxx;userid=xxxxxx;password=xxxxxxâ
set mysql_log_level 9
endpoint_add_tcp âxxxxâ
endpoint_add_udp âxxxxxâ
start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
ETCâŚ
[ script:mysql-async] [MySQL] [WARNING] [esx_vehicleshop] [115ms] SELECT * FROM vehicles : []
[ script:mysql-async] [MySQL] [WARNING] [esx_addoninventory] [105ms] SELECT * FROM addon_inventory : []
[ script:mysql-async] [MySQL] [WARNING] [esx_addonaccount] [76ms] SELECT * FROM addon_account_data WHERE account_name = ? : [âcautionâ]
[ script:mysql-async] [MySQL] [WARNING] [esx_society] [105ms] SELECT * FROM job_grades : []
[ script:mysql-async] [MySQL] [WARNING] [es_extended] [161ms] SELECT * FROM job_grades : []
[ script:mysql-async] [MySQL] [WARNING] [esx_datastore] [112ms] SELECT * FROM datastore_data WHERE name = ? : [âsociety_ambulanceâ]
[ script:mysql-async] [MySQL] [WARNING] [esx_addoninventory] [64ms] SELECT * FROM addon_inventory_items WHERE inventory_name = ? : [âsociety_policeâ]
[ script:mysql-async] [MySQL] [WARNING] [esx_addonaccount] [54ms] SELECT * FROM addon_account_data WHERE account_name = ? : [âsociety_policeâ]
[ script:mysql-async] [MySQL] [WARNING] [esx_datastore] [56ms] SELECT * FROM datastore_data WHERE name = ? : [âuser_earsâ]
i always getting this error
script error:es_extended:modules/core/player/server/module.lua:180: attempt to index a nil value (global âAsyncâ)
is there any help i can get?
Itâs work, thanks
Install async
any idea of how can a mysql-async query using a where clause on a primary key can tick a 128ms warning, but running the same query on the same db using heidi sql it runs in less than a 1ms?
@zr0iq Hey, are you planning on adding exports to this resource?
I am really wanting to use this script in my c# project, but dont want to switch to the older release of this script for the c# wrapper.
Right now I am using lua for the MySQL stuff, and everything else is in c#, But want everything to be c# based.
Is there a way to get this (latest) to work with c#?
If you want, I can try and set something like that up. I have been quite busy working on a lot of different projects, I will try my best to help out as best as I can.
Which MySQL server version is best for async?
That work for me