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):
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.
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;
Viewing 15 lines of 99 lines. View entire code block.
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.
Tada! :D