1 2 |
for x in db1 db2 db3;do echo $x && mysqldump -uroot -p"password" --no-data $x > /tmp/schema_$x.sql; done for x in db1 db2 db3;do echo $x && mysql -uroot -p"password" $x < /tmp/schema_$x.sql; done |
1 2 |
for x in db1 db2 db3;do echo $x && mysqldump -uroot -p"password" --no-data $x > /tmp/schema_$x.sql; done for x in db1 db2 db3;do echo $x && mysql -uroot -p"password" $x < /tmp/schema_$x.sql; done |