MySQLDatabase
Class MySQLDatabase (Inherits from Database)

PropertyDescription
Port As IntegerSpecifies the port used by the MySQL database server. This defaults to 3306, which is the standard MySQL port.

Timeout As IntegerSpecifies the timeout (in seconds, the default is 15)


Method PrototypeDescription
Function GetAffectedRows() As IntegerReturns of the number of rows that were processed by the last SQLExecute command
Function GetInsertID() As IntegerReturns the last auto-generated key created by the database. This is useful after an INSERT statement to get the key of the row that was just created.
Sub LogPackets( location As FolderItem )Specifies that MySQL network packets should be logged to the specified file


Example:
Dim myDB As New MySQLDatabase

myDB.Host = "localhost"
myDB.UserName = "admin"
myDB.Password = "YoUrPaSsWoRd"

If Not myDB.Connect Then
    Print "Error connecting to database!"
End If