SQL options applicable to MySQL and MariaDB in MBS Plugin
Let us list options for connecting to MySQL or MariaDB via MBS FileMaker Plugin or MBS Xojo SQL Plugin:
MYSQL.LIBS
Forces plugin Library to use specified MySQL client library.
- Windows -
"libmySQL.dll;libmariadb.dll"
- Linux -
"libmysqlclient.so:libmysqlclient.so.15:libmysqlclient.so.16:libmysqlclient.so.18:libmariadb.so"
- macOS -
"libmysqlclient.dylib:libmariadb.dylib"
Allows to specify various options that will be passed on to mysql_real_connect()
. See MySQL documentation for more information how these options affect underlying connection behaviour.
"true"
to specify a flag, "false"
(or not specified) to omit
CLIENT_MULTI_STATEMENTS
, CLIENT_MULTI_RESULTS
and CLIENT_REMEMBER_OPTIONS are turned on
CharacterSet
Allows to set the client connection character set.
Utf8CharacterSetName
Allows to define the client connection character set used by Unicode plugin version. By default "utf8" is used and now it's a synonym for "utf8mb3". But modern MySQL versions support also "utf8mb4" and it may become the default soon.`
"utf8"
UseMySQLKillQueryConnection
Instructs plugin to create an additional connection that is used for 'KILL QUERY ..'
command when SACommand::Cancel method executed.
"true"
, "false"
"false"
Allows to specify timeout values that are used with mysql_options
. See MySQL documentation for more information how these options affect underlying connection behaviour.
MYSQL_OPT_RECONNECT
Allows to specify reconnect option that will be used with mysql_options
. See MySQL documentation for more information on how this option affects underlying connection behaviour.
"true"
to specify a flag, "false"
to omit
MYSQL_OPT_SSL_MODE
Allows to specify MySQL SSL mode parameters. See MySQL documentation for more information about these options.
"SSL_MODE_DISABLED"
, "SSL_MODE_PREFERRED"
, "SSL_MODE_REQUIRED"
, "SSL_MODE_VERIFY_CA"
, "SSL_MODE_VERIFY_IDENTITY"
MYSQL_OPT_TLS_VERSION
Allows to specify MySQL SSL protocols the client permits for encrypted connections. See MySQL documentation for more information about these options.
Allows to specify MySQL SSL parameters that will be used with mysql_ssl_set
. MySQL API method called only when at least one mentioned or MYSQL_OPT_SSL_MODE
parameter specified. See MySQL documentation for more information about these options.
HandleResult
Determines whether the result set will be stored in a temporary table or a local buffer on a client (it allows to open several result sets simultaneously in one transaction), or it will be read row by row directly from the server (somewhat faster and uses much less memory). For more information see MySQL documentation on mysql_store_result()
and mysql_use_result()
functions.
"use"
to force plugin to callmysql_use_result()
function"store"
to force plugin to callmysql_store_result()
function
"use"
UseStatement
Determines whether MySQL statement API should be used (if supported by MySQL client library). Be aware that statement API cannot be used with multi-statement, multi-result queries and has some additional restrictions.
"true"
, "false"
"false"
PreFetchRows
Forces plugin library to fetch rows in bulk, rather than retrieving records one by one. Only has an effect if MySQL statement API is used (see UseStatement
option).
"1"
Forces plugin to store MySQL result set that allows scrolling through the data rows.
"True"
, "1"
"False"
IgnoreFieldBinaryFlag
Forces plugin to ignore MySQL result set field binary flag - any STRING/BLOB field is interpreted as a text data when this option is used.
"True"
, "1"
"False"