Advertisement
Guest User

Untitled

a guest
Feb 24th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 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 = "94.23.60.117" -- This is the IP address of the MySQL host. Make sure the IP address is correct and in quotation marks (" ")
  10. RP_MySQLConfig.Username = "GMod_1299" -- 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 = "j6217d3d" -- 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 = "GMod_1299" -- 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.  
  18.  
  19. --[[
  20. MANUAL!
  21. HOW TO USE MySQL FOR DARKRP!
  22. Download andyvincent's/Drakehawke's/KingofBeast's gm_MySQL OO module and read the guide here:
  23. http://facepunch.com/showthread.php?t=1357773
  24.  
  25.  
  26. WHAT TO DO IF YOU CAN'T GET IT TO WORK!
  27. - There are always errors on the server, try if you can see those (with HLDS/server logs)
  28. - the same errors are also in the logs if you can't find the errors on the server.
  29. the logs are at garrysmod/data/DarkRP_logs/ on the SERVER!
  30. The MySQL lines in the log always precede with "MySQL Error:" (without the quotation marks)
  31. - make sure the settings in this file (mysql.lua) are correct
  32. - make sure the MySQL server is accessible from the servers IP
  33. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement