首页 > TAG信息列表 > pgrant

Mysql:The user specified as a definer (‘root‘@‘%‘) does not exist 的解决办法

Mysql5+处理办法: mysql -hlocalhost -uroot -pgrant all privileges on *.* to root@"%" identified by ".";flush privileges;Mysql8+处理办法: mysql -hlocalhost -uroot -pgrant all privileges on *.* to 'root'@'%' with grant option;