#!/bin/sh db="/usr/local/bin/mysql -u root" $db > /dev/null 2> /dev/null << ALL_DONE use sso; drop table Registry; ALL_DONE $db << ALL_DONE USE sso; create table Registry ( id integer not null primary key, class varchar(255), index (id), unique (id) ); show columns from Registry; show index from Registry; insert into Registry set id=-1; insert into Registry set id=-2; ALL_DONE