asgrim/godeploy — Issue #125: If you have a database on another host
Author: Keloran
Created: 2011-10-31 15:41:36+00:00
State: open

If you have your database on another machine than the one your hosting on you can install

here is the line you need to change
$this->Exec("mysql -u{$this->_username} -p{$this->_password} --database={$this->_database} < \"{$script}\"");

and this is what you want
$this->Exec("mysql -u{$this->_username} -p{$this->_password} -h{$this->_hostname} -D{$this->_database} < \"{$script}\"");

that fixes the problem of not having it on the same host, obviouslly you need to set the default option to "localhost" for hostname though