code: func (p MySQLPlugin) Restore(endpoint plugin.ShieldEndpoint) error {
  	mysql, err := mysqlConnectionInfo(endpoint)
  	if err != nil {
  		return err
  	}
  	cmd := fmt.Sprintf("%s/mysql %s", mysql.Bin, connectionString(mysql, false))
  	dbname, err := endpoint.StringValueDefault("mysql_database", "")
  	if err != nil {
  		return err
  	} else if dbname == "" {
  		fmt.Fprintf(os.Stderr, "Restore Full Database \n")
  		return mysqlrestorefull(mysql, cmd)
  	} else {
  		fmt.Fprintf(os.Stderr, "Restore Database %s \n", dbname)
  		plugin.DEBUG("Exec: %s", cmd)
  		return plugin.Exec(cmd, plugin.STDIN)
  	}
  }
docs: // Restore mysql database