Failed to load script @mysql-async/lib/MySQL.lua

Hi there,

So i got A-sync in my server (finally) and every time i start the server, no matter what i try, it keeps telling me: Failed to load script @mysql-async/lib/MySQL.lua.

what am i missing? some sort of setting or line?

Regards,

Monky

1 Like

Your not the only one. Every time I launch my server too I get the same thing as u. Don’t know what it is.

1 Like

there’s this instruction telling you to edit the server’s config and add a line specifying the port, db name and credits, but it don’t say which forsaken config as there ar thousands, know what i mean ?

1 Like

also mysql async does not need to be put as start mysql-async in your config file just dont add it. when a resource needs it. it will run automatically

Sounds like it can’t find the mysql-async resource. Make sure that:

  1. The folder is named exactly “mysql-async”
  2. That mysql-async folder is in the resources
  3. Check if in the server.cfg “start mysql-async” is added. (Maybe not needed, but handy for double/triple checking stuff)

If it still saids “Failed to load script”, then try following the path yourself. The @mysql-async means that it will search for a folder named “mysql-async” in the resources folder. That folder should contain “/lib/MySQL.lua”. If that is missing then there is your issue.

Regarding the config, you must edit the server.cfg (that file you needed to make when you created the server) and add this line to the top of the file:

set mysql_connection_string “server=[ip];database=[db];userid=[uid];password=[pw]”

Replace the [ … ] parts accordingly:
[ip] = Ip of where the database server is located
[db] = The database you want to use.
[uid] = The username to login.
[pw] = Password for the username.

1 Like

Thank you very much for you help & Reply, i appreciate it

Thanks a lot buddy, it worked and now fully started, i appreciate the help and effort a lot

i have to re-post my last post…

soon as i start the server i receive the following errors:

No such command database=essentialmode.
No such command userid=Administrator.
No such command password=(obviously secret).

( Placed the string line all the way on top inside server.cfg like you said and this is (unfortunately) the result of it.)

1 Like

I tried applying the config thing, it indeed shows that error.

Because this forum seems to like to replace the quotation marks (the " symbol) with some weird ass one.
So replace those and you should be set.

You can see the wrong quotation marks is replaced by slanted quotes :confused: .

1 Like

o.m.g. on it right away

no errors any longer, u deserve a cookie for it ;’)

p.s. noticed you’re dutch, care talk in pm ?

2 Likes

Hit up on the FiveM discord if you want help with future problems, im usually around. You can DM me too if you want too.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.