Home > Database > Mysql Tutorial > body text

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

黄舟
Release: 2017-08-11 15:13:30
Original
1255 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!