diff options
author | paulfantom <paulfantom@gmail.com> | 2016-06-15 11:38:24 +0200 |
---|---|---|
committer | paulfantom <paulfantom@gmail.com> | 2016-06-15 14:14:32 +0200 |
commit | 4f6dc22218a2f1fd1b7399348c8c336cbe8ebc41 (patch) | |
tree | bcf0950ec1c18b11e9607b02a137c839499a1c94 /python.d | |
parent | 3ebfed1cd06860b46c1e27f77c7888e178251383 (diff) |
fix incorrect "password" argument
add info about MySQLdb to README
Diffstat (limited to 'python.d')
-rw-r--r-- | python.d/README.md | 2 | ||||
-rw-r--r-- | python.d/mysql.chart.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python.d/README.md b/python.d/README.md index c24a7d7f0e..293603baac 100644 --- a/python.d/README.md +++ b/python.d/README.md @@ -9,7 +9,7 @@ The following python.d plugins are supported: # mysql The plugin will monitor one or more mysql servers -Plugins needs installed pymysql in `python_modules` directory or system-wide. +Plugins needs installed MySQLdb or pymysql in `python_modules` directory or system-wide. It will produce the following charts (if data is available): diff --git a/python.d/mysql.chart.py b/python.d/mysql.chart.py index 4c9c5675e3..1660013476 100644 --- a/python.d/mysql.chart.py +++ b/python.d/mysql.chart.py @@ -372,7 +372,7 @@ def check(): for srv in config: try: cnx = MySQLdb.connect(user=srv['user'], - password=srv['password'], + passwd=srv['password'], read_default_file=srv['my.cnf'], unix_socket=srv['socket'], host=srv['host'], |