├── images ├── 下断点.png ├── 悬浮提示.png ├── 搜索.png ├── 更新.png ├── 清空.png ├── 数据库连接失败.png └── 数据库连接成功.png ├── .gitignore ├── src └── main │ └── java │ └── com │ ├── ResultTask.java │ ├── MainApp.java │ ├── main.fxml │ ├── Util.java │ └── MainController.java ├── README.md └── pom.xml /images/下断点.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fupinglee/MySQLMonitor/HEAD/images/下断点.png -------------------------------------------------------------------------------- /images/悬浮提示.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fupinglee/MySQLMonitor/HEAD/images/悬浮提示.png -------------------------------------------------------------------------------- /images/搜索.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fupinglee/MySQLMonitor/HEAD/images/搜索.png -------------------------------------------------------------------------------- /images/更新.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fupinglee/MySQLMonitor/HEAD/images/更新.png -------------------------------------------------------------------------------- /images/清空.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fupinglee/MySQLMonitor/HEAD/images/清空.png -------------------------------------------------------------------------------- /images/数据库连接失败.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fupinglee/MySQLMonitor/HEAD/images/数据库连接失败.png -------------------------------------------------------------------------------- /images/数据库连接成功.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fupinglee/MySQLMonitor/HEAD/images/数据库连接成功.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | config.properties 22 | .idea 23 | src/test 24 | .csv 25 | target/ 26 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 27 | hs_err_pid* -------------------------------------------------------------------------------- /src/main/java/com/ResultTask.java: -------------------------------------------------------------------------------- 1 | package com; 2 | 3 | public class ResultTask { 4 | 5 | private int index; 6 | private String date; 7 | private String sql; 8 | 9 | public int getIndex() { 10 | return index; 11 | } 12 | 13 | public void setIndex(int index) { 14 | this.index = index; 15 | } 16 | 17 | public String getDate() { 18 | return date; 19 | } 20 | 21 | public void setDate(String date) { 22 | this.date = date; 23 | } 24 | 25 | public String getSql() { 26 | return sql; 27 | } 28 | 29 | public void setSql(String sql) { 30 | this.sql = sql; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/MainApp.java: -------------------------------------------------------------------------------- 1 | package com; 2 | 3 | import javafx.application.Application; 4 | import javafx.fxml.FXMLLoader; 5 | import javafx.scene.Scene; 6 | import javafx.scene.layout.AnchorPane; 7 | import javafx.stage.Stage; 8 | 9 | public class MainApp extends Application { 10 | 11 | public void start(Stage primaryStage) throws Exception { 12 | 13 | AnchorPane rootLayout = FXMLLoader.load(getClass().getResource("main.fxml")); 14 | Scene scene = new Scene(rootLayout,1000,600); 15 | 16 | primaryStage.setScene(scene); 17 | primaryStage.setTitle("MySQL监控工具"); 18 | primaryStage.setResizable(false); 19 | // primaryStage.getIcons().add(); 20 | 21 | primaryStage.setOnCloseRequest(event -> System.exit(0)); 22 | primaryStage.show(); 23 | primaryStage.centerOnScreen(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MySQLMonitor 2 | MySQL实时监控工具(代码审计、黑盒测试辅助工具) 3 | 4 | ## 使用 5 | 1.自行打包使用 6 | 7 | ``` 8 | git clone https://github.com/fupinglee/MySQLMonitor 9 | cd MySQLMonitor 10 | mvn clean package -DskipTests=true 11 | ``` 12 | 打开target下的jar文件即可执行 13 | 14 | 2.直接下载使用 15 | 16 | https://github.com/fupinglee/MySQLMonitor/releases 17 | ## 使用说明 18 | 19 | ### 数据库连接 20 | 数据库连接失败,下断、更新、清空等按钮不可用 21 | ![数据库连接失败](images/数据库连接失败.png) 22 | 23 | 数据库连接成功,下断按钮可以使用,更新、清空等按钮不可用 24 | ![数据库连接成功](images/数据库连接成功.png) 25 | 26 | 27 | ### 下断 28 | 下断点后可以更新和清空 29 | ![下断点](images/下断点.png) 30 | 31 | ### 更新 32 | 点击更新查看执行的SQL语句 33 | ![查看执行的sql语句](images/更新.png) 34 | 35 | ### 搜索 36 | 在搜索框里输入内容可以对所需要的sql语句进行过滤 37 | ![搜索](images/搜索.png) 38 | 39 | ### 清空 40 | 清空按钮清空表格里面的内容 41 | ![清空](images/清空.png) 42 | 43 | ### 其他 44 | 单击选中一行后,鼠标移动可以悬浮显示该行的sql语句 45 | ![其他](images/悬浮提示.png) 46 | >双击可以复制sql语句到剪贴板上 47 | -------------------------------------------------------------------------------- /src/main/java/com/main.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |