Startup error with MySQL


#1

This is the only error I get when I start up my server cant really tell whats wrong.

Loaded MySqlConnector, Version=0.38.0.0, Culture=neutral, PublicKeyToken=d33d3e53aa5f8c92 into ScriptDomain_1915926785
hitch warning: frame time of 194 milliseconds
Loaded System.Threading.Tasks.Extensions, Version=4.1.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 into ScriptDomain_1915926785
Loaded System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 into ScriptDomain_1915926785
[ERROR] [MySQL] An error happens on MySQL for query "SELECT * FROM addon_account {=}": Access denied for user 'myusername'@'localhost' (using password: YES)
Error running system event handling function for resource esx_addonaccount: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:12: attempt to get length of a nil value (local 'result')
stack traceback:
        server/main.lua:12: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scripting/lua/scheduler.lua:138>
[ERROR] [MySQL] An error happens on MySQL for query "SELECT * FROM items {=}": Access denied for user 'myusername'@'localhost' (using password: YES)
[ERROR] [MySQL] An error happens on MySQL for query "SELECT * FROM shops {=}": Access denied for user 'myusername'@'localhost' (using password: YES)
Error running system event handling function for resource esx_shops: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:28: attempt to get length of a nil value (local 'itemResult')
stack traceback:
        server/main.lua:28: in function 'LoadShop'
        server/main.lua:10: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scripting/lua/scheduler.lua:138>
hitch warning: frame time of 174 milliseconds
[ERROR] [MySQL] An error happens on MySQL for query "SELECT * FROM items {=}": Access denied for user 'myusername'@'localhost' (using password: YES)

#2

This is literally why. The myusername username and password that you used in your connection string do not have access to the database. Probably a mistyped password