Database service.
| Type | Name and description |
|---|---|
Map<String, Object> |
debugLogging(String key)Returns the debug logging for the specified key. |
String |
getAdminPassword()The administrator password for the database server. |
Map<String, List<Integer>> |
getBindingAddresses()Returns the binding addresses. |
List<Database> |
getDatabases()Returns the databases of the server. |
List<User> |
getUsers()Returns the users of the server. |
Returns the debug logging for the specified key.
{["general": 1, "error": 1, "slow-queries": 1]}{["error": "/var/log/mysql/error.log", "slow-queries": "/var/log/mysql/mysql-slow.log"]}
database {
debug "general", level: 1
debug "error", level: 1, file: "/var/log/mysql/error.log"
debug "slow-queries", level: 1, file: "/var/log/mysql/mysql-slow.log"
}
null.The administrator password for the database server.
database {
admin password: "mysqladminpassword"
}
null.Returns the binding addresses.
{["0.0.0.0": [3306], "127.0.0.1": [3306], "192.168.0.2": [3306, 3307]]}
database {
bind "0.0.0.0", port: 3306
bind "127.0.0.1", port: 3306
bind "192.168.0.2", ports: [3306, 3307]
bind all, port: 3306
bind local, port: 3306
}
Returns the databases of the server.
database {
database "postfixdb", charset: "latin1", collate: "latin1_swedish_ci", {
script importing: "postfixtables.sql"
}
}