[Release] MySQL Async Library - 3.0.8



Update 3.0.3

  • Fixed that dates were not returned as in 2.x. Timestamps are now returned in seconds. DateTime is tableified.
  ["dttest"] = { 
    ["Millisecond"] = 0,
    ["Hour"] = 19,
    ["Day"] = 9,
    ["Year"] = 2018,
    ["Minute"] = 25,
    ["Second"] = 34,
    ["Month"] = 9
  } ,
  ["tstest"] = 1539105934
  • For this fix to work you must not have dateStrings=true on your connection string.
  • I probably introduced some bugs with this.
  • Some rough progress was made with getting 3.x to run stable on linux.


Hi have a issue with the mysql async

Current version: 5.0.3
Updater version: 5.0.3

Everything is fine!

Started map fivem-map-skater
Started resource fivem-map-skater
Error: (node:23272) UnhandledPromiseRejectionWarning: TypeError: Cannot read property β€˜3’ of null
at parseConnectingString (mysql-async.js:5124:30)
at global.on (mysql-async.js:5140:18)
at citizen:/scripting/v8/main.js:193:28
Error: (node:23272) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
Error: (node:23272) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


Don’t pass a malformed connection string basically :confused:


Add a ? to the end of the connection string, or use an 2.x connection string



With the new update I get this error while trying to read the date

  • imaged removed *


What format is record_date? I was told only to convert timestamp to int.

But it looks like some more should be in integer format.


The format for record_date is : datetime


I’ll fix it later (within 14h).


Thanks you for your fast answer as always.


Updated to 3.0.4

  • Fixes the issue above (datetime, datetime2, timestamp2 is now cast to seconds)


I do not know how to solve problems but there is a problem with me


Which database version do you use?


And how will I know ?


select version();


where can I find it ?


you start your mysql console.


I did not understand if it was related to this problem




Maybe the new version


Thank you for the new version.
The date format with datetime work :smiley:
but I still get a little error :