]> arthur.barton.de Git - netdata.git/commitdiff
fix incorrect "password" argument
authorpaulfantom <paulfantom@gmail.com>
Wed, 15 Jun 2016 09:38:24 +0000 (11:38 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 15 Jun 2016 12:14:32 +0000 (14:14 +0200)
add info about MySQLdb to README

python.d/README.md
python.d/mysql.chart.py

index c24a7d7f0e0ab7cb167459360acf6a156c077259..293603baacfaf5d1bb3395cee4f7073a1cbe8767 100644 (file)
@@ -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):
 
index 4c9c5675e33aafd79a0b16b84dfd384c0174e2a7..166001347665a85fc7b9eede7e65175278c2e010 100644 (file)
@@ -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'],