安裝命令:
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的創表語句。