网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

Mysql怎么读.frm结尾的表结构定义文件

这篇文章给大家分享的是有关MySQL怎么读.frm结尾的表结构定义文件的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

网站建设哪家好,找创新互联!专注于网页设计、网站建设、微信开发、微信小程序、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了保康免费建站欢迎大家使用!

用mysqlfrm工具读.frm结尾的表结构定义文件
到网站下载rpm包
http://rpm.pbone.net/
上传到mysql服务器
[root@test ~]# rpm -ivh mysql-utilities-1.6.5-1.el6.noarch.rpm 
warning: mysql-utilities-1.6.5-1.el6.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
        mysql-connector-python >= 2.0.0 is needed by mysql-utilities-1.6.5-1.el6.noarch

发现有依赖关系。
再下载mysql-connector-python
[root@test ~]# rpm -ivh mysql-connector-python-2.1.7-1.el6.x86_64.rpm 
warning: mysql-connector-python-2.1.7-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                ########################################### [100%]
   1:mysql-connector-python ########################################### [100%]
[root@test ~]# rpm -ivh mysql-utilities-1.6.5-1.el6.noarch.rpm 
warning: mysql-utilities-1.6.5-1.el6.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                ########################################### [100%]
   1:mysql-utilities        ########################################### [100%]
安装成功。

[root@test ~]# mysqlfrm /data/mysql/pou_prepub/temp_point_up.frm
Usage: mysqlfrm --server=[user[:]@host[:][:]|[:][:]] [path\tbl1.frm|db:tbl.frm]


mysqlfrm: error: The --port option is required for reading .frm files in the default mode.
[root@test ~]# mysqlfrm --diagnostic /data/mysql/pou_prepub/temp_point_up.frm
# WARNING: Cannot generate character set or collation names without the --server option.
# CAUTION: The diagnostic mode is a best-effort parse of the .frm file. As such, it may not identify all of the components of the table correctly. This is especially true for damaged files. It will also not read the default values for the columns and the resulting statement may not be syntactically correct.
# Reading .frm file for /data/mysql/pou_prepub/temp_point_up.frm:
# The .frm file is a TABLE.
# CREATE TABLE Statement:


CREATE TABLE `pou_prepub`.`temp_point_up` (
  `sum(point)` decimal(41,0) DEFAULT NULL, 
  `member_id` bigint(20) NOT NULL comment '会员ID' 
) ENGINE=InnoDB;


#...done.

读出了.frm的信息。

感谢各位的阅读!关于“Mysql怎么读.frm结尾的表结构定义文件”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!


新闻名称:Mysql怎么读.frm结尾的表结构定义文件
地址分享:http://bjjierui.cn/article/pigdep.html

其他资讯