add tips : give right to use new db

This commit is contained in:
btatu 2017-08-01 16:10:53 +02:00
parent 6b00e130f2
commit 81b9dd579d

View file

@ -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 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 #### Table
Renommer un champ : Renommer un champ :