Incorrect solution for stored procedures and functions in MySQL Import database

Source: Internet
Author: User
Tags import database mysql import mysql import database

Incorrect solution for stored procedures and functions in MySQL Import database

Call a remote copy of the local MySQL storage process

Error: [ERR] 1449-the user specified as a definer (' repl ' @ ' 192.168.1.% ') does not exist

Solution Ideas:

With the "email protected" error that you have seen before, assign all permissions to root:

Grant all privileges on * * to [e-mail protected] "%" identified by ".";

Flush privileges;

Invalid discovery.

cause : The database may not have this user:

Select User,host from Mysql.user;

Result: The user was not found, but the error occurred.

Workaround:  

SELECT Definer,type from Mysql.proc GROUP by Definer,type;

UPDATE mysql.proc SET definer= ' [email protected] ' WHERE definer = ' [email protected]% ';

Restart the database, OK



This article is from the "7240173" blog, please be sure to keep this source http://wwdyl.blog.51cto.com/7240173/1639788

Incorrect solution for stored procedures and functions in MySQL Import database

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.