In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-12-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Download mysql
Mysql official website address: https://dev.mysql.com/downloads/mysql/5.6.html#downloads
The version I choose is:
MySQL Community Server 5.6.41
Mysql-5.6.41-linux-glibc2.12-x86_64.tar.gz in the Linux-Generic version that Centos6.5 can choose
# Note: although Community is a free version, you need to register and log in to your Oracle account before you can download it.
2. Decompression
# decompression
Tar-zxvf mysql-5.6.41-linux-glibc2.12-x86_64.tar.gz
# copy the extracted mysql directory (for example, the directory I created here is "/ mysql")
Cp-r mysql-5.6.41-linux-glibc2.12-x86_64 / mysql
3. Add user groups and users
# create mysql user groups and users
Groupadd mysql
Useradd-g mysql mysql
4. Installation
# modify mysql directory permissions
Chown-R mysql:mysql. /
# after entering the mysql directory, execute mysql_install_db in scripts
. / scripts/mysql_install_db-user=mysql-datadir=/mysql/data
# where-datadir parameter is the mysql data location. I have a data folder here after decompression. If you need to set it in another place, be sure to establish a folder before execution.
# copy service startup files to init.d to facilitate service startup
Cp support-files/mysql.server / etc/init.d/mysqld
# change permissions
Chmod 755 / etc/init.d/mysqld
# copy the basic configuration file to the etc directory
Cp support-files/my-default.cnf / etc/my.cnf
# modify startup script
Vi / etc/init.d/mysqld
# find and modify items:
Basedir=/mysql/
Datadir=/mysql/data
# start the service
Service mysqld start
# if it is correct, it should start normally.
# Test execution mysql file under mysql/bin
. / mysql/bin/mysql-uroot
In addition:
During the installation, I downloaded three versions of mysql 5.56.5.7. The installation methods of the three versions are different. I feel that it is relatively easy to click other versions, either cmake is required or there is no configuration file template. It is easy to install with mysql_install_db and my-default.cnf files.
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.