FYI: SQL Commands for clearing an old database

Permalink
I needed to install Concrete on a client's server. For some reason the first install didn't take, so I needed to delete and try again.

Their server won't let me use MySQL Workbench, so I'm stuck using phpMyAdmin (sigh). I don't have privileges to create databases, so I was stuck having to clear out the old tables so I could reinstall concrete to the same database.

If anyone else is ever in this situation, here is the query I needed for dropping all the tables (SQL statements ... not PHP):

DROP TABLE areagroupblocktypes;
DROP TABLE areagroups;
DROP TABLE areas;
DROP TABLE ataddress;
DROP TABLE atboolean;
DROP TABLE atbooleansettings;
DROP TABLE atdatetime;
DROP TABLE atdatetimesettings;
DROP TABLE atdefault;
DROP TABLE atfile;
DROP TABLE atnumber;
DROP TABLE atselectoptions;
DROP TABLE atselectoptionsselected;
DROP TABLE atselectsettings;
DROP TABLE attributekeycategories;


You can leave out btcontentfile if you haven't uploaded any files yet.

Sorry if you run into this problem on a linux server ... all these names are lowercase. My Linux server lets me use MySQL Administrator (now MySQL Workbench), which is WAY better and includes a "drop all" command.

elyon
 
Mnkras replied on at Permalink Reply
Mnkras
in php admin go to the table view, scroll all the way down click Check all then from the drop down menu click drop.

Tada! :D
fastcrash replied on at Permalink Reply
fastcrash
it's quite funny :)
i search with keyword 'piles', and end up here, thehehee.. Tada! :D