-
Notifications
You must be signed in to change notification settings - Fork 1
MySQL Module Connection
DizzasTeR edited this page Nov 2, 2020
·
1 revision
Establish a MySQL connection with a MySQLAccount instance
MySQLConnection MySQL.createConnection(MySQLAccount account)
- MySQLAccount account - The account to use
MySQLConnection - Returns an instance of MySQLConnection if successful otherwise an exception is thrown if the account is invalid
local account = MySQL.createAccount("127.0.0.1", "myuser", "mypass", "mydatabase")
local connection = MySQL.createConnection(account)