From 81b9dd579d5c3f020541c238af1fab86b6fa7f92 Mon Sep 17 00:00:00 2001 From: btatu Date: Tue, 1 Aug 2017 16:10:53 +0200 Subject: [PATCH] add tips : give right to use new db --- HowtoMySQL.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HowtoMySQL.md b/HowtoMySQL.md index 73c1abc3..cb709a67 100644 --- a/HowtoMySQL.md +++ b/HowtoMySQL.md @@ -350,6 +350,8 @@ BASE_FROM=db1; BASE_TO=db2 for table in $(mysql -e "use $BASE_FROM; show tables\G;" | grep -v '^\*\*\*' | cut -d':' -f2 | sed 's/^ //'); do echo $table; mysql -e "RENAME TABLE ${BASE_FROM}.${table} TO ${BASE_TO}.${table};"; done ~~~ +- Appliquer les bons droits à la bdd + #### Table Renommer un champ :