Restaurando catálogo MySQL [MySQL catalog restore] 1

Para restaurar o catálogo do Bacula (MySQL), de um arquivo de “dump” (*.sql):

To restore MySQL Bacula Catalog, from a dump file (*.sql):

mysql (comando para entrar na console do MySQL [command to enter MySQL console])

create database bacula (se ainda não criado [if still not created])

use bacula (seleciona a database do Bacula [select bacula da tabase])

. bacula.sql (faz o restore [does the restore])

Ainda, podemos fazer desta outra maneira:
We also can do that another way:

mysql bacula < bacula.sql

Você pode também querer utilizar “nohup” e em “background…
Also, you should want to use nohup and run in background…

nohup mysql bacula < bacula.sql &

Disponível em: pt-brPortuguês

Deixe uma resposta