Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of installing mysql-5.7 in CentOS7.6 system using tar version

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces the CentOS7.6 system to install mysql-5.7 using tar version of the method, the contents of the article are carefully selected and edited by the author, with a certain pertinence, for everyone's reference significance is still relatively great, the following with the author to understand the CentOS7.6 system to install mysql-5.7 using tar version of it.

1. Download 5.7.27, https://downloads.mysql.com/archives/community/

2. Planning program directory, basedir= / opt/mysql57

3. Plan the operation directory, datadir = / opt/mysql/data tmpdir = / opt/mysql/tmp tmpdir = / opt/data/tmp log_error = / opt/mysql/logs/error.log

4. Create users and groups, groupadd mysql useradd-g mysql mysql-s / sbin/nologin

5. Initialize database,. / mysqld-- defaults-file=/opt/mysql57/my.cnf-- initialize

6. Check the root password, tail-f-n500 / opt/mysql/logs/error.log

7. Configure environment variables, vim / etc/profile export PATH=$PATH:/opt/mysql57/bin source / etc/profile

8. Start the mysql service, / opt/mysql57/bin/mysqld_safe-- defaults-file=/opt/mysql57/my.cnf &

9. Log in to mysql, mysql-uroot-p-S / opt/mysql/mysql.sock

10. Modify the root password, set password=password ('password')

11. Allow remote login, GRANT ALL PRIVILEGES ON. TO 'root'@'%' IDENTIFIED BY' 123456 'WITH GRANT OPTION

12. Join the system service

After reading the above about CentOS7.6 system using tar version of the installation of mysql-5.7, many readers must have some understanding, if you need to get more industry knowledge and information, you can continue to follow our industry information column.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report