Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Register providers first
- try services.register(FluentMySQLProvider())
- // MySQL database
- let mySQLConfig = MySQLDatabaseConfig(hostname: "localhost",
- port: 3306,
- username: "root",
- password: "thisismyrootpassword",
- database: "lol_database",
- capabilities: .default,
- characterSet: MySQLCharacterSet.utf8_general_ci,
- transport: MySQLTransportConfig.cleartext)
- services.register(mySQLConfig)
Add Comment
Please, Sign In to add comment