Move and decompress the MySQL tar package under LINUX and create a mysql user
1. Move the MySQL tar package to the upper-level directory of /usr/local/src , and decompress
# tar -zxvf msyql-5.5.38-linux2.6-i686.tar.gz
2. After decompressing
## 3. Create a soft link for this decompressed directory (shortcut: mainly for convenience)
#ln -sv mysql-5.5.38-linux2.6-i686 mysql
4. Enter the mysql directory
Create a mysql user
1. Create A mysql user to run the MySQL software (any software under Linux requires a user identity)
# useradd mysql
2. Change the owner and group of the mysql directory and its subdirectories and files to mysql and mysql group
# chown -R mysql.mysql . (-R 递归操作)
3. Change back
The above is the detailed content of Moving and decompressing the MySQL tar package and creating a mysql user. For more information, please follow other related articles on the PHP Chinese website!