从服务器上迁移数据库到本地localhost
执行 函数 时报错,
mysql 1449 : The user specified as a definer ('usertest'@'%') does not exist
经查,是权限问题(其中usertest是服务器上数据库的登录名),解决办法:
授权给 usertest 所有sql 权限
mysql> grant all privileges on *.* to usertest@"%" identified by ".";
Query OK, 0 rows affected (0.00 sec) mysql> flush privileges;Query OK, 0 rows affected (0.00 sec)