Project Add server on the database is OK, add local database problem (the user specified as a definer (' root ' @ '% ') does not exist)

Source: Internet
Author: User

1. The MySQL database on the project connection server is OK, and there is a problem connecting to the local database:

The user specified as a definer (' root ' @ '% ') does not exist

2.

Permissions issue, Grant root all SQL permissions

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

Query OK, 0 rows Affected (0.00 sec)
mysql> flush Privileges;
Query OK, 0 rows Affected (0.00 sec)

The execution of these two statements is to go to the mysql5.5 installation directory, locate the bin, then enter Mysql-u root-p in the cmd window, enter the password, and go to the MySQL command to execute.

The two statements can also be executed directly in the MySQL foreground tool, just as effectively.

Project Add server on the database is OK, add local database problem (the user specified as a definer (' root ' @ '% ') does not exist)

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.