├── readme.png ├── 使用和安装说明.txt ├── image ├── 666.jpg ├── go.png ├── no.png ├── ok.png ├── 首页.png ├── coin01.png ├── coin02.png ├── coin03.png ├── coin04.png ├── coin07.png ├── coin08.png ├── coin09.png ├── coin10.png ├── coin11.png ├── coin12.png ├── coin13.png ├── coin14.png ├── coin15.png ├── coin16.png ├── coin17.png ├── coin18.png ├── coin19.png ├── coin20.png ├── coin21.png ├── coinL1.png ├── coinL2.png ├── delete.png ├── fail.gif ├── logPwd.png ├── logYZM.png ├── logo.jpg ├── logo.png ├── sqlops.png ├── topic.png ├── update.png ├── SQL语言校验.png ├── coin111.png ├── coin222.png ├── logLOGO.png ├── logName.png ├── logo.jpg_bak ├── shanchu.png ├── logBanner.png └── sqlops_chatgpt.png ├── sqlparser.tgz ├── binlog2sql.tgz ├── xadmin ├── images │ ├── bg.png │ └── aiwrap.png ├── fonts │ ├── iconfont.eot │ ├── iconfont.ttf │ └── iconfont.woff ├── lib │ └── layui │ │ ├── font │ │ ├── iconfont.eot │ │ ├── iconfont.ttf │ │ └── iconfont.woff │ │ ├── images │ │ └── face │ │ │ ├── 0.gif │ │ │ ├── 1.gif │ │ │ ├── 10.gif │ │ │ ├── 11.gif │ │ │ ├── 12.gif │ │ │ ├── 13.gif │ │ │ ├── 14.gif │ │ │ ├── 15.gif │ │ │ ├── 16.gif │ │ │ ├── 17.gif │ │ │ ├── 18.gif │ │ │ ├── 19.gif │ │ │ ├── 2.gif │ │ │ ├── 20.gif │ │ │ ├── 21.gif │ │ │ ├── 22.gif │ │ │ ├── 23.gif │ │ │ ├── 24.gif │ │ │ ├── 25.gif │ │ │ ├── 26.gif │ │ │ ├── 27.gif │ │ │ ├── 28.gif │ │ │ ├── 29.gif │ │ │ ├── 3.gif │ │ │ ├── 30.gif │ │ │ ├── 31.gif │ │ │ ├── 32.gif │ │ │ ├── 33.gif │ │ │ ├── 34.gif │ │ │ ├── 35.gif │ │ │ ├── 36.gif │ │ │ ├── 37.gif │ │ │ ├── 38.gif │ │ │ ├── 39.gif │ │ │ ├── 4.gif │ │ │ ├── 40.gif │ │ │ ├── 41.gif │ │ │ ├── 42.gif │ │ │ ├── 43.gif │ │ │ ├── 44.gif │ │ │ ├── 45.gif │ │ │ ├── 46.gif │ │ │ ├── 47.gif │ │ │ ├── 48.gif │ │ │ ├── 49.gif │ │ │ ├── 5.gif │ │ │ ├── 50.gif │ │ │ ├── 51.gif │ │ │ ├── 52.gif │ │ │ ├── 53.gif │ │ │ ├── 54.gif │ │ │ ├── 55.gif │ │ │ ├── 56.gif │ │ │ ├── 57.gif │ │ │ ├── 58.gif │ │ │ ├── 59.gif │ │ │ ├── 6.gif │ │ │ ├── 60.gif │ │ │ ├── 61.gif │ │ │ ├── 62.gif │ │ │ ├── 63.gif │ │ │ ├── 64.gif │ │ │ ├── 65.gif │ │ │ ├── 66.gif │ │ │ ├── 67.gif │ │ │ ├── 68.gif │ │ │ ├── 69.gif │ │ │ ├── 7.gif │ │ │ ├── 70.gif │ │ │ ├── 71.gif │ │ │ ├── 8.gif │ │ │ └── 9.gif │ │ ├── css │ │ ├── modules │ │ │ ├── layer │ │ │ │ └── default │ │ │ │ │ ├── icon.png │ │ │ │ │ ├── icon-ext.png │ │ │ │ │ ├── loading-0.gif │ │ │ │ │ ├── loading-1.gif │ │ │ │ │ └── loading-2.gif │ │ │ ├── code.css │ │ │ └── laydate │ │ │ │ └── default │ │ │ │ └── laydate.css │ │ ├── theme11.min.css │ │ ├── theme12.min.css │ │ └── theme49.min.css │ │ ├── lay │ │ └── modules │ │ │ ├── code.js │ │ │ ├── laytpl.js │ │ │ ├── flow.js │ │ │ ├── rate.js │ │ │ ├── tree.js │ │ │ ├── util.js │ │ │ ├── carousel.js │ │ │ ├── laypage.js │ │ │ ├── upload.js │ │ │ ├── slider.js │ │ │ └── element.js │ │ └── layui.js ├── css │ └── font.css └── js │ └── cookie.js ├── index.html ├── main.php ├── sqladvisor ├── css │ ├── lib │ │ ├── chosen │ │ │ ├── chosen-sprite.png │ │ │ └── chosen-sprite@2x.png │ │ ├── vector-map │ │ │ └── jqvmap.min.css │ │ └── datatable │ │ │ ├── dataTables.bootstrap.min.css │ │ │ └── buttons.bootstrap.min.css │ ├── font-awesome │ │ └── fonts │ │ │ ├── FontAwesome.otf │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ ├── fontawesome-webfont.woff │ │ │ └── fontawesome-webfont.woff2 │ └── normalize.css ├── sqladvisor_result.php └── sqladvisor.php ├── login.php ├── conn.php ├── db_config.php ├── order_number.php ├── sql_statement_error.php ├── sqladvisor_config.php ├── cancel.php ├── sql_statement.php ├── cancel_status.php ├── signup.php ├── mail └── mail.php ├── css └── ace.min.css ├── stat ├── intercept_graph_getdata.php ├── sql_order_graph_getdata.php ├── intercept_stat.html └── sql_order_stat.html ├── send_reset_pass_mail.php ├── update.php ├── update_status.php ├── execute.php ├── login.html ├── time.php ├── forgot_password.html ├── sql_check.php ├── register.html ├── rollback.php ├── resetUserPass.php ├── pt_osc_real_time_output.php ├── sqlops_schema └── sqlops_schema.sql ├── execute_status.php ├── member.php ├── intercept_order.php ├── my_order.php ├── README.md ├── sql_interface.php ├── finish_order.php ├── readme.html └── wait_order.php /readme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/readme.png -------------------------------------------------------------------------------- /使用和安装说明.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/使用和安装说明.txt -------------------------------------------------------------------------------- /image/666.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/666.jpg -------------------------------------------------------------------------------- /image/go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/go.png -------------------------------------------------------------------------------- /image/no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/no.png -------------------------------------------------------------------------------- /image/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/ok.png -------------------------------------------------------------------------------- /image/首页.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/首页.png -------------------------------------------------------------------------------- /sqlparser.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/sqlparser.tgz -------------------------------------------------------------------------------- /binlog2sql.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/binlog2sql.tgz -------------------------------------------------------------------------------- /image/coin01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin01.png -------------------------------------------------------------------------------- /image/coin02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin02.png -------------------------------------------------------------------------------- /image/coin03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin03.png -------------------------------------------------------------------------------- /image/coin04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin04.png -------------------------------------------------------------------------------- /image/coin07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin07.png -------------------------------------------------------------------------------- /image/coin08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin08.png -------------------------------------------------------------------------------- /image/coin09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin09.png -------------------------------------------------------------------------------- /image/coin10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin10.png -------------------------------------------------------------------------------- /image/coin11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin11.png -------------------------------------------------------------------------------- /image/coin12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin12.png -------------------------------------------------------------------------------- /image/coin13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin13.png -------------------------------------------------------------------------------- /image/coin14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin14.png -------------------------------------------------------------------------------- /image/coin15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin15.png -------------------------------------------------------------------------------- /image/coin16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin16.png -------------------------------------------------------------------------------- /image/coin17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin17.png -------------------------------------------------------------------------------- /image/coin18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin18.png -------------------------------------------------------------------------------- /image/coin19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin19.png -------------------------------------------------------------------------------- /image/coin20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin20.png -------------------------------------------------------------------------------- /image/coin21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin21.png -------------------------------------------------------------------------------- /image/coinL1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coinL1.png -------------------------------------------------------------------------------- /image/coinL2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coinL2.png -------------------------------------------------------------------------------- /image/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/delete.png -------------------------------------------------------------------------------- /image/fail.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/fail.gif -------------------------------------------------------------------------------- /image/logPwd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/logPwd.png -------------------------------------------------------------------------------- /image/logYZM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/logYZM.png -------------------------------------------------------------------------------- /image/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/logo.jpg -------------------------------------------------------------------------------- /image/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/logo.png -------------------------------------------------------------------------------- /image/sqlops.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/sqlops.png -------------------------------------------------------------------------------- /image/topic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/topic.png -------------------------------------------------------------------------------- /image/update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/update.png -------------------------------------------------------------------------------- /image/SQL语言校验.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/SQL语言校验.png -------------------------------------------------------------------------------- /image/coin111.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin111.png -------------------------------------------------------------------------------- /image/coin222.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/coin222.png -------------------------------------------------------------------------------- /image/logLOGO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/logLOGO.png -------------------------------------------------------------------------------- /image/logName.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/logName.png -------------------------------------------------------------------------------- /image/logo.jpg_bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/logo.jpg_bak -------------------------------------------------------------------------------- /image/shanchu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/shanchu.png -------------------------------------------------------------------------------- /image/logBanner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/logBanner.png -------------------------------------------------------------------------------- /xadmin/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/images/bg.png -------------------------------------------------------------------------------- /image/sqlops_chatgpt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/image/sqlops_chatgpt.png -------------------------------------------------------------------------------- /xadmin/fonts/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/fonts/iconfont.eot -------------------------------------------------------------------------------- /xadmin/fonts/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/fonts/iconfont.ttf -------------------------------------------------------------------------------- /xadmin/fonts/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/fonts/iconfont.woff -------------------------------------------------------------------------------- /xadmin/images/aiwrap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/images/aiwrap.png -------------------------------------------------------------------------------- /xadmin/lib/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/font/iconfont.eot -------------------------------------------------------------------------------- /xadmin/lib/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /xadmin/lib/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/font/iconfont.woff -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/0.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/1.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/10.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/11.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/12.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/13.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/14.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/15.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/16.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/17.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/18.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/19.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/2.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/20.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/21.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/22.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/23.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/24.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/25.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/26.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/27.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/28.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/29.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/3.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/30.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/31.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/32.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/33.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/34.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/35.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/36.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/37.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/38.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/39.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/4.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/40.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/41.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/42.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/43.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/44.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/45.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/46.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/47.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/48.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/49.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/5.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/50.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/51.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/52.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/53.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/54.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/55.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/56.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/57.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/58.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/59.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/6.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/60.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/61.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/62.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/63.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/64.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/65.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/66.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/67.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/68.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/69.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/7.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/70.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/71.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/8.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/images/face/9.gif -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /main.php: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /sqladvisor/css/lib/chosen/chosen-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/sqladvisor/css/lib/chosen/chosen-sprite.png -------------------------------------------------------------------------------- /sqladvisor/css/lib/chosen/chosen-sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/sqladvisor/css/lib/chosen/chosen-sprite@2x.png -------------------------------------------------------------------------------- /login.php: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /sqladvisor/css/font-awesome/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/sqladvisor/css/font-awesome/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /xadmin/lib/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /xadmin/lib/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /xadmin/lib/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /xadmin/lib/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/xadmin/lib/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /sqladvisor/css/font-awesome/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/sqladvisor/css/font-awesome/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /sqladvisor/css/font-awesome/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/sqladvisor/css/font-awesome/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /sqladvisor/css/font-awesome/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/sqladvisor/css/font-awesome/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /sqladvisor/css/font-awesome/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hcymysql/sqlops/HEAD/sqladvisor/css/font-awesome/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /conn.php: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /db_config.php: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /order_number.php: -------------------------------------------------------------------------------- 1 | 23 | 24 | -------------------------------------------------------------------------------- /sql_statement_error.php: -------------------------------------------------------------------------------- 1 | "; 19 | echo "
".$row[1].""; 20 | ?> 21 | -------------------------------------------------------------------------------- /sqladvisor_config.php: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /xadmin/css/font.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'iconfont'; 3 | src: url('../fonts/iconfont.eot'); 4 | src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'), 5 | url('../fonts/iconfont.woff') format('woff'), 6 | url('../fonts/iconfont.ttf') format('truetype'), 7 | url('../fonts/iconfont.svg#iconfont') format('svg'); 8 | } 9 | .iconfont{ 10 | font-family:"iconfont" !important; 11 | font-size:16px;font-style:normal; 12 | -webkit-font-smoothing: antialiased; 13 | -webkit-text-stroke-width: 0.2px; 14 | -moz-osx-font-smoothing: grayscale; 15 | } 16 | 17 | -------------------------------------------------------------------------------- /cancel.php: -------------------------------------------------------------------------------- 1 | 14 | 23 | 24 | -------------------------------------------------------------------------------- /sql_statement.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | "; 24 | echo "
".$row[1].""; 25 | ?> 26 | -------------------------------------------------------------------------------- /xadmin/lib/layui/css/theme11.min.css: -------------------------------------------------------------------------------- 1 | body.index{background:rgba(0,0,0,0) !important;}.container{background:#323640 !important;}.container .layui-nav-bar{background:rgb(95, 184, 120) !important;}.container .logo a{background:rgba(0,0,0,0) !important;}.container .logo a{color:rgb(255, 255, 255) !important;}.left-nav{background:rgba(255, 255, 255, 1) !important;}.left-nav a{color:rgb(51, 51, 51) !important;}.left-nav a:hover,.left-nav a.active{background:#786aed !important;}.left-nav a:hover,.left-nav a.active{color:rgba(255, 255, 255, 1) !important;}.left-nav a:hover,.left-nav a.active{border-color:#009688 !important;}body{background:rgb(241, 241, 241) !important;} -------------------------------------------------------------------------------- /xadmin/lib/layui/css/theme12.min.css: -------------------------------------------------------------------------------- 1 | body.index{background:rgba(0,0,0,0) !important;}.container{background:rgba(204, 0, 0, 1) !important;}.container .layui-nav-bar{background:rgb(95, 184, 120) !important;}.container .logo a{background:rgba(0,0,0,0) !important;}.container .logo a{color:rgb(255, 255, 255) !important;}.left-nav{background:rgb(238, 238, 238) !important;}.left-nav a{color:rgb(51, 51, 51) !important;}.left-nav a:hover,.left-nav a.active{background:rgba(204, 0, 0, 1) !important;}.left-nav a:hover,.left-nav a.active{color:rgb(255, 255, 255) !important;}.left-nav a:hover,.left-nav a.active{border-color:rgba(255, 140, 0, 1) !important;}body{background:rgb(241, 241, 241) !important;} -------------------------------------------------------------------------------- /cancel_status.php: -------------------------------------------------------------------------------- 1 | "; 14 | $q = isset($_GET['q'])? htmlspecialchars($_GET['q']) : ''; 15 | if($q) { 16 | if($q =='是') { 17 | require 'conn.php'; 18 | $sql = "DELETE FROM sql_order_wait WHERE id={$id}"; 19 | if(mysqli_query($conn,$sql)){ 20 | header("location:my_order.php"); 21 | } 22 | else{ 23 | echo "修改失败"; 24 | } 25 | mysqli_close($conn); 26 | } 27 | else{ 28 | echo "不撤销."; 29 | header("location:my_order.php"); 30 | } 31 | } 32 | 33 | ?> 34 | -------------------------------------------------------------------------------- /xadmin/lib/layui/css/theme49.min.css: -------------------------------------------------------------------------------- 1 | body.index{background:rgba(0,0,0,0) !important;}.container{background: linear-gradient(to left,rgba(1, 170, 237, 1), rgba(82, 183, 109, 1)) !important;}.container .layui-nav-bar{background:rgb(95, 184, 120) !important;}.container .logo a{background:rgba(0,0,0,0) !important;}.container .logo a{color:rgb(255, 255, 255) !important;}.left-nav{background:rgba(57, 61, 73, 1) !important;}.left-nav a{color:rgba(210, 208, 208, 1) !important;}.left-nav a:hover,.left-nav a.active{background:rgba(30, 159, 255, 1) !important;}.left-nav a:hover,.left-nav a.active{color:rgba(234, 234, 234, 1) !important;}.left-nav a:hover,.left-nav a.active{border-color:rgba(0,0,0,0) !important;}body{background:rgb(241, 241, 241) !important;} -------------------------------------------------------------------------------- /signup.php: -------------------------------------------------------------------------------- 1 | "; 16 | $reslut=mysqli_query($conn,$sign_up);//执行sql 17 | 18 | if (!$reslut){ 19 | die('Error: ' . mysqli_error($conn));//如果sql执行失败输出错误 20 | }else{ 21 | echo "注册成功
| 重置密码 | 38 |
| 用户注册 | 38 |
' .$ops_content. ''; 31 | echo "
' .nl2br($measage_stdio). ''."
| 重置密码 | 39 |
你的激活有效期已超过10分钟,请输入你的帐号重新发送激活邮件。
"); 83 | } 84 | 85 | if(isset($_POST['submit'])){ 86 | 87 | $new_pwd=$_POST['password']; 88 | if(strlen($new_pwd)<6){ 89 | echo ""; 90 | } 91 | 92 | require 'con.php'; 93 | 94 | $update_pwd="UPDATE login_user set pwd=MD5('$new_pwd') where user = '{$array[0]}' AND email = '{$array[1]}'"; 95 | //echo $update_pwd.""; 96 | mysqli_query($con,$update_pwd); 97 | if (mysqli_affected_rows($con) >0){ 98 | echo "密码已经成功更新!
"; 99 | echo "点击此处 登录
"; 100 | } else{ 101 | echo "密码更新失败!
"; 102 | } 103 | } 104 | 105 | ?> 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /stat/intercept_stat.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
";
73 | echo "";
74 | }
75 | mysqli_close($conn);
76 | echo "
";
59 | echo "";
60 | }
61 | mysqli_close($conn);
62 | //header("refresh:3;location:wait_order.php");
63 | if($is_ddl == 1){
64 | $exec_time=date("Y-m-d H:i:s");
65 | system("./mail/sendEmail -f chunyang_he@126.com -t sqlops@126.com -s smtp.126.com:25 -u '【通知】{$db}库【Alter】操作已经上线完毕-{$exec_time}' -o message-charset=utf8 -o message-content-type=html -m '上线人:{$ops_user}
";
78 | }
79 | #######################################
80 |
81 | /*$sql = "update sql_order_wait set status=1,finish_status=1 WHERE id={$id}";
82 | if(mysqli_query($con,$sql)){
83 | header("location:wait_order.php");
84 | }
85 | else{
86 | echo "修改失败";
87 | }*/
88 | //mysql_close($con);
89 | }
90 | else{
91 | echo "没有执行.";
92 | }
93 | }
94 |
95 | ?>
96 |
--------------------------------------------------------------------------------
/sqladvisor/sqladvisor.php:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 | 注:选择你的数据库,然后提交SQL,平台会自动返回优化建议。例如你可以将线上跑的比较慢的SQL,拿到平台里执行,平台会根据你的SQL自动反馈优化建议。同时,你也可以关注“监控管理”-->“MySQL慢查询分析” ,来查看线上抓取的慢SQL。
34 || 第一页 | "; 118 | $htmlstr.="上一页 | "; 119 | } 120 | 121 | $htmlstr.="总共${totalPage}页 | "; 122 | 123 | for ($i=$startPage;$i<=$endPage; $i++){ 124 | 125 | $htmlstr.="" . $i . " | "; 126 | } 127 | 128 | if ($page<$totalPage){ 129 | $htmlstr.="下一页 | "; 130 | $htmlstr.="最后页 | "; 131 | 132 | } 133 | $htmlstr.="
| 工单号 | 76 |申请人 | 77 |数据库名 | 78 |申请时间 | 79 |工单名称 | 80 |申请原因 | 81 |审批结果 | "; 82 | 83 | while($row = mysqli_fetch_array($result)) 84 | { 85 | $exec_status = $row['status']; 86 | $exec_status_second = $row['status_second']; 87 | $exec_finish_status = $row['finish_status']; 88 | $exec_finish_status_second = $row['finish_status_second']; 89 | echo "
|---|---|---|---|---|---|---|
| {$row['ops_order']} | "; 91 | echo "{$row['real_user']} | "; 92 | echo "{$row['ops_db']} | "; 93 | echo "{$row['ops_time']} | "; 94 | echo "{$row['ops_order_name']} | "; 95 | echo "{$row['ops_reason']} | "; 96 | echo "被系统拦截 | "; 97 | echo "
| 第一页 | "; 124 | $htmlstr.="上一页 | "; 125 | } 126 | 127 | $htmlstr.="总共${totalPage}页 | "; 128 | 129 | for ($i=$startPage;$i<=$endPage; $i++){ 130 | 131 | $htmlstr.="" . $i . " | "; 132 | } 133 | 134 | if ($page<$totalPage){ 135 | $htmlstr.="下一页 | "; 136 | $htmlstr.="最后页 | "; 137 | 138 | } 139 | $htmlstr.="
| 工单号 | 66 |申请人 | 67 |数据库名 | 68 |申请时间 | 69 |工单名称 | 70 |上线理由 | 71 |审批结果 | 72 |操作 | 73 |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {$row['ops_order']} | "; 84 | echo "{$row['real_user']} | "; 85 | echo "{$row['ops_db']} | "; 86 | echo "{$row['ops_time']} | "; 87 | echo "{$row['ops_order_name']} | "; 88 | echo "{$row['ops_reason']} | "; 89 | 90 | if($exec_status==1){ 91 | echo "$status 92 | 审批人:{$row['approver']} | "; 93 | } else if($exec_status==2){ 94 | echo "审批不通过 95 | 审批人:{$row['approver']} | "; 96 | } else{ 97 | echo "等待审批中 | "; 98 | } 99 | 100 | ####################################################### 101 | if($exec_finish_status==1){ 102 | echo "执行工单 103 | 104 | 自行撤销工单 | "; 105 | } 106 | else if($exec_finish_status==2){ 107 | echo "已执行"; 108 | echo "生成反向SQL | "; 109 | } 110 | else{ 111 | echo "没审批不能执行"; 112 | echo "自行撤销工单 | "; 113 | } 114 | echo "
| 第一页 | "; 142 | $htmlstr.="上一页 | "; 143 | } 144 | for ($i=$startPage;$i<=$endPage; $i++){ 145 | 146 | $htmlstr.="" . $i . " | "; 147 | } 148 | 149 | if ($page<$totalPage){ 150 | $htmlstr.="下一页 | "; 151 | $htmlstr.="最后页 | "; 152 | 153 | } 154 | $htmlstr.="
137 | 使用说明: |
148 |
151 | 152 | 153 | 154 | -------------------------------------------------------------------------------- /xadmin/lib/layui/layui.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.4.5 MIT License By https://www.layui.com */ 2 | ;!function(e){"use strict";var t=document,o={modules:{},status:{},timeout:10,event:{}},n=function(){this.v="2.4.5"},r=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,o=t.scripts,n=o.length-1,r=n;r>0;r--)if("interactive"===o[r].readyState){e=o[r].src;break}return e||o[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),i=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},a="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};n.prototype.cache=o,n.prototype.define=function(e,t){var n=this,r="function"==typeof e,i=function(){var e=function(e,t){layui[e]=t,o.status[e]=!0};return"function"==typeof t&&t(function(n,r){e(n,r),o.callback[n]=function(){t(e)}}),this};return r&&(t=e,e=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?i.call(n):(n.use(e,i),n)},n.prototype.use=function(e,n,l){function s(e,t){var n="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currentTarget||e.srcElement).readyState))&&(o.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void(o.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),n,l):"function"==typeof n&&n.apply(layui,l)}var y=this,p=o.dir=o.dir?o.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,o){"jquery"===o&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],o.host=o.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(o.modules[f])!function g(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void("string"==typeof o.modules[f]&&o.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":o.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=o.version===!0?o.v||(new Date).getTime():o.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||a?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),o.modules[f]=h}return y},n.prototype.getStyle=function(t,o){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](o)},n.prototype.link=function(e,n,r){var a=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof n&&(r=n);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(o.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof n?a:(function p(){return++y>1e3*o.timeout/100?i(e+" timeout"):void(1989===parseInt(a.getStyle(t.getElementById(c),"width"))?function(){n()}():setTimeout(p,100))}(),a)},o.callback={},n.prototype.factory=function(e){if(layui[e])return"function"==typeof o.callback[e]?o.callback[e]:null},n.prototype.addcss=function(e,t,n){return layui.link(o.dir+"css/"+e,t,n)},n.prototype.img=function(e,t,o){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,"function"==typeof t&&t(n)},void(n.onerror=function(e){n.onerror=null,"function"==typeof o&&o(e)}))},n.prototype.config=function(e){e=e||{};for(var t in e)o[t]=e[t];return this},n.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),n.prototype.extend=function(e){var t=this;e=e||{};for(var o in e)t[o]||t.modules[o]?i("模块名 "+o+" 已被占用"):t.modules[o]=e[o];return t},n.prototype.router=function(e){var t=this,e=e||location.hash,o={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),o.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),o.search[t[0]]=t[1]}():o.path.push(t)}),o):o},n.prototype.data=function(t,o,n){if(t=t||"layui",n=n||localStorage,e.JSON&&e.JSON.parse){if(null===o)return delete n[t];o="object"==typeof o?o:{key:o};try{var r=JSON.parse(n[t])}catch(i){var r={}}return"value"in o&&(r[o.key]=o.value),o.remove&&delete r[o.key],n[t]=JSON.stringify(r),o.key?r[o.key]:r}},n.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},n.prototype.device=function(t){var o=navigator.userAgent.toLowerCase(),n=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(o.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(o)?"windows":/linux/.test(o)?"linux":/iphone|ipod|ipad|ios/.test(o)?"ios":/mac/.test(o)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((o.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:n("micromessenger")};return t&&!r[t]&&(r[t]=n(t)),r.android=/android/.test(o),r.ios="ios"===r.os,r},n.prototype.hint=function(){return{error:i}},n.prototype.each=function(e,t){var o,n=this;if("function"!=typeof t)return n;if(e=e||[],e.constructor===Object){for(o in e)if(t.call(e[o],o,e[o]))break}else for(o=0;o
| 工单号 | 101 |申请人 | 102 |数据库名 | 103 |申请时间 | 104 |工单名称 | 105 |申请原因 | 106 |审批结果 | "; 107 | if($prvi!=1){ 108 | echo "操作 | 109 |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {$row['ops_order']} | "; 119 | echo "{$row['real_user']} | "; 120 | echo "{$row['ops_db']} | "; 121 | echo "{$row['ops_time']} | "; 122 | echo "{$row['ops_order_name']} | "; 123 | echo "{$row['ops_reason']} | "; 124 | 125 | if($prvi==1 || $prvi=100){ 126 | 127 | if($exec_status==0){ 128 | echo "$status | "; 129 | } 130 | if($exec_status==1){ 131 | echo "$status 132 | 审批人:{$row['approver']} | "; 133 | } 134 | if($exec_status==2){ 135 | echo "审批不通过 136 | 审批人:{$row['approver']} | "; 137 | } 138 | } 139 | else{ 140 | echo "等待审批中 | "; 141 | } 142 | ####################################################### 143 | if($prvi==100){ 144 | 145 | if($exec_finish_status==1){ 146 | echo "执行工单 | "; 147 | //echo "自行撤销工单"; 148 | } 149 | else if($exec_finish_status==2){ 150 | echo "已执行"; 151 | echo "生成反向SQL | "; 152 | } 153 | else{ 154 | echo "没审批不能执行 155 | 自行撤销工单 156 | | "; 157 | //echo "自行撤销工单 | "; 158 | } 159 | echo "
| 第一页 | "; 189 | $htmlstr.="上一页 | "; 190 | } 191 | 192 | $htmlstr.="总共${totalPage}页 | "; 193 | 194 | for ($i=$startPage;$i<=$endPage; $i++){ 195 | 196 | $htmlstr.="" . $i . " | "; 197 | } 198 | 199 | if ($page<$totalPage){ 200 | $htmlstr.="下一页 | "; 201 | $htmlstr.="最后页 | "; 202 | 203 | } 204 | $htmlstr.="
11 | 
13 | 上线流程为:开发提交SQL,系统自动审核(sql_review.php),审核通过后生成我的工单待管理员批复并且发邮件通知,
14 |15 | 16 | 管理员人工确认审核通过后,开发点击执行完成上线。
17 |18 |
19 | 通过SQL自助平台,可以让开发自上线,开发提交SQL后就会自动返回优化建议,无需DBA的再次审核,从而提升上线效率,有利于建立数据库开发规范。
20 |SQL自动审核主要完成两方面目的:
21 |1、避免性能太差的SQL进入生产系统,导致整体性能降低。
22 |2、检查开发设计的索引是否合理,是否需要添加索引。
23 |24 |
思路其实很简单:
25 |1、获取开发提交的SQL
26 |27 | 2、对要执行的SQL做分析,触碰事先定义好的规则来判断这个SQL是否可以自动审核通过,未通过审核的需要人工处理。
28 |29 |
规则:
30 |检查项:
32 |1、警告!表没有主键
33 |2、警告!表主键字段名必须是id。
34 |3、提示:id自增字段默认值为1,auto_increment=1
35 |4、警告!表字段没有中文注释,COMMENT应该有默认值,如COMMENT '姓名'
36 |5、警告!表没有中文注释,例:COMMENT='学生信息表'
37 |6、警告!表缺少utf8字符集,否则会出现乱码
38 |7、警告!表存储引擎应设置为InnoDB
39 |8、警告!表缺少update_time字段,方便抽数据使用,且给加上索引。
40 |9、警告!表update_time字段类型应设置timestamp。
41 |10、警告!表update_time字段缺少索引。
42 |11、警告!表缺少create_time字段,方便抽数据使用,且给加上索引。
43 |44 | 12、警告!表中的索引数已经超过10个,索引是一把双刃剑,它可以提高查询效率但也会降低插入和更新的速度并占用磁盘空间
45 |13、警告!表应该为timestamp类型加默认系统当前时间。例如:update_time 46 | timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 47 | '更新时间'
48 |14、警告!表 utf8_bin应使用默认的字符集核对utf8_general_ci
49 |50 | 15、警告!用DECIMAL代替FLOAT和DOUBLE存储精确浮点数。浮点数的缺点是会引起精度问题,对货币等对精度敏感的数据,应该用定点数decimal类型存储。
51 |52 | 16、警告!避免使用外键,外键会导致父表和子表之间耦合,十分影响SQL性能,出现过多的锁等待,甚至会造成死锁。
53 |54 | 17、警告!表字段类型应设置为datetime精确到秒。例:将datetime(3)改成datetime。警告!表字段类型应设置为timestamp精确到秒。例:将timestamp(3)改成timestamp。
55 |检查项:
61 |1、警告!不支持create index语法,请更改为alter table add 62 | index语法。
63 |2、警告!更改表结构要减少与数据库的交互次数,应改为,例alter table t1 add 64 | index IX_uid(uid),add index IX_name(name)
65 |3、表记录小于150万行,可以由开发自助执行。否则表太大请联系DBA执行!
66 |4、支持删除索引,但不支持删除字段
67 |5、不支持更改字段名字
68 |检查项:
74 |1、警告:insert 表1 select 表2,会造成锁表。
75 |检查项:
81 |1、警告!没有where条件,update会全表更新,禁止执行!!!
82 |2、更新的行数小于1000行,可以由开发自助执行。否则请联系DBA执行!!!
83 |3、防止where 1=1 绕过审核规则
84 |4、检查更新字段有无索引
85 |5、警告!DML不同的操作要分开写,不要写在一个事务里。
86 |检查项:
92 |1、select * 是否有必要查询所有的字段?
93 |2、警告!没有where条件,注意where后面的字段要加上索引
94 |3、没有limit会查询更多的数据
95 |4、警告!子查询性能低下,请转为join表关联
96 |5、提示:in里面的数值不要超过1000个
97 |6、提示:采用join关联,注意关联字段要都加上索引,如on a.id=b.id
98 |7、提示:MySQL对多表join关联性能低下,建议不要超过3个表以上的关联
99 |8、警告!like '%%'双百分号无法用到索引,like 100 | 'mysql%'这样是可以利用到索引的
101 |9、提示:默认情况下,MySQL对所有GROUP BY 102 | col1,col2...的字段进行排序。如果查询包括GROUP BY,想要避免排序结果的消耗,则可以指定ORDER BY NULL禁止排序。
103 |10、警告!MySQL里用到order by 104 | rand()在数据量比较多的时候是很慢的,因为会导致MySQL全表扫描,故也不会用到索引
105 |11、提示:是否要加一个having过滤下?
106 |12、警告!禁止不必要的order by排序,因为前面已经count统计了
107 |108 | 13、警告!MySQL里不支持函数索引,例DATE_FORMAT('create_time','%Y-%m-%d')='2016-01-01'是无法用到索引的,需要改写为 109 | create_time>='2016-01-01 00:00:00' and create_time<='2016-01-01 23:59:59'
110 |14、检查更新字段有无索引
111 |112 | 113 | 114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /wait_order.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 工单号 | 108 |申请人 | 109 |数据库名 | 110 |申请时间 | 111 |工单名称 | 112 |申请原因 | 113 |审批结果 | "; 114 | if($prvi!=1){ 115 | echo "操作 | 116 |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {$row['ops_order']} | "; 126 | echo "{$row['real_user']} | "; 127 | echo "{$row['ops_db']} | "; 128 | echo "{$row['ops_time']} | "; 129 | echo "{$row['ops_order_name']} | "; 130 | echo "{$row['ops_reason']} | "; 131 | 132 | if($prvi==1 || $prvi=100){ 133 | 134 | if($exec_status==0){ 135 | echo "$status | "; 136 | } 137 | if($exec_status==1){ 138 | echo "$status 139 | 审批人:{$row['approver']} | "; 140 | } 141 | if($exec_status==2){ 142 | echo "审批不通过 143 | 审批人:{$row['approver']} | "; 144 | } 145 | } 146 | else{ 147 | echo "等待审批中 | "; 148 | } 149 | ####################################################### 150 | if($prvi==100){ 151 | 152 | if($exec_finish_status==1){ 153 | echo "执行工单 | "; 154 | } 155 | else if($exec_finish_status==2){ 156 | echo "已执行"; 157 | echo "生成反向SQL | "; 158 | } 159 | else{ 160 | echo "没审批不能执行 161 | 自行撤销工单 162 | | "; 163 | //echo "自行撤销工单 | "; 164 | } 165 | echo "
| 第一页 | "; 195 | $htmlstr.="上一页 | "; 196 | } 197 | 198 | $htmlstr.="总共${totalPage}页 | "; 199 | 200 | for ($i=$startPage;$i<=$endPage; $i++){ 201 | 202 | $htmlstr.="" . $i . " | "; 203 | } 204 | 205 | if ($page<$totalPage){ 206 | $htmlstr.="下一页 | "; 207 | $htmlstr.="最后页 | "; 208 | 209 | } 210 | $htmlstr.="