Skip to content

zhausong/inception

 
 

Repository files navigation

关于Inception

MySQL语句的审核,在业界都已经基本被认同了,实际上也是对MySQL语句写法的统一化,标准化,而之前的人工审核,针对标准这个问题其实是很吃力的,标准越多,DBA越累,开发也越累。 那么在这个都追求自动化运维的时代,审核也必须要跟上步伐,因此Inception诞生了。而Inception可以做的工作远不止是一个自动化审核工具,同时还具备执行,生成对影响数据的回滚语句(类似闪回的功能),这样一条龙服务的工具,将会给DBA的工作带来翻天覆地的变化,DBA从此就从繁重的审核、登上去执行,出错了很难回滚(如果提前没有备份的话)的被动局面解放了出来,突然发现,做DBA原来可以这么轻松,工作可以不饱和了,那就有更多的自由时间学习、进一步向自动化运维平台的实现等更智能化的方向去发展,是具有里程碑意义的。

声明

Inception是一个开源系统,每个人或者每个公司都可以自由使用,由于MySQL代码的复杂性,在审核过程中不可能入戏太深,主要是将最重要的审核完成即可,面对很多复杂的子查询、表达式等是不容易检查到的,所以有些就直接忽略了,那么大家在使用过程中,有任何疑问或者发现任何BUG,都直接提出来,我们大家一起将Inception维护得更好。

同时还有另一个很重要的原因,不同公司对SQL语句的使用习惯不同,也许针对去哪儿网http://www.qunar.com来说,现在已经正常在线上服务很长时间,也没什么大的问题,而到其它公司了,则可能会遇到比较多问题,这是可以原谅的,也许是水土不服吧!!那么针对这些问题,还是请大家尽管提出来,我们大家一起将Inception维护得更好。

平时工作压力比较大,这个工具首先是为了解决问题的,可能还会存在一些没有测试过的代码,有些地方可能也是值得推敲的,还有待优化,本人会不遗余力的维护好,不断的改进,争取成为一个功能更加完善,使用更加友好的系统,同时正在酝酿一些新的更高大上的功能,敬请期待。

文档地址:

http://mysql-inception.github.io/inception-document/

联系方式

王竹峰

English summary

MySQL Inception is a tool for database administrators. It allows DBAs to construct good SQL statements, test them on read-only datasets and finally run those SQL statements against production databases with the ability to rollback if the SQL statement for some reason did not result in the intended result.

Testing SQL statements utilizes the EXPLAIN features and custom rules on best practices in SQL statements. The rollback feature is similar to the Flashback feature in MariaDB. To be able to rollback a SQL statement, a special syntax like shown below must be used:

inception_magic_start;
use <database name>;
<any SQL statement>
inception_magic_commit;

MySQL Inception is built on MySQL 5.6.10 with storage engines and other parts removed. It uses the real MySQL parser to analyze SQL statements and provides a shell for command line access. In addition there is also a web user interface. The main author is Wang Zhufeng (e-mail address above), who works for Qunar.com, the biggest online hotel booking site in China. As with MySQL 5.6, Inception is open source and free to use by anybody.

MySQL Inception is very popular in China and used some other countries as well, e.g. India. Most of the documentation and web user interface is in Chinese. We welcome translation contributions!

About

一个集审核、执行、备份及生成回滚语句于一身的MySQL自动化运维工具

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 51.3%
  • C++ 41.6%
  • Perl 2.0%
  • Objective-C 1.4%
  • Yacc 1.3%
  • Shell 1.0%
  • Other 1.4%