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.
- 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
- Set the password of user mysql. Enter the same password twice as prompted.
1passwd mysql
Parent topic: Configuring the Installation Environment