Advertisement
Guest User

Untitled

a guest
Jan 11th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. --[[
  2.  
  3. __ ___ _____ ____ __
  4. / |/ /_ __/ ___// __ \ / /
  5. / /|_/ / / / /\__ \/ / / / / /
  6. / / / / /_/ /___/ / /_/ / / /___
  7. /_/ /_/\__, //____/\___\_\/_____/
  8. /____/
  9.  
  10. GmodAdminSuite supports using remote MySQL databases to store its data.
  11. Normally, GmodAdminSuite will use the server's local (SQLite) database. However, some server owners
  12. like to use MySQL as it is a good method of backing up data and also allows for external systems to
  13. interact with & use server data.
  14.  
  15. ]]
  16.  
  17. -- true/false: whether MySQL is enabled or disabled
  18. GAS.Config.MySQL.Enabled = false
  19.  
  20. -- The IP address or domain of the MySQL server you would like to use
  21. -- This CANNOT be "localhost", please use 127.0.0.1 instead
  22. GAS.Config.MySQL.Host = "127.0.0.1"
  23.  
  24. -- The port the MySQL server is running on (default: 3306)
  25. GAS.Config.MySQL.Port = 3306
  26.  
  27. -- The username of your MySQL database's user
  28. GAS.Config.MySQL.Username = "username"
  29.  
  30. -- The password for your MySQL database's user
  31. -- This file is never sent to players, but anyone with file access to your server can read this
  32. GAS.Config.MySQL.Password = "password"
  33.  
  34. -- The name of the MySQL database
  35. GAS.Config.MySQL.Database = "database"
  36.  
  37. -- Give your server a friendly nickname, this allows you to identify it easily
  38. -- on external systems and panels.
  39. GAS.Config.MySQL.ServerNickname = "Server"
  40.  
  41. -- What should be prefixed to server-specific tables?
  42. -- If you are connecting multiple servers to the same database, you'll want to change this
  43. -- for each server you're connecting, as otherwise they will all be seeing the same data!
  44. GAS.Config.MySQL.ServerTablePrefix = "srv1_"
  45.  
  46. -- Do not delete the following line; your config will break.
  47. return true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement