The role of the definition in MySQL (definer)

Source: Internet
Author: User

Phenomenon: After the database migration, the call function error, indicating that Definer does not exist.

Looked at, found that functions and stored procedures and the like, the call itself is not the concept of permission.

Definer This value does not limit the permissions that functions and stored procedures are called, but it restricts the access of functions and stored procedures to the database.

Functions and stored procedures gain access to the database for the Definer user when accessing the database.

Because after the relocation of the library, the Definer value has not been modified, the original database of the user in the new library does not exist, so error, modify the Definer value can be

The role of the definition in MySQL (definer)

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.