Today's MySQL Suckage

Leo Lapworth leo at cuckoo.org
Fri Jan 23 10:04:30 GMT 2009


2009/1/23 Andy Wardley <abw at wardley.org>

> 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 (
>       ..etc...
>   );
>
> I feed it in thusly:
>
>   $ mysql < my_db_schema.sql


Does:

$ cat my_db_schema.sql | mysql

Work any better?

Leo


More information about the london.pm mailing list