Skip to content
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.

Commit

Permalink
load sql dump to remote hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
diversen committed Feb 27, 2015
1 parent 1885db9 commit 82100ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coslib/shell/db.inc
Expand Up @@ -140,7 +140,7 @@ function load_db_file($options){
$db = db_admin::getDbInfo();
$command =
"mysql --default-character-set=utf8 -u" . config::$vars['coscms_main']['username'] .
" -p" . config::$vars['coscms_main']['password'] . " $db[dbname] < $file";
" -p" . config::$vars['coscms_main']['password'] . " -h$db[host] $db[dbname] < $file";
return $ret = cos_exec($command);
}

Expand Down

0 comments on commit 82100ff

Please sign in to comment.