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

How to install MySQL5.6 X64 version on LInux system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

How do I install MySQL5.6 X64 on a LInux system? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

Environment:

1.CentOS6.5 X64

2.mysql-5.6.34-linux-glibc2.5-x86_64.tar.gz

3. Download address: http://dev.mysql.com/downloads/mysql/

Installation steps

1. Then execute the command to extract the file under the directory where the installation package is stored.

Tar-zxvf mysql-5.6.34-linux-glibc2.5-x86_64.tar.gz-C / opt/

2. Delete the installation package and rename the decompressed file

Rm-rf mysql-5.6.34-linux-glibc2.5-x86_64.tar.gz

Mv mysql-5.6.34-linux-glibc2.5-x86_64/ mysql

3. Add mysql user groups and mysql users

First check if there are mysql user groups and mysql users

Groups mysql

If not, add

Groupadd mysql

Useradd-r-g mysql mysql

4. Change permissions by entering the mysql directory

Chown-R mysql:mysql. /

5. Execute the local yum source installation dependency package

Yum install-y perl perl-devel libaio

6. Execute the installation script

. / scripts/mysql_install_db-- user=mysql

After installation, change the current directory owner to root user, and change the data directory owner to mysql

Chown-R root:root. /

Chown-R mysql:mysql data

7. Modify mysql/support-files/mysql.server

8. Start mysql

. / support-files/mysql.server start

9. Change your password and log in

. / bin/mysqladmin-u root-h localhost.localdomain password 'root'

. / bin/mysql-h227.0.0.1-uroot-proot

This is the answer to the question about how to install the MySQL5.6 X64 version in the LInux system. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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

Database

Wechat

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

12
Report