一、问题现象
本地root可以创建存储过程,但是远程登录root不可以创建,报1044错误,这是权限问题
二、解决方法
grant all privilegeson *.* to root@'%' identified by 'root' with grant option;
grant all privilegeson *.* to root@'10.20.14.139' identified by 'root';
flush privileges;
本文介绍了解决MySQL中远程登录root用户无法创建存储过程的问题,通过授予root用户远程连接权限并刷新权限来解决1044错误。
一、问题现象
本地root可以创建存储过程,但是远程登录root不可以创建,报1044错误,这是权限问题
二、解决方法
grant all privilegeson *.* to root@'%' identified by 'root' with grant option;
grant all privilegeson *.* to root@'10.20.14.139' identified by 'root';
flush privileges;
256
1144
1386
1553

被折叠的 条评论
为什么被折叠?
