diff --git a/jeecg-boot/db/jeecgboot-mysql-5.7.sql b/jeecg-boot/db/jeecgboot-mysql-5.7.sql index 1fc056af5..0f7d2dfb9 100644 --- a/jeecg-boot/db/jeecgboot-mysql-5.7.sql +++ b/jeecg-boot/db/jeecgboot-mysql-5.7.sql @@ -19,6 +19,9 @@ USE `jeecg-boot`; SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; +-- 加速首次初始化导入:关闭逐条提交与唯一性检查,整体批量提交 +SET autocommit = 0; +SET unique_checks = 0; -- ---------------------------- -- Table structure for aigc_word_template @@ -9896,4 +9899,8 @@ END ;; delimiter ; +-- 统一提交并恢复会话设置 +COMMIT; +SET unique_checks = 1; +SET autocommit = 1; SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file