Table of Contents
Check: MysqlConnect
To get this help: amcli --explain=MysqlConnect.
To add a section in your ini:
- Execute:
amcli --nocolor --explain=MysqlConnect >> example.ini. - edit the
example.iniin a text editor and update the needed values.
Syntax of an ini section
; -----------------------------------------------------------------------------
;
; Plugin Mysqlconnect
; Verify a database connection with mysqli real connect function.
;
[<Your check name>]
description="A short description what will be tested"
function="MysqlConnect"
; key 'server' {string} 🔸(required)
; Hostname/ ip of mysql server
; example: localhost
; default: (not provided)
params[server]=<Your value here>
; key 'port' {int} 🔹(optional)
; port of mysql server
; example: 3306
; default: 3306
params[port]=<Your value here>
; key 'user' {string} 🔹(optional)
; Database user to connect with
; example: dbuser
; default: (not provided)
params[user]=<Your value here>
; key 'password' {string} 🔹(optional)
; Password of the database user to authenticate
; example: mySecretDatabasePassword
; default: (not provided)
params[password]=<Your value here>
; key 'db' {string} 🔹(optional)
; Database name to connect
; example: wordpress
; default: (not provided)
params[db]=<Your value here>
; key 'timeout' {float} 🔹(optional)
; Timeout in sec
; example: 3
; default: 5
params[timeout]=<Your value here>