Return value:

Parameters

options:
table containing additional options, currently:
- noheaders - does not include column names in result

Return value:

string containing the formatted resultset table

loginRequest (socket, params, username, password, salt)

Attempts to Login to the remote mysql server

Parameters

socket:
already connected to the remote server

params:
table with additional options to the loginrequest
current supported fields are charset and authversion
authversion is either "pre41" or "post41" (default is post41)
currently only post41 authentication is supported

username:
string containing the username of the user that is authenticating

password:
string containing the users password or nil if empty

salt:
string containing the servers salt as received from receiveGreeting