Mysql command line

does anyone know how to delete databases/tables in mysql command line?

if you’re referring to the mysql client program,

drop table table_name;
drop database db_name;

so does that actually DELETE it?

so then,
what does drop table if exists do?

don’t worry about that last one!

It seems a ligit question to me especially since Ruby interfaces so
easily with mysql.

Hi –

On Sun, 12 Mar 2006, [email protected] wrote:

so then,
what does drop table if exists do?

It drops the table if the table exists, without raising an error if it

I’m not sure how this topic ended up on this mailing list, which is
about Ruby. Can you try to find an SQL or MySQL list to discuss this


David A. Black ([email protected])
Ruby Power and Light, LLC (

“Ruby for Rails” chapters now available
from Manning Early Access Program! Ruby for Rails