MySQL User management

Source: Internet
Author: User

The operation of the database user is done in the MySQL library, so you need to go to the MySQL library to see the users and addresses in the database.



Here are two ways to create a user's password at the same time, the difference is the second we can directly to the user rights


Change the name to the user


Delete User


Change Password for user

In order to solve the problem of forgetting the user password here we can resolve, here we use the mysql5.7 version and other versions may be different methods

Shut down the database service after exiting the database


Enter configuration file


Add this statement and restart the database


Log in to the database directly using MySQL


Modify User Login Password


Then exit to delete the previous statement that was added in the configuration file, restart the database and log in with the new password.


Set permissions for a user


To remove permissions from a user

MySQL User management

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.