Guest User

Untitled

a guest
Aug 29th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. /// Register providers first
  2. try services.register(FluentMySQLProvider())
  3.  
  4. // MySQL database
  5. let mySQLConfig = MySQLDatabaseConfig(hostname: "localhost",
  6. port: 3306,
  7. username: "root",
  8. password: "thisismyrootpassword",
  9. database: "lol_database",
  10. capabilities: .default,
  11. characterSet: MySQLCharacterSet.utf8_general_ci,
  12. transport: MySQLTransportConfig.cleartext)
  13.  
  14. services.register(mySQLConfig)
Add Comment
Please, Sign In to add comment