In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains the "centos7 source code installation mysql5.7 process", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "centos7 source code installation mysql5.7 process" bar!
Download:
Https://dev.mysql.com/downloads/mysql/ or https://github.com/dollarphper/soft/blob/master/mysql/mysql-boost-5.7.24.tar.gz
Installation dependencies:
Yum-y install cmake gcc gcc-c++ ncurses ncurses-devel libaio-devel openssl openssl-devel
Create a user:
Useradd mysql-s / sbin/nologin-M
Create a folder:
Mkdir-p / usr/local/mysql/data
Decompress:
Tar-xzf mysql-boost-5.7.24.tar.gz
Compile and install:
Cd mysql-5.7.24cmake. -DCMAKE_INSTALL_PREFIX=/usr/local/mysql\-DMYSQL_DATADIR=/usr/local/mysql/data\-DSYSCONFDIR=/etc\-DMYSQL_TCP_PORT=3306\-DWITH_BOOST=./boostmake & & make install
Change the owner to mysql:
Chown-R mysql.mysql / usr/local/mysql
Modify the configuration file:
Vim / etc/my.cnf
[mysqld] server-id=1port=3306basedir=/usr/local/mysqldatadir=/usr/local/mysql/datangram_token_size=2
Initialize:
/ usr/local/mysql/bin/mysqld-initialize-insecure-user=mysql-datadir=/usr/local/mysql/data
Start the service:
/ usr/local/mysql/bin/mysqld_safe-- user=mysql & Thank you for reading, the above is the content of "the process of installing mysql5.7 in centos7 source code". After the study of this article, I believe you have a deeper understanding of the process of installing mysql5.7 in centos7 source code, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.