Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 40417

Quick Trick: Drop All Tables in MySQL Database in One Step

$
0
0

Neat little trick I learned today:

mysqldump -u${user} -p${pass} -h ${host} --add-drop-table --no-data ${database} | grep ^DROP | mysql -u${user} -p${pass} -h ${host} ${database}

Viewing all articles
Browse latest Browse all 40417

Trending Articles