From cfd49b91da823f0710ae42aaef9544fd550c4602 Mon Sep 17 00:00:00 2001 From: pdiogoantunes Date: Tue, 20 Mar 2018 16:22:45 +0100 Subject: [PATCH] restauration d'une base --- HowtoMySQL/Troubleshooting.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HowtoMySQL/Troubleshooting.md b/HowtoMySQL/Troubleshooting.md index b557a3ea..489fe5a8 100644 --- a/HowtoMySQL/Troubleshooting.md +++ b/HowtoMySQL/Troubleshooting.md @@ -584,6 +584,12 @@ WHERE table_schema = "" ORDER BY (data_length + index_length) DESC; ~~~ +## Restauration d'une base depuis un dump complet + +~~~ +$ grep -n '^USE `' dump.sql +~~~ + ## Restauration d'une table depuis un dump complet Pour extraire une table depuis un dump complet `dump.sql`, on détermine la liste des tables via `grep -n "Table structure"`, par exemple :