Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (6.1k points)

I am using pylons and sqlalchemy. I update the schema files and delete and recreate the database on a daily basis so that I can make a new schema.

I do it everytime by opening the MySql Query Browser and login and delete the database/schema.

Please tell me how can I delete MySQL db/schema thorough linux shell commands in Ubuntu Linux?

1 Answer

0 votes
by (11.7k points)

The following command has worked for me well. 

mysqladmin -h[hostname/localhost] -u[username] -p[password] drop [database]

If you want to get more insights into SQL, checkout this SQL Course from Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Dec 6, 2020 in SQL by Appu (6.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...