MySQL table patcher

0. Contents

This is the documentation of sqlupdate-1.4.0.
   1. Purpose
   2. Copying
   3. Requirements
   4. Downloading

1. Purpose

Reads a table creation file (tables.sql) and compares it to what mysqldump gives, and creates SQL clauses to update the database to match the creation file.
sqlupdate v1.3.1.1 - Copyright (C) Joel Yliluoma (http://iki.fi/bisqwit/)

Usage:
    sqlupdate [options] >changes.sql
       (Creates an update script)

Options:
    -t tablefile          Describes the file containing
                          the new sql layout. Default: tables.sql
    -d database           Default: winnie3
    -h host               Default: localhost
    -u user               Default: root
    -p pass
    -r                    Reverse operation. (new->old)

Example:
  ./sqlupdate -t etimgr.sql -d etimgr | mysql -uroot

This program does not update a database. It only
produces update scripts (which show the differences).

Since version 1.3.0, supports also the InnoDB FOREIGN KEY constraints.

Since version 1.4.0, supports TINYINT, DATE, TIME and ENUM types.
Thanks to Leigh Purdie for this change!
CHANGE ... AFTER/FIRST is not yet supported.

2. Copying

sqlupdate has been written by Joel Yliluoma, a.k.a. Bisqwit,
and is distributed under the terms of the General Public License (GPL).

3. Requirements

GNU make is probably required.
mysqldump is also required. This program handles only MySQL tables indeed.

4. Downloading

The official home page of sqlupdate is at http://iki.fi/bisqwit/source/sqlupdate.html.
Check there for new versions.

Generated from progdesc.php (last updated: Sun, 12 Jun 2005 06:14:21 +0300)
with docmaker.php (last updated: Sun, 12 Jun 2005 06:08:02 +0300)
at Sun, 12 Jun 2005 06:18:56 +0300