Home  >  Article  >  Database  >  Moving and decompressing the MySQL tar package and creating a mysql user

Moving and decompressing the MySQL tar package and creating a mysql user

黄舟
黄舟Original
2017-08-11 15:13:301303browse

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

Moving and decompressing the MySQL tar package and creating a mysql user

2. After decompressing

Moving and decompressing the MySQL tar package and creating a mysql user

## 3. Create a soft link for this decompressed directory (shortcut: mainly for convenience)

#ln -sv mysql-5.5.38-linux2.6-i686 mysql

Moving and decompressing the MySQL tar package and creating a mysql user

4. Enter the mysql directory

Moving and decompressing the MySQL tar package and creating a mysql user

Create a mysql user

1. Create A mysql user to run the MySQL software (any software under Linux requires a user identity)

# useradd mysql

Moving and decompressing the MySQL tar package and creating a mysql user

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 递归操作)

Moving and decompressing the MySQL tar package and creating a mysql user

3. Change back

Moving and decompressing the MySQL tar package and creating a mysql user


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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn