Detailed steps to install MySQL 5.6 X64 version under Linux

Detailed steps to install MySQL 5.6 X64 version under Linux

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. Execute the command to decompress the file in the storage directory of the installation package

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

2. Delete the installation package and rename the unzipped 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 group and mysql user

First check whether there is a mysql user group and mysql user

groups mysql

If not, add it;

groupadd mysql
useradd -r -g mysql mysql

4. Enter the mysql directory to change permissions

chown -R mysql:mysql ./

5. Execute the local yum source to install the dependent 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 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 password and log in

./bin/mysqladmin -u root -h localhost.localdomain password 'root'
./bin/mysql -h127.0.0.1 -uroot -proot

The above is the detailed steps for installing MySQL5.6 X64 version under Linux introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Summary of Linux cut command usage
  • Detailed explanation of Linux system input and output management and common functions of vim
  • Linux shell - Example of how to test file system attributes by identification
  • Various judgments of if in linux shell
  • Linux shell pushd, popd and dirs usage explanation
  • How to print various color fonts and backgrounds in the Linux shell console
  • View the dependent libraries of so or executable programs under linux
  • Detailed explanation of system input and output management in Linux
  • Explanation of building graph database neo4j in Linux environment
  • Explanation of installation and configuration of building go environment under linux

<<:  Detailed explanation of firewall rule settings and commands (whitelist settings)

>>:  Detailed explanation of the use of React list bar and shopping cart components

Recommend

How to use the WeChat Mini Program lottery component

It is provided in the form of WeChat components. ...

About debugging CSS cross-browser style bugs

The first thing to do is to pick a good browser. ...

How to automatically number the results of MYSQL query data

Preface In fact, I have never encountered this ki...

Basic notes on html and css (must read for front-end)

When I first came into contact with HTML, I alway...

Overview of the Differences between Linux TTY/PTS

When we type a letter on the keyboard, how is it ...

Independent implementation of nginx container configuration file

Create a container [root@server1 ~]# docker run -...

How to shut down/restart/start nginx

closure service nginx stop systemctl stop nginx s...

Vue implements drag progress bar

This article example shares the specific code of ...

Correct use of Vue function anti-shake and throttling

Preface 1. Debounce: After a high-frequency event...

Usage and description of HTML tag tbody

The tbody element should be used in conjunction wi...

Basic knowledge of website design: newbies please read this

Now many people are joining the ranks of website ...

Fabric.js implements DIY postcard function

This article shares the specific code of fabricjs...

Best way to replace the key in json object

JSON (JavaScript Object Notation, JS Object Notat...