zoukankan      html  css  js  c++  java
  • Mysql:User does not have access to metadata required to determine stored procedure parameter types.

    学校某网站当时做的时候,找的外面的人做的。虽然做的很好,但是部署起来相当麻烦,而且还没有文档。昨天就出了问题,是图片处理出了问题。我又按照控制台的错误提示,上网查了查,原来是需要安装ImageMagick和jMagick。

    今天又出现了问题,页面上的通知公告没有数据。控制台显示Mysql错误:"User does not have access to metadata required to determine stored procedure parameter types. ...... "。网上说在数据源配置的url里,加上"&noAccessToProcedureBodies=true"就可以了。我试了试,控制台又提示说:"The user specified as a definer('username'@'%') does not exist"。这个用户当时赋予权限时,是username@localhost,改为username@%就好了。

    但是这是好的解决方法吗?把localhost改为%会不会不安全?有没有其他方法?先这样做吧,别影响学生查看通知。

  • 相关阅读:
    poj2104 Kth-Number
    bzoj2120 数颜色
    hdu5145 NPY and girls
    bzoj2734 集合选数
    bzoj3732 NetWork
    bzoj2152 聪聪可可
    hdu2036(多边形面积)
    超大次幂思路
    hdu 2030 统计汉字个数
    Hibernate 配置文件与映射文件 总结
  • 原文地址:https://www.cnblogs.com/yuepeng/p/1915530.html
Copyright © 2011-2022 走看看