Create superuser _ mysql in MySQL

Source: Internet
Author: User
Create a super user bitsCN.com in mysql
After mysql is installed, a super user created in MySql has only one ROOT user with super management permissions, and the ROOT limit can only be used on the local database. what should we do if we want to remotely manage MySql? In fact, we need to add a super user with super management permissions and remote access. we will add a super permission management User admin as an example. You can add new users by issuing the GRANT statement: first log ON to MySql with the ROOT user ON the database machine, and then: mysql> grant all privileges on *. * TO [email = admin @ localhost] admin @ localhost [/email] identified by 'something' with grant option; mysql> grant all privileges on *. * TO [email = admin @ "%] admin @" % [/email] "identified by 'something' with grant option; in the first sentence, an admin user is added to authorize access through a local machine (localhost) with the password "something ". The second sentence is to authorize the admin user to initiate access from any other host (wildcard % ). BitsCN.com

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.