1.用mysql5.7备份的数据库文件,用mysql8还原之后涉及到函数使用的时候报错问题
解决办法:
set GLOBAL log_bin_trust_function_creators = 1;
2.mysql8.0版本的这个错误:The user specified as a definer (‘root’@’%’) does not exist用下面这个sql执行报错。
grant all privileges on *.* to root@'%' identified by '.';
flush privileges;
这是应为8.0版本已经修改了语法,gant只能用于已经存在的账号
解决办法:
create user 'root'@'%' identified by '.';
grant all privileges on *.* to 'root'@'%';
flush privileges;