Forum: Ruby mysql command line

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
on 2006-03-12 13:21
(Received via mailing list)
does anyone know how to delete databases/tables in mysql command line?
Lou V. (Guest)
on 2006-03-12 13:33
(Received via mailing list)
if you're referring to the mysql client program,

   drop table table_name;
   drop database db_name;
on 2006-03-12 15:04
(Received via mailing list)
so does that actually DELETE it?
on 2006-03-12 15:05
(Received via mailing list)
don't worry about that last one!
on 2006-03-12 15:29
(Received via mailing list)
so then,
what does drop table if exists do?
unknown (Guest)
on 2006-03-12 15:32
(Received via mailing list)
Hi --

On Sun, 12 Mar 2006, removed_email_address@domain.invalid 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 (removed_email_address@domain.invalid)
Ruby Power and Light, LLC (

"Ruby for Rails" chapters now available
from Manning Early Access Program!
Tom R. (Guest)
on 2006-03-12 23:03
(Received via mailing list)
It seems a ligit question to me especially since Ruby interfaces so
easily with mysql.
This topic is locked and can not be replied to.