diff --git a/mysql_db b/mysql_db index 807603a83dd..eac18c4aba2 100644 --- a/mysql_db +++ b/mysql_db @@ -131,7 +131,7 @@ def load_mycnf(): return False try: config.readfp(open(mycnf)) - creds = dict(user=config.get('client', 'user'),passwd=config.get('client', 'pass')) + creds = dict(user=config.get('client', 'user'),passwd=config.get('client', 'password')) except (ConfigParser.NoOptionError, IOError): return False return creds diff --git a/mysql_user b/mysql_user index b9b833e1f64..9317bbdd7a1 100644 --- a/mysql_user +++ b/mysql_user @@ -230,7 +230,7 @@ def load_mycnf(): return False try: config.readfp(open(mycnf)) - creds = dict(user=config.get('client', 'user'),password=config.get('client', 'pass')) + creds = dict(user=config.get('client', 'user'),password=config.get('client', 'password')) except (ConfigParser.NoOptionError, IOError): return False return creds