dbsake直接查看mysql的frm表结构文件

安装命令:
curl -s get.dbsake.net > dbsake
chmod u+x dbsake
两部直接搞定

参数列表:
Usage: dbsake [options]

Options:
-d, --debug
-q, --quiet
-V, --version Show the version and exit.
-?, --help Show this message and exit.

Commands:
decode-tablename Decode a MySQL filename.
encode-tablename Encode a MySQL table identifier.
fincore Report cached pages for a file.
frmdump Dump schema from MySQL frm files.
help Show help for a command.
sandbox Create a sandboxed MySQL instance.
sieve Filter and transform mysqldump output.
uncache Uncache file(s) from the OS page cache.
upgrade-mycnf Upgrade a MySQL option file.

示例:
xxx/dbsake frmdump xxx/***.frm
第一个 xxx 为自己实际安装dbsake的路径
第二个 xxx 为表结构的路径
第三个 *** 为具体的名称
运行后就能看到create table的创表语句。

你可能感兴趣的:(数据库)