MySQLConfig.File

Selects an optional MariaDB/MySQL client configuration file (my.cnf) for the connection.

This parameter applies to ommysql: MariaDB/MySQL Database Output Module.

Name:

mysqlconfig.file

Scope:

input

Type:

word

Default:

input=none

Required?:

no

Introduced:

at least 7.x, possibly earlier

Description

Permits the selection of an optional MariaDB/MySQL Client Library configuration file (my.cnf) for extended configuration functionality. The use of this configuration parameter is necessary only if you have a non-standard environment or if fine-grained control over the database connection is desired.

Input usage

module(load="ommysql")
action(type="ommysql"
       server="mysqlserver.example.com"
       mysqlConfig.file="/etc/mysql/my.cnf"
       db="syslog_db" uid="user" pwd="pwd")

Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

  • $OmMySQLConfigFile — maps to MySQLConfig.File (status: legacy)

See also

See also ommysql: MariaDB/MySQL Database Output Module.


Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.