22
0
Fork 0

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
1 changed files with 2 additions and 0 deletions

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
~~~
- Appliquer les bons droits à la bdd
#### Table
Renommer un champ :