Mysqldump:couldn ' t execute ' Show table status ' workaround

Source: Internet
Author: User

execution: [[email protected] lamp]# mysqldump-f-r-e--master-data=2-p-A--single-transactionappears on consolemysqldump:couldn ' t execute ' Show table status like ' V\_bid\_bad ': "SELECT command denied to user" @ '% ' for column ' I d ' in table ' T_bids ' (1143)A select * from V_bid_bad appears in Workbench :10:29:20 SELECT * from Sp.v_bid_bad LIMIT 0, 50000 Error code:1449. The user specified as a definer (' root ' @ '% ') does not exist 0.000 secis a permission issueThere are two ways to modify this:1. Add [email protected]% account and PermissionsGrant All on * * to ' root ' @ '% ' identified by ' 00000 '; 2. Modify the view's DefinerIt is generally used in this machine:Select Concat ("Alter definer= ' root ' @ ' localhost ' SQL SECURITY definer View", Table_schema, ".", TABLE_NAME, "as", VIEW _definition, ";") From INFORMATION_SCHEMA. Views Wheretable_schema= ' SP '; executes the output statement again. successfully resolved this issue.

Mysqldump:couldn ' t execute ' Show table status ' workaround

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.