zoukankan      html  css  js  c++  java
  • sql 错误问题

    message:
    ### Error querying database.  Cause: java.sql.SQLSyntaxErrorException: SELECT command denied to user 'root'@'172.20.6.199' for table 't_player'
    ### The error may exist in com/manage/dao/mapper/IPlayerDataMapper.java (best guess)
    ### The error may involve com.manage.dao.mapper.IPlayerDataMapper.selectPlayerGameData-Inline
    ### The error occurred while setting parameters
    ### SQL: select any_value(server_id) as serverId, any_value(player_id) as userId ,any_value(nickname) as userName,any_value(level) as level,any_value(combat_power) as roleLingLi,any_value(gold) as pantao,any_value(silver) as tongbao from game.t_player where server_id=? and player_id=? or nickname=?;
    ### Cause: java.sql.SQLSyntaxErrorException: SELECT command denied to user 'root'@'172.20.6.199' for table 't_player'
    ; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: SELECT command denied to user 'root'@'172.20.6.199' for table 't_player'

    该错误原因是没有给  game 库授权;所以172.20.6.199 服访  ,报上面错误!

    解决方法:

    1.授权:

    grant all privileges on game.* to 'root'@'172.20.6.199' with grant option;

    2.刷新

    flush privileges;

  • 相关阅读:
    名字空间,L,E, G , B 作用域, 内置电池
    lambda表达式
    表达式与声明的区别。
    jupyter book的使用
    centos7一键安装cacti_1.2.16版本
    docker修改阿里云镜像加速器
    centos单网卡多ip,被动模式
    centos同步时间
    centos7.x制作bond
    centos 6.X制作bond
  • 原文地址:https://www.cnblogs.com/manager222/p/14468998.html
Copyright © 2011-2022 走看看