Advertisement
Guest User

Untitled

a guest
May 3rd, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. /*
  2.     Sunrise - A new era
  3.     Do not edit or change unless with premission of the sunrise dev's
  4. */
  5.  
  6. /*
  7.     Config, Edit this
  8. */
  9. local host = "SQL09.FREEMYSQL.NET"
  10. local username = "smoot178"
  11. local password = "booyah"
  12. local database = "sunrise"
  13. local port = 3306
  14. local connections = 6
  15. local threads = 5
  16. /*
  17.     Dont edit this
  18. */
  19. require( "tmysql" )
  20.  
  21. /*
  22.     Initialize the connection to mysql
  23. */
  24. tmysql.initialize(host, username, password, database, port, connections, threads)
  25.  
  26. function Query(...)
  27.     DebugPrint("Query executing.")
  28.     return tmysql.query(...)
  29. end
  30.  
  31. function Esc(esc)
  32.     return tmysql.escape(esc)
  33. end
  34.  
  35. function QueryErrors(res,status,error)
  36.     DebugPrint(error)
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement