安装命令:
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的创表语句。
本文介绍了一种名为dbsake的数据库工具的安装步骤和基本使用方法,包括通过curl命令下载并设置执行权限,以及如何利用dbsake进行MySQL表结构的导出和解析。提供了详细的命令示例,如frmdump命令用于从frm文件中提取表结构。
2439

被折叠的 条评论
为什么被折叠?



