MySQL changes User Permissions
This entry was posted by admin Monday, 26 then l, 2010
1. "grant all on *. * to root @ '%' identified by 'yourpassword';" -- the password can also be set along with the password.2. "Flush privileges;" -- refresh to
Mysql master-slave and master-slave replication configuration demonstration, mysql master-slave
Experimental System: CentOS 6.6 _ x86_64
Prerequisites: Prepare the compiling environment in advance, and disable both firewall and selinux.
Tutorial
For mysql User management, it is best not to use the root account when connecting to each Database. You need to allocate corresponding users to ensure the security and convenience of mysql database management.I. User creationMethod 1: execute the
User management mysql>use MySQL; view mysql> select Host,user,password from user ; creating mysql> Create user zx_ Root identified by ' xxxxx '; //identified by will use plaintext password encryption as a hash value to store modifications
If you want to give a specific user access from all machines in a given domain (for example, mydomain.com ), you can issue a GRANT statement that uses the '%' wildcard character in the host part of the account name:If you want a specific user to
Mysql user management and permission settings
Command related to mysql user management and permission settings.
User Management
Mysql> use mysql;
View
Mysql> select host, user, password from user;
Create
Mysql> create user zx_root;
Modify
Mysql>
To allow a specific user to access the MySQL server from all computers in a given domain (such as mydomain.com), you can run the GRANT statement with the wildcard "%" in the host part of the account name.
To allow a specific user to access the MySQL
======== password action for root user (change user password)========Just installed MySQL, only one has a root user, password is empty, and can only be logged in the machine!add password xxx123 to root:./bin/mysqladmin-u Root Password xxx123or
MySQL gives user permission commands can be simply summed up as:
Grant permission on database object to user
Example one:Grant normal data users, the right to query, insert, UPDATE, and delete all table data in the database, which means that (all
MySQL clears the database operation: TRUNCATE TABLE tablename;The simple format that MySQL gives to user rights commands can be summarized as: Grant permissions on database objects to usersA grant general data user, the right to query, insert,
User management mysql>use MySQL; view mysql> select Host,user,password from user ; creating mysql> Create user zx_ Root identified by ' xxxxx '; //identified by will use plaintext password encryption as a hash value to store modifications
This example is run in MySQL version 5.0 and above.
The simple format that MySQL gives user permission commands can be summarized as:
Grant permission on database object to user
One, grant ordinary data user, query, insert, UPDATE, delete all
The simple format that MySQL gives user permission commands can be summarized as:
Grant permission on database object to user
One, grant ordinary data user, query, insert, UPDATE, delete all table data in the database right
User management mysql>use MySQL; View mysql> select Host,user,password fromuser;Creating mysql> Create User Zx_rootidentified by ' xxxxx '; Identified by will store plaintext password encryption as a hash valueAfter modifying Mysql>rename user Feng
User management mysql>use MySQL; view mysql> select Host,user,password from user ; creating mysql> Create user zx_ Root identified by ' xxxxx '; //identified by will use plaintext password encryption as a hash value to store modifications
MySQL is one of the most popular database management systems in the world. Starting with the introduction of simple data retrieval, the book gradually delves into complex content, including the use of joins, subqueries, regular expressions, and full-
From:http://www.cnblogs.com/tae44/p/4682810.htmlExperimental system: CentOS 6.6_x86_64Lab Prerequisites: Prepare the build environment in advance, firewall and SELinux are offThe experiment shows that there are 2 hosts in this experiment, such as
For a detailed tutorial on installing Mysql5.7.19 on Centos7 in Linux, centos7mysql5.7.19
1. Download mysql
Web: https://dev.mysql.com/downloads/mysql/
2. Select the source code package and click to download the general version.
You can download
After MySQL is installed, only the following hosts are recognized: localhost and 127.0.0.1. After MySQL is installed, only the following hosts are recognized: localhost and 127.0.0.1, if you want to allow the IP address on your machine to log on
MySQL databases have been applied to many Internet companies. mysql permission management is very important. Properly planning mysql database permissions is very beneficial to the security and use of databases. A good standard and habit will not
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.