Get the App
SLTechnology News&Howtos  ›  Development  › 

The process of installing mysql5.7 with centos7 source code

Shulou Source: shulou.com Published: 2022-06-03 12:40:40 11月15日 Update

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!

Tags: Source code process learning content files that is ideas situations ownership folders articles more users knowledge knowledge points articles follow questions practice push Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Docker MariaDB OPPO Reno Microsoft