I have any file with database name each line (database.txt):
database1
database2
.....
How can I use this file to :
$create database
$mysqldump
$drop database
create database from database.txt
$mysqldump database > database from database.txt
$drop database , from database.txt
Thanks
Copyright Notice:Content Author:「Pardis」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/25338896/mysqldump-drop-database-create-database-from-database-list-file