Skip to main content
Version: 1.x

MySQL

Output plugin : Mysql

Description

Write Rows to MySQL.

Options

nametyperequireddefault value
passwordstringyes-
save_modestringnoappend
tablestringyes-
urlstringyes-
userstringyes-
password [string]

Password.

save_mode [string]

Save mode, supports overwrite, append, ignore and error. The detail of save_mode see save-modes.

table [string]

Table name.

url [string]

The url of JDBC. For example: jdbc:mysql://localhose:3306/info

user [string]

Username.

Example

mysql {
url = "jdbc:mysql://localhost:3306/info"
table = "access"
user = "username"
password = "password"
save_mode = "append"
}