- 数据库脚本优化 - 新增01_create_user.sql创建fundsp用户 - 新增02_grant_user.sql授权脚本 - 新增fund_exp_init.sql、fund_receipt_init.sql - 修复SQL脚本与实体类一致性 - 密码更新为fundSP@123 - 前端部署脚本 - 新增build-frontend.sh前端构建脚本 - 新增deploy-frontend-nginx.sh Nginx部署脚本 - 打包输出到deploy目录 - 租户ID支持 - fund-admin/fund-mobile支持query参数读取tid - 新增tenant.ts store管理租户状态 - 请求拦截器添加X-Tenant-Id header - 启动脚本修复 - 修复INSTANCE_NAME变量替换问题 - 更新所有service.properties配置 - 配置更新 - 更新所有服务数据库密码 - 更新docker-compose.yml配置
35 lines
1.3 KiB
SQL
35 lines
1.3 KiB
SQL
-- =============================================
|
|
-- 资金服务平台 - 数据库用户授权脚本
|
|
-- User: fundsp
|
|
-- Version: 1.0
|
|
-- Created: 2026-02-22
|
|
-- 注意:此脚本必须在所有数据库创建后执行
|
|
-- =============================================
|
|
|
|
-- 授予所有数据库权限
|
|
GRANT ALL PRIVILEGES ON fund_sys.* TO 'fundsp'@'%';
|
|
GRANT ALL PRIVILEGES ON fund_sys.* TO 'fundsp'@'localhost';
|
|
GRANT ALL PRIVILEGES ON fund_cust.* TO 'fundsp'@'%';
|
|
GRANT ALL PRIVILEGES ON fund_cust.* TO 'fundsp'@'localhost';
|
|
GRANT ALL PRIVILEGES ON fund_proj.* TO 'fundsp'@'%';
|
|
GRANT ALL PRIVILEGES ON fund_proj.* TO 'fundsp'@'localhost';
|
|
GRANT ALL PRIVILEGES ON fund_req.* TO 'fundsp'@'%';
|
|
GRANT ALL PRIVILEGES ON fund_req.* TO 'fundsp'@'localhost';
|
|
GRANT ALL PRIVILEGES ON fund_exp.* TO 'fundsp'@'%';
|
|
GRANT ALL PRIVILEGES ON fund_exp.* TO 'fundsp'@'localhost';
|
|
GRANT ALL PRIVILEGES ON fund_receipt.* TO 'fundsp'@'%';
|
|
GRANT ALL PRIVILEGES ON fund_receipt.* TO 'fundsp'@'localhost';
|
|
GRANT ALL PRIVILEGES ON fund_file.* TO 'fundsp'@'%';
|
|
GRANT ALL PRIVILEGES ON fund_file.* TO 'fundsp'@'localhost';
|
|
|
|
-- 刷新权限
|
|
FLUSH PRIVILEGES;
|
|
|
|
-- 显示授权结果
|
|
SHOW GRANTS FOR 'fundsp'@'%';
|
|
SHOW GRANTS FOR 'fundsp'@'localhost';
|
|
|
|
-- =============================================
|
|
-- 脚本执行完成
|
|
-- =============================================
|