Suggest a way to delete all the tables and make MySQL database empty in JavaFX -


I have developed a project in JavaFX. It has a back-end mysql for my project I have created a database called 'project'. MySQL now has 8 tables in this database. I want to clear the database when a button is pressed, not all the tables, all tables Removes. Should I vacate each table and remove them or is there any other easy way to clean the database?

Easiest way:

  drop database project; Create a database project;   

Long way: Show the tab from the project;

and

  run again through the tables with the drop table project. & Lt; Tablename & gt;    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

Installing croogo for cakephp -

c# - Use custom conventions when persisting Rebus sagas in MongoDb -