Database permission problems

Source: Internet
Author: User
The database permission problem is that there is a formal website on the mysql database server. now I want to get a test website because the database is too large to be imported, so I copied a copy of the database on the server and changed the database name to copy the original website and changed the website configuration file, the database user name and password have not changed. now you can view the test website and find that you can query the database. However, if you update the database, you will be prompted that you do not have the update permission.


Reply to discussion (solution)

Set permissions if you do not have permissions

Set permissions if you do not have permissions

The copied database username and password use a general account. you should not have the update permission to add, delete, modify, and query the original database.

Since it is a test website, the permission is set to a maximum of 777

After modifying user information, submit the following message: update command for database username @ localhost denied

The reason is not the total account. the database is accessed anonymously after being copied.

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.