mysql
文章平均质量分 54
着力
这个作者很懒,什么都没留下…
展开
-
java.sql.SQLException: Access denied for user ‘root’@‘localhost’ (using password: YES)错误原因
java.sql.SQLException: Access denied for user ‘root’@‘localhost’ (using password: YES)错误原因 解决方案:用户对应的密码不正确检查输入的用户名 密码 与数据库用户名 密码 是否一致这里密码不正确有几种常见情况:(1)连接池多个空格(2)mysql5.7后mysql系统表user里密码对应的字段不是password是authentication_string字段命令行依次输入:mysqluse mysq原创 2022-01-06 11:18:52 · 6289 阅读 · 0 评论 -
Not allowed to return a result set from a trigger触发器中不允许返回结果集
情况描述:按《mysql必知必会》书本代码输入CREATE TRIGGER newproduct AFTER INSERT ON productsFOR EACH ROW SELECT ‘Product added’出现错误Not allowed to return a result set from a trigger查找原因是:MYSQL5以后,不允许触发器返回任何结果,因此使用into @变量名,将结果赋值到变量中,用select调用即可修改为CREATE TRIGGE转载 2021-09-14 16:53:07 · 893 阅读 · 0 评论