Today's MySQL Suckage

Andy Wardley abw at
Fri Jan 23 09:52:27 GMT 2009

I have a file which defines a MySQL database schema.  It looks a bit
like this:

    This table defines users of the
    system who are Buffy fans.

    CREATE TABLE buffy_fans (

I feed it in thusly:

    $ mysql < my_db_schema.sql

And it says:

    usage: who [-abdHlmpqrstTu] [am I] [file]

It's interpreting the line "system who are Buffy fans." as a shell command,
even though it's inside a comment.

Yes, I know.  It serves me right for using a database made of cheese.


More information about the mailing list