![](https://img-blog.csdnimg.cn/20190927151101105.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
数据库相关
数据库相关文章
Mr_张三阿
这个作者很懒,什么都没留下…
展开
-
记一次问题排查:java.sql.SQLException: null, message from server: “Host ‘XXX‘ is not allowed to connect
有个项目的验证码出不来,排查发现日志文件的报错信息如下:这个异常信息说明数据库不允许远程访问。解决方案:登录数据库 mysql -pPassWor选择mysql库,并查看用户信息这里原本的root的host是localhost,所以把localhost改成 % ,最后使用flush privileges刷新,将权限更新操作刷新到内存中。...原创 2021-03-08 12:17:16 · 2634 阅读 · 0 评论 -
sql存储过程的创建与调用
1、简单存储过程的创建和调用//存储过程test1create PROCEDURE test1()begin//开始 select * from cst_customer;//中间要做的操作end//结束//存储过程的调用Call test1()2、创建带参数的存储过程create PROCEDURE test2(IN c_id BIGINT(20))begin select * from cst_customer where cust_id = c_id;endcall tes原创 2020-11-03 20:52:55 · 4887 阅读 · 1 评论