我要评分
获取效率
正确性
完整性
易理解

Creating a User Group and a User

In a server environment, independent users are assigned to each process to implement permission isolation for security purposes. The user groups and users are created for the OS, not for the database.

  1. Create a user group and a user. Both the user group name and user name are mysql.
    1
    2
    groupadd mysql
    useradd -g mysql mysql
    

    To delete the user group and user, run the following command:

    1
    2
    id mysql
    userdel -r mysql
    
  2. Set the password of user mysql. Enter the same password twice as prompted.
    1
    passwd mysql