MySQL Account management
These days have been the muddle, toss MYSQLINNODB data engine hot backup, toss for a long time, the results did not toss out, the heart has a lot of frustration. Then in the master replication to slave configuration
Mysql Account AccountName -- username and hostname mysql Account Name
The following is an explanation of mysql5.6 Reference Manual:
MySQL account names consist of a user name and a host name. This enables creation of accounts for users with the
How should I change the MySQL account password? This may be a problem that many people have encountered. The following describes how to change the password of your MySQL account and how to change the password.
Use mysqlUpdate user set Password =
[MySQL] account and permission management bitsCN.com
[MySQL] account and permission management
MySQL initial account management
The initial MySQL account is as follows:
[sql] [root@lx16 ~]# mysql -u root mysql> select host,user,password from
Grant MySQL account access to specified database under Linux systemRequirements: 1, create a database in MySQL mydata2, new MySQL account admin password 1234563, give the account admin to the database MyData have full operation rights ===============
Mysql account management bitsCN.com
Mysql account management
1. create an account
Shell code
Create user 'jeffre' @ 'localhost' identified by 'My pass ';
2. delete an account (deleting an account also deletes all its permissions)
Shell code
To secure the initial MySQL account, specify a password for the anonymous account or delete the anonymous account bitsCN.com
To secure the initial MySQL account, specify a password for the anonymous account or delete the anonymous account.
To
In linux, create a mysql account and grant permissions. in linux, create an account that only has read permission on a table in a database. grant & nbsp; select & nbsp; on & nbsp; testdb. test & nbsp; to & nbsp; common_user @ '%' & nbsp; // assign &
In linux, create a mysql account and grant permissions. in linux, create an account that only has read permission on a table in a database. grantselectontestdb. testtocommon_user @ '%' // grant the common_user permission to create a new mysql
Enable the MYSQL account remote login function bitsCN.com
Xiaoz
For personal study notes, please point out if you have any mistakes. thank you.
I haven't taken any notes for a long time. I'm depressed, and my learning status is not as good as before.
Knowledge Point 16: MySQL account permissions are given (33)I. Introduction to MySQL privilegesThe simple understanding of MySQL permissions is that MySQL allows you to do what you do best, and you can't cross the border . For example, if you are
Create an account and obtain permissions without knowing the MySQL account password
1,Log on to MySQL with the root account
Mysql-h10.0.0.1-uroot-p123
2,You do not know the account.
A)Run mysqld-NT -- skip-grant-tables in one cmd.And then
3 host WEB01,WEB02,WEB03, the master from, and one of them is not even on the Masters.In the host WEB02 MySQL database to build an account (rep), Web01 Login failed, WEB03 can log on normally.Create an account grant replication slave on * * to
First, current date, current user, current database versionMysql> SelectCurdate (), version (),Database(),User();+------------+------------+------------+----------------+|Curdate ()|Version ()| Database()| User()|+------------+------------+----------
One user to add
Add a user by using the Insert method
Insert into Mysql.user (Host,user,password) VALUES ("localhost", "sa", Password ("admin123"))An exception occurred:Dbcexception:sql Error [1364] [HY000]: Field ' ssl_cipher ' doesn '
Severe concurrent access to the database is caused by a large number of clicks during certain application periods due to program bugs or system attacks.
To set the restriction syntax:GRANT ... with option
Where option can be a few
MySQL requires that you not only specify who (user_name) can be connected, but also specify where to connect (host_name), that is, even if the two accounts have the same name, if
MySQL requires that you not only specify who (user_name) can be
For initial MySQL account security, you can use set password or UPDATE to specify a PASSWORD for an anonymous account or delete an anonymous account. In either case, you must use the PASSWORD () function to encrypt the PASSWORD. Use PASSWORD in
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.