PDA

View Full Version : How do i drop a table in MySQL


man with no name
04-11-2001, 10:37 PM
I need to remove my SQL table to free up space. How do i do this and with what tool? Please advise. Thanks

jbroder
04-11-2001, 11:03 PM
drop table tablename;

on the command line, after you have logged in to mysql.
[This message has been edited by jbroder (edited 04-11-01@10:03 pm)]

man with no name
04-13-2001, 01:19 AM
I need to delete all contents of mysql database so I can get below ,my allocated disk space. I dropped my table but it still says I have 25MB or taken space. How can I remove all this?
------------------

Terra
04-13-2001, 01:50 AM
*****WARNING******
This is not recommended for the faint at heart - it's the database equivalent of:[nbsp][nbsp]format c:
*****WARNING******

Try this to nuke all tables:
mysql>drop database [database]
mysql>create database [database]

replace: [database] with the name of the database your willing to blast all tables within into oblivion...

--
Terra
--Always something endearing about those big red shiny buttons shielded by plastic covers--
FutureQuest