I'm using a Dragino LG01 gateway which is running a Linux system. I want to connect the gateway to a MySQL database (using XAMPP). There is a tutorial for doing this but I am still having problems.
When I try to test the script by running the
command I get the following error
lua: linkmysql.lua:7: LuaSQL: error connecting to database. MySQL: Can't connect to local MySQL server through socket '/tmp' (146)