Example #1
0
 protected function buildCmd($options, $migration)
 {
     $full_name = $migration->fullname;
     $rez = 'mysql -B ' . Utilities::buildCmdArgs($options, array('host' => '--host=', 'user' => '--user='******'port' => '--port=', 'password' => '--password='******'unix_socket' => '--socket=', 'database' => '--database='));
     if (isset($options['extra'])) {
         $rez .= ' ' . $options['extra'];
     }
     return $rez . ' < ' . escapeshellarg($full_name);
 }