Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:mysql:my05 [2022/11/08 14:35] – admin | elearning:workbooks:mysql:my05 [2022/11/08 15:17] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 99: | Ligne 99: | ||
# mysql –u –root –p –default_character_set=latin1 dbname < backup.sql [Entrée] | # mysql –u –root –p –default_character_set=latin1 dbname < backup.sql [Entrée] | ||
| | ||
- | ====Mariabacklup==== | + | ====Mariabackup==== |
< | < | ||
Ligne 121: | Ligne 121: | ||
< | < | ||
[root@centos7 ~]# wget http:// | [root@centos7 ~]# wget http:// | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [root@centos7 ~]# tar xvf sakila-db.tar.gz | ||
</ | </ | ||
Ligne 185: | Ligne 189: | ||
MariaDB [(none)]> | MariaDB [(none)]> | ||
Bye | Bye | ||
+ | |||
+ | [root@centos7 ~]# wget http:// | ||
+ | |||
[root@centos7 ~]# gunzip world-db.tar.gz | [root@centos7 ~]# gunzip world-db.tar.gz | ||
+ | |||
[root@centos7 ~]# ls -l | [root@centos7 ~]# ls -l | ||
total 44500 | total 44500 | ||
Ligne 197: | Ligne 205: | ||
-rw-r--r--. 1 root root | -rw-r--r--. 1 root root | ||
-rw-r--r--. 1 root root | -rw-r--r--. 1 root root | ||
+ | |||
[root@centos7 ~]# tar xvf world-db.tar | [root@centos7 ~]# tar xvf world-db.tar | ||
world-db/ | world-db/ | ||
world-db/ | world-db/ | ||
+ | |||
[root@centos7 ~]# mysql -uroot -p world < world-db/ | [root@centos7 ~]# mysql -uroot -p world < world-db/ | ||
Enter password: | Enter password: | ||
Ligne 205: | Ligne 215: | ||
< | < | ||
- | mariabackup --backup --target-dir=/ | + | [root@centos7 ~]# mariabackup --backup --target-dir=/ |
</ | </ | ||