public function mysqlExport($db, $file = 'etc/mysql.sql', $user = 'root', $pass = null, $host = null, $port = null, $opts = ['format' => 'table', 'fields' => ''])
    {
        $result = $this->taskMysqlExport()
            ->db($db)
            ->file($file)
            ->user($user)
            ->pass($pass)
            ->host($host)
            ->port($port)
            ->hide($pass)
            ->run();

        if (!$result->wasSuccessful()) {
            $this->exitError("Failed to run command");
        }

        return true;
    }