mysql Not allowed to return a result set from a trigger

shashadezhu888 shashadezhu888 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
今天在学习mysql时,创建触发器总是不成功报这个错Not allowed to return a result set from a trigger;
比如这样创建 create trigger newproduct after insert on products for each row select 'd'; 把

后面的返回结果去掉,还是报错:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '' at
line 1
有谁知道原因的,帮帮忙
...全文

相关推荐

MYSQL不能从远程连接的一个解决方法(s not allowed to connect to this MySQL server)

如果你想连接你的mysql的时候发生这个错误: 代码如下: ERROR 1130: Host ‘192.168.1.3’ is not allowed to connect to this MySQL server 解决方法: 1。 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,从”localhost”改称”%” mysql -u root -pvmwaremysql>use mysql;mysql>update user set ho

weixin_38657457

MYSQL拒绝访问报错not allowed to connect

mysql报如下错误,截取部分, message from server: “Host ‘****’ is not allowed to connect to this MySQL server 1:在登录mysql服务器 2:执行:GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ WITH GRANT OPTION //赋予任何主机访问数据的权限 3:FLUSH PRIVILEGES //修改生效 这样就可以在其它任何的主机上以root身份登录啦! 您可能感兴趣的文章:mysql登录报错提示:ERROR 104

weixin_38631978

Host 主机名 is not allowed to connect the mysql server

在服务器中安装选择server only 时使用navicat for mysql远程链接报错 Host 主机名 is not allowed to connect the mysql server 原因:没有授权远程访问mysql 解决方法: cmd 中运行mysql -u root -p(如果报mysql 不是内部或外部命令,找到安装mysql对应的bin文件夹运行mysql.exe,如果闪退,在cmd中运行 cd 路径/bin,在运行)  use mysql;   select host from user where user=’root’; 执行update user set

weixin_38599712

"Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法

"Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法

寡人ME

阿里云服务器windows安装mysql远程连接提示Host ‘x.x.x.x’ is not allowed to connect to this MySQL server

1、进入mysql的安装目录,在bin文件中打开CMD 2、输入 mysql -uroot -p 3、然后输入mysql密码 4、选择你使用的数据库,use use mysql 5、让用户‘root ’使用密码‘123456’能够从任何主机远程连接到mysql GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; 6、刷新重启 FLUSH PRIVILEGES 作者:黑白cloud

weixin_38624914
评论 18
收藏 已收藏
分享
返回顶部
shashadezhu888
MySQL 57,062 成员 56,759 内容