描述:服务器数据库备份到本地数据库。运行发现报错如下:The user specified as a definer ('root'@'%') does not exist。
解决办法:在mysql脚本加上一句,再运行
如下:
grant all privileges on *.* to 'root'@'%' identified by ".";
flush privileges;
描述:服务器数据库备份到本地数据库。运行发现报错如下:The user specified as a definer ('root'@'%') does not exist。
解决办法:在mysql脚本加上一句,再运行
如下:
grant all privileges on *.* to 'root'@'%' identified by ".";
flush privileges;