Build MySQL 5.7.4 in RedHat

Install Cmake

1. download cmake source code at  http://www.cmake.org/files/v3.1/cmake-3.1.0.tar.gz

2. ./configure &  make &  make install

Build MySQL source code download at MySQL http://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.4-m14.tar.gz

1. cmake -DCMAKE_INSTALL_PREFIX=/root/wyg/mysql/mysql-5.7.4-m14/install_dir -DMYSQL_DATADIR=/root/wyg/mysql/mysql-5.7.4-m14/install_dir/data -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_TCP_PORT=3306 -DMYSQL_UNIX_ADDR=/root/wyg.mysql/mysql-5.7.4-m14/install_dir/mysql.sock -DWITH_INNOBASE_STORAGE_ENGINE=1

2. make

3  make install

时间: 2024-10-11 13:17:41

Build MySQL 5.7.4 in RedHat的相关文章

Build MySQL Cluster Environment

This post documents how build MySQL cluster environment with 4 machines. Their IP addresses and roles are listed below. Host #1: 192.168.1.100, management node Host #2: 192.168.1.101, SQL node Host #3: 192.168.1.102, data node #1 Host #4: 192.168.1.1

How to Build MySQL from Source Code on Windows & compile MySQL on win7+vs2010

Not counting obtaining the source code, and once you have the prerequisites satisfied, [Windows] users can build from source code in 5 easy steps. Prerequisites – Install & ensure they are in the $PATH: CMake <-- Download C++ compiler <-- Visual

Build MySQL Replication Environment

The post demonstrates how to build replication environment with 2 new MySQL servers which are running on 64-bit Ubuntu 14.04 LTS machines. Master: {MySQL: 5.7.5, IP Address: 192.168.0.100} Slave  : {MySQL: 5.7.5, IP Address: 192.168.0.101} Configure

mysql安装和基本配置-redhat

1.redhat yum替换参考 url:http://blog.csdn.net/zcyhappy1314/article/details/17580943 2.yum卸载mysql rpm -qa|grep -i mysql yum remove  mysql mysql-server mysql-libs; 或rpm -ev MySQL-server-4.0.14-0 MySQL-client-4.0.14-0 卸载后/var/lib/mysql中的数据及/etc/my.cnf不会删除,如

基于官方镜像MySQL做自定义业务扩充镜像

首先从https://hub.docker.com/_/mysql/拉取官方镜像,如果速度缓慢,建议添加国内加速 [[email protected] ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE mysql latest 5709795eeffa 4 days ago 408MB 查看如何使用mysql镜像启动一个container: docker run --name some-mysql -e MYSQL_ROOT_PASSW

centos 7 + mysql 5.7.13 重置数据库的root密码

centos 7 + mysql 5.7.13重置root密码步骤: # vi /etc/my.cnf  # [mysqld]下skip-grant-tables 内容前添加# # mysql -uroot -p 连续输入enter 进入 # use mysql # update mysql.user set authentication_string=PASSWORD('redhat') where User='root'; # grant all privileges on *.*  to

mysql 5.7安装脚本

1 [[email protected] ~]# cat mysql_auto_install.sh 2 ###### 二进制自动安装数据库脚本root密码MANAGER将脚本和安装包放在/root目录即可############### 3 ######数据库目录/usr/local/mysql############ 4 ######数据目录/data/mysql############ 5 ######慢日志目录/data/slowlog############ 6 ######端口号默认3

mysql 的二进制安装

二进制安装 其实就是已经编译好的mysql,做了个压缩包,下载下来,解压缩,简单配置之后,就能使用,'安装'速度快,往往用于mysql的快速部署. 添加 mysql 用户: [[email protected] ~]# groupadd mysql [[email protected] ~]# useradd -s /sbin/nologin -g mysql -M mysql -s /sbin/nologin 表示禁止该用户登入系统,提高安全性 -g mysql 指定mysql 用户属于mys

MySQL数据库学习

一)Centos下安装MySQL数据库 A. 源码编译安装 MySQL数据库源码下载地址: https://dev.mysql.com/downloads/mysql/ MySQL数据库的编译安装过程,可参考如下地址: https://dev.mysql.com/doc/refman/5.7/en/installing-source-distribution.html 注意: 安装MySQL数据库有很多工具及包的依赖,安装所有需要的工具和包,参考下列命令: yum -y install gcc