当前位置: 软件>C/C++软件
sqlupdate
本文导语: sqlupdate 读取 MySQL 的表定义 SQL 文件,然后与现有数据库中进行比较,然后生成更新数据库结构的 SQL 语句。 sqlupdate v1.6.5 - Copyright (C) Joel Yliluoma (http://iki.fi/bisqwit/) Usage: sqlupdate [options] >changes.sql (Creates an update script) Opti...
sqlupdate 读取 MySQL 的表定义 SQL 文件,然后与现有数据库中进行比较,然后生成更新数据库结构的 SQL 语句。
sqlupdate v1.6.5 - 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
-i Use CREATE INDEX instead of ALTER..ADD KEY
-m Add comments explaining the differences
-c Ignore character set differences
-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).
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。