Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. RP_MySQLConfig = {} -- Ignore this line
  2. --[[
  3. Welcome to MySQL for DarkRP!
  4. In this file you can find a manual for MySQL configuration and the MySQL config settings.
  5. ]]
  6.  
  7.  
  8. RP_MySQLConfig.EnableMySQL = true -- Set to true if you want to use an external MySQL database, false if you want to use the built in SQLite database (garrysmod/sv.db) of Garry's mod.
  9. RP_MySQLConfig.Host = "web-panel01.gmchosting.com" -- This is the IP address of the MySQL host. Make sure the IP address is correct and in quotation marks (" ")
  10. RP_MySQLConfig.Username = "" -- This is the username to log in on the MySQL server.
  11. -- contact the owner of the server about the username and password. Make sure it's in quotation marks! (" ")
  12. RP_MySQLConfig.Password = "" -- This is the Password to log in on the MySQL server,
  13. -- Everyone who has access to FTP on the server can read this password.
  14. -- Make sure you know who to trust. Make sure it's in quotation marks (" ")
  15. RP_MySQLConfig.Database_name = "" -- This is the name of the Database on the MySQL server. Contact the MySQL server host to find out what this is
  16. RP_MySQLConfig.Database_port = 3306 -- This is the port of the MySQL server. Again, contact the MySQL server host if you don't know this.
  17. RP_MySQLConfig.Preferred_module = "mysqloo" -- Preferred module, case sensitive, must be either "mysqloo" or "tmysql4". Only applies when both are installed.
  18. RP_MySQLConfig.MultiStatements = false -- Only available in tmysql4: allow multiple SQL statements per query. Has no effect if no scripts use it.
  19.  
  20.  
  21. --[[
  22. MANUAL!
  23. HOW TO USE MySQL FOR DARKRP!
  24. Download MySQLOO and read the guide here:
  25. https://facepunch.com/showthread.php?t=1515853
  26.  
  27.  
  28. WHAT TO DO IF YOU CAN'T GET IT TO WORK!
  29. - There are always errors on the server, try if you can see those (with HLDS/server logs)
  30. - the same errors are also in the logs if you can't find the errors on the server.
  31. the logs are at garrysmod/data/DarkRP_logs/ on the SERVER!
  32. The MySQL lines in the log always precede with "MySQL Error:" (without the quotation marks)
  33. - make sure the settings in this file (mysql.lua) are correct
  34. - make sure the MySQL server is accessible from the servers IP
  35. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement