mysql security

mysql Rights Management

mysql permission tables

 

grant all on *. * ... account information and authorization information are recorded in mysql.user, because it is a global authorization
grant all on bbs. * ... account information stored in mysql.user, the right information is recorded in mysql.db because it is a database-level authorization

Authorize

mysql recovery permissions

 

mysql user management

mysql client login

Log on by default only if the remote requires authorization

Create a user

Create a user is actually in the corresponding table mysql database insert data only, if the user only way to create login rights no operating authority.

flush privileges; # create user command record is written to disk in the table, execute this command will take effect immediately loaded into memory.

 delete users

Recommended method

mysql password management

change the password

Lost root password

Note: 1, after setting a password but also to skip the password configured comments reboot again.

   Before 2,5.7.5 update statement in the password field password, 5.7.6 after the field is authentication_string

 

Guess you like

Origin www.cnblogs.com/fanggege/p/11220361.html