This commit is contained in:
Ilgazil 2016-10-27 16:12:57 +00:00 committed by GitHub
commit 12051fa8d1

View file

@ -168,9 +168,9 @@ class Mysql implements \PHPCI\Plugin
':decomp_cmd' => $decomp_cmd,
':host' => escapeshellarg($this->host),
':user' => escapeshellarg($this->user),
':pass' => escapeshellarg($this->pass),
':pass' => (!$this->pass)? '': '-p' . escapeshellarg($this->pass),
':database' => ($database === null)? '': escapeshellarg($database),
);
return strtr('cat :import_file :decomp_cmd | mysql -h:host -u:user -p:pass :database', $args);
return strtr('cat :import_file :decomp_cmd | mysql -h:host -u:user :pass :database', $args);
}
}