mysql database to create user and authorization

  Create a user and password CREATE USER 'username' @ '%' IDENTIFIED BY 'password';

  create several databases such as db1, db2

  users authorized to access the specified database
  grant all privileges on the database name * to 'username' @ '%. ';

  change the current user password
  set password for the account = password (' target password ');

  delete user
  drop user username @'% ';

 

Reference Source: https://blog.csdn.net/qq_39331713/article/details/81747188

                  https://www.cnblogs.com/wuyunblog/p/9109269.html

                  https://www.cnblogs.com/xjnotxj/p/6916509.html

Guess you like

Origin www.cnblogs.com/ljy-skill/p/10937736.html