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

Creating a User Group and User

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

The user created in this procedure will be used in Running MySQL.

  1. Create a user group mysql.
    1
    groupadd mysql
    
  2. Create a user mysql.
    1
    useradd -g mysql mysql
    
  3. Set the password of the user mysql. Enter the same password twice as prompted.
    1
    passwd mysql