CN107766552A - 一种mysql自动上线方法 - Google Patents
一种mysql自动上线方法 Download PDFInfo
- Publication number
- CN107766552A CN107766552A CN201711054534.2A CN201711054534A CN107766552A CN 107766552 A CN107766552 A CN 107766552A CN 201711054534 A CN201711054534 A CN 201711054534A CN 107766552 A CN107766552 A CN 107766552A
- Authority
- CN
- China
- Prior art keywords
- sql
- mysql
- chargings
- audited
- automatic wire
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Bioethics (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明提供了一种mysql自动上线方法,可以通过mysql上线平台可以自助对上线sql进行记录,管理,自助上线,及回滚。并且能够规范mysql建表,提高mysql查询效率。具体包含以下步骤:(1)使用者提交sql;(2)授权inception可以访问;(3)对sql进行审核;(4)如果对sql审核通过,选择对应服务器去执行sql,记录sql执行时间和执行人,生成并记录回滚sql;(5)如果对sql审核未通过,拒绝执行,并提出拒绝执行理由,通过拒绝执行的理由修改sql后返回步骤(3)重新审核,直至审核通过。
Description
技术领域
本发明属于计算机领域,具体涉及一种mysql自动上线方法。
背景技术
现有技术中,Inception,集审核、执行、备份及生成回滚语句于一身的MySQL自动化运维工具通过phthon程序,提交给inception进行审核,执行,并备份,完成sql的自助上线。Django是一个开放源代码的Web应用框架,由Python写成。
现有技术中,mysql上线只能是基于mysql的上线平台,并且mysql必须开启binglog,并且为row模式,并且inception需要单独搭建服务。
发明内容
本发明的目的在于,提供一种mysql自动上线方法,可以通过mysql上线平台可以自助对上线sql进行记录,管理,自助上线,及回滚。并且能够规范mysql建表,提高mysql查询效率。
为了实现以上技术效果,本发明提供了一种mysql自动上线方法,包含以下步骤:
(1)使用者提交sql;
(2)授权inception可以访问;
(3)对sql进行审核;
(4)如果对sql审核通过,选择对应服务器去执行sql,记录sql执行时间和执行人,生成并记录回滚sql;
(5)如果对sql审核未通过,拒绝执行,并提出拒绝执行理由,通过拒绝执行的理由修改sql后返回步骤(3)重新审核,直至审核通过。
所述步骤(1)中还可以包括:下载inception源码、进行编译,配置,部署i,并配置安全设置,如:禁止mysql关键字;sql操作影响超过10000条拒绝执行等。
所述步骤(2)中还可以包括:配置mysql备份库,配置基础设置,所述基础设备包括django、邮件发送、ldap、mysql、静态文件路径,服务通过调用公司ldap进行统一认证,部署django代码。并启用django服务,提供web访问。
所述步骤(3)对sql进行审核可以为对sql语法进行的审核。语法通过后,可以选择执行。不通过,则会报出sql相应的问题。
执行过的sql可以通过历史执行sql进行查看
需要执行回滚的sql可以在历史执行sql对应的回滚sql内查询。
本发明所取得的有益效果在于:
记录上线执行sql,回滚sql,随时可以回滚,并有记录可查。
上线sql通过inception进行语法语义检查,对可能影响访问的sql会及时阻止,防止对线上数据库的误操作。
通过平台的方式,不需要登陆服务器去执行sql,可以授权有权限的人去执行。提高数据库安全级别。
部署inception,并配置基本的安全设置,如:禁止mysql关键字;sql操作影响超过10000条拒绝执行等。
附图说明
图1为本发明所提供的mysql自动上线方法流程示意图;
图2为本发明所提供的应用于mysql自动上线方法的网络结构图。
具体实施方式
以下结合附图对本发明做进一步的说明。
如图1所示的mysql自动上线方法,包含以下步骤:
(1)使用者提交sql;
(2)授权inception可以访问;
(3)对sql进行审核;
(4)如果对sql审核通过,选择对应服务器去执行sql,记录sql执行时间和执行人,生成并记录回滚sql;
(5)如果对sql审核未通过,拒绝执行,并提出拒绝执行理由,通过拒绝执行的理由修改sql后返回步骤(3)重新审核,直至审核通过。
本实施方式的mysql自动上线方法,可以记录上线执行sql,回滚sql,随时可以回滚,并有记录可查。上线sql通过inception进行语法语义检查,对可能影响访问的sql会及时阻止,防止对线上数据库的误操作。通过平台的方式,不需要登陆服务器去执行sql,可以授权有权限的人去执行。提高数据库安全级别。部署inception,并配置基本的安全设置,如:禁止mysql关键字;sql操作影响超过10000条拒绝执行等。
Claims (4)
1.一种mysql自动上线方法,其特征在于,包含以下步骤:
(1)使用者提交sql;
(2)授权inception可以访问;
(3)对sql进行审核;
(4)如果对sql审核通过,选择对应服务器去执行sql,记录sql执行时间和执行人,生成并记录回滚sql;
(5)如果对sql审核未通过,拒绝执行,并提出拒绝执行理由,通过拒绝执行的理由修改sql后返回步骤(3)重新审核,直至审核通过。
2.根据权利要求1所述的mysql自动上线方法,其特征在于,所述步骤(1)中还包括:下载inception源码、进行编译,配置,部署i,并配置安全设置。
3.根据权利要求1所述的mysql自动上线方法,其特征在于,所述步骤(2)中还包括:配置基础设置,所述基础设备包括django、邮件发送、ldap、mysql、静态文件路径,服务通过调用公司ldap进行统一认证,部署django代码。并启用django服务,提供web访问。
4.根据权利要求1所述的mysql自动上线方法,其特征在于,所述步骤(3)对sql进行审核为对sql语法进行的审核。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711054534.2A CN107766552A (zh) | 2017-11-01 | 2017-11-01 | 一种mysql自动上线方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711054534.2A CN107766552A (zh) | 2017-11-01 | 2017-11-01 | 一种mysql自动上线方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107766552A true CN107766552A (zh) | 2018-03-06 |
Family
ID=61271174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711054534.2A Pending CN107766552A (zh) | 2017-11-01 | 2017-11-01 | 一种mysql自动上线方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107766552A (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112099806A (zh) * | 2020-11-05 | 2020-12-18 | 四川新网银行股份有限公司 | 一种基于CICD的sql自动化审核上线及执行方法 |
CN114528514A (zh) * | 2022-04-24 | 2022-05-24 | 飞狐信息技术(天津)有限公司 | 一种内容处理方法、系统、存储介质及电子设备 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120150841A1 (en) * | 2010-12-08 | 2012-06-14 | Microsoft Corporation | Auditing queries using query differentials |
CN102651010A (zh) * | 2011-02-28 | 2012-08-29 | 国际商业机器公司 | 用于数据库转储的方法、设备和系统 |
US20140230070A1 (en) * | 2013-02-14 | 2014-08-14 | Microsoft Corporation | Auditing of sql queries using select triggers |
CN104391995A (zh) * | 2014-12-15 | 2015-03-04 | 北京趣拿软件科技有限公司 | 一种sql语句审核的方法、数据库运维的方法及系统 |
CN106980637A (zh) * | 2016-09-28 | 2017-07-25 | 平安科技(深圳)有限公司 | Sql审核方法和装置 |
-
2017
- 2017-11-01 CN CN201711054534.2A patent/CN107766552A/zh active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120150841A1 (en) * | 2010-12-08 | 2012-06-14 | Microsoft Corporation | Auditing queries using query differentials |
CN102651010A (zh) * | 2011-02-28 | 2012-08-29 | 国际商业机器公司 | 用于数据库转储的方法、设备和系统 |
US20140230070A1 (en) * | 2013-02-14 | 2014-08-14 | Microsoft Corporation | Auditing of sql queries using select triggers |
CN104391995A (zh) * | 2014-12-15 | 2015-03-04 | 北京趣拿软件科技有限公司 | 一种sql语句审核的方法、数据库运维的方法及系统 |
CN106980637A (zh) * | 2016-09-28 | 2017-07-25 | 平安科技(深圳)有限公司 | Sql审核方法和装置 |
Non-Patent Citations (1)
Title |
---|
王竹峰: "Inception自动审核系统—设计与实现", 《2015第六届中国数据库技术大会(DTCC)-中文学术会议》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112099806A (zh) * | 2020-11-05 | 2020-12-18 | 四川新网银行股份有限公司 | 一种基于CICD的sql自动化审核上线及执行方法 |
CN114528514A (zh) * | 2022-04-24 | 2022-05-24 | 飞狐信息技术(天津)有限公司 | 一种内容处理方法、系统、存储介质及电子设备 |
CN114528514B (zh) * | 2022-04-24 | 2022-07-12 | 飞狐信息技术(天津)有限公司 | 一种内容处理方法、系统、存储介质及电子设备 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110727922B (zh) | 一种基于多维度数据流的反欺诈决策模型构建方法 | |
CN102122265B (zh) | 一种计算机软件测试结果的验证方法及系统 | |
Mens et al. | Evolving software architecture descriptions of critical systems | |
CN108063755B (zh) | 漏洞扫描方法、系统、存储介质和电子设备 | |
CN112260877B (zh) | 基于ai的rpa机器人管理方法、平台及存储介质 | |
CN104700169A (zh) | 一种发票查验与管理的方法及系统 | |
CN106486120B (zh) | 交互式语音应答方法及应答系统 | |
Setiyadi et al. | Information System Monitoring Access Log Database on Database Server | |
CN109902747B (zh) | 一种身份识别方法、装置、设备及计算机可读存储介质 | |
CN105095207A (zh) | 检索、获取应用软件内容的方法和装置 | |
CN107766552A (zh) | 一种mysql自动上线方法 | |
CN112016138A (zh) | 一种车联网自动化安全建模的方法、装置和电子设备 | |
CN104391852A (zh) | 一种建立关键词词库的方法和装置 | |
CN115220839A (zh) | 一种信息平台管理系统 | |
CN108255967A (zh) | 存储过程的调用方法、装置、存储介质及终端 | |
CN106570684A (zh) | 信息修改的方法及装置 | |
Savino et al. | The sustainability of product compliance within lifecycle design | |
CN104182829A (zh) | 仪器研制可靠性管理与保障系统 | |
Hinrichs et al. | An ISO 9001: 2000 Compliant Quality Management System for Data Integration in Data Warehouse Systems. | |
CN110019118A (zh) | 基于DevOps提升数据库运维效率的系统及其方法 | |
Fantechi et al. | Ambiguity defects as variation points in requirements | |
CN104216986B (zh) | 以数据更新周期进行预操作提高数据查询效率的装置及方法 | |
Tomita et al. | Template-based Monte-Carlo test generation for Simulink models | |
Jharko | Towards the quality evaluation of software of control systems of nuclear power plants: Theoretical grounds, main trends and problems | |
Furnari et al. | ORSIM: Integrating existing software components to detect similar natural language requirements |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180306 |
|
WD01 | Invention patent application deemed withdrawn after publication |