Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
M
mfang2.0
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 92
    • Issues 92
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • 魔方Web开发组
  • mfang2.0
  • Issues
  • #402

Closed
Open
Opened Jul 19, 2022 by 宋永裕@songyongyu💬
  • Report abuse
  • New issue
Report abuse New issue

[Bug] 数据库从阿里云传输到内网可能会出现数据库访问异常

现象

内网魔方新建项目-导入例程页面,Java端报错

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: 
Error: Method queryTotal execution error of sql : 

分析定位

分析到是在执行mapper getTemplates 时发生的问题,通过执行mybatis mapper里的脚本,DBeaver 报错,发现是调用IS_SET_INCLUDED函数时报错;

execute command denied to user 'fmshmicroservice'@'%' for routine 'fmsh_microservice_mfang.IS_SET_INCLUDED'

解决方法

在执行下列语句后,访问正常

GRANT ALL PRIVILEGES ON *.* TO 'fmshmicroservice'@'%';
FLUSH PRIVILEGES;
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
2
Labels
已跟进 测试中
Assign labels
  • View project labels
Reference: fmsh-web-develop/mfang2.0#402