mysql "The user specified as a definer ("@'%') does not exist" problem solved

 
After checking on the Internet, it is prompted that the user permissions are not enough, such as: http://blog.handone.com/index.php/archives/137 .
 
However, all users in our production environment are ROOT, so there should be no user permission problems. Later I stumbled across that the store's definer was "test@%", not "root@%".
 
Later, after confirming with my colleagues, I found that when he used Navicat to transfer two new tables, the storage was also transferred and overwritten, but the new user of our storage in the test environment is the "test" user, so it is no problem to manually delete these storages and rebuild them manually. .
 
Therefore, make a record and remind yourself not to use the Navicat transfer function for storage.
 
After checking on the Internet, it is prompted that the user permissions are not enough, such as: http://blog.handone.com/index.php/archives/137 .
 
However, all users in our production environment are ROOT, so there should be no user permission problems. Later I stumbled across that the store's definer was "test@%", not "root@%".
 
Later, after confirming with my colleagues, I found that when he used Navicat to transfer two new tables, the storage was also transferred and overwritten, but the new user of our storage in the test environment is the "test" user, so it is no problem to manually delete these storages and rebuild them manually. .
 
Therefore, make a record and remind yourself not to use the Navicat transfer function for storage.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325493922&siteId=291194637