You are here

8 November 2013

This snippet shows you how to drop all tables from database in mysql. Unsing drop database will just delete the database and later you just recreate it with create database query.

Source code viewer
  1. /* This won't reset permissions. */
  2. drop database DATABASE_NAME;
  3. create database DATABASE_NAME;
Programming Language: MySQL