From 0f4bded9d553937feed6e92eec565626b117bdc6 Mon Sep 17 00:00:00 2001 From: Jeffrey Chu Date: Wed, 3 Apr 2013 09:58:58 -0700 Subject: [PATCH] mysql_db: use --password= instead of -p in dump/import --- mysql_db | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql_db b/mysql_db index df180b34b73..fb73e057632 100644 --- a/mysql_db +++ b/mysql_db @@ -109,13 +109,13 @@ def db_delete(cursor, db): return True def db_dump(host, user, password, db_name, target): - res = os.system("/usr/bin/mysqldump -q -h "+host+"-u "+user+ " -p"+password+" " + res = os.system("/usr/bin/mysqldump -q -h "+host+"-u "+user+ " --password="+password+" " +db_name+" > " +target) return (res == 0) def db_import(host, user, password, db_name, target): - res = os.system("/usr/bin/mysql -h "+host+" -u "+user+ " -p"+password+" " + res = os.system("/usr/bin/mysql -h "+host+" -u "+user+" --password="+password+" " +db_name+" < " +target) return (res == 0)