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 -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -