I do understand that this has been asked before, however, I've had trouble figuring out how to fix this issue for MySQL 8.0.22 (all the suggested fixes do not seem to work as the mysql.proc
table does not exist in MySQL 8.0.22).
I am able to do any CRUD operations with my user but as soon as I run:
mysql -u myuser -ppassword < data.sql
I get
ERROR 1449 (HY000) at line 19: The user specified as a definer ('root'@'%') does not exist
I have checked that I have been granted all permissions. How can I change the DEFINER to 'myuser'@'localhost'
rather than 'root'@'%'
?