Quantcast
Channel: Tutorials — LowEndTalk
Viewing all articles
Browse latest Browse all 368

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 368

Trending Articles