I need to delete all the tables from my database name "marketing" for magento. I am a beginner so I don’t know much.
please help me , as I can not drop my database.
Thanks,
Divyang
I need to delete all the tables from my database name "marketing" for magento. I am a beginner so I don’t know much.
please help me , as I can not drop my database.
Thanks,
Divyang
You can use below single line command directly from linux server but first test on any testing environment before executing it for safe side.
mysql -uroot -p<pass> -Nse 'show tables' margeting | while read table; do mysql -uroot -p<pass> marketing -e "drop table $table"; done
If you want to do it manually then use below steps-
First get all tables-
show tables from margeting;
Now prepare drop command you can do it in excel etc like-
use marketing;
drop table mytable1;
drop table mytable2;
Now you can execute these statements from anywhere like from any query browser etc-