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

error:

150102 07:38:50 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2015-01-02T15:38:50.816712Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-01-02T15:38:50.816831Z 0 [Note] /root/wyg/mysql/mysql-5.7.4-m14/install_dir/bin/mysqld (mysqld 5.7.4-m14) starting as process 24795 ...
2015-01-02T15:38:50.820220Z 0 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
2015-01-02T15:38:50.820709Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2015-01-02T15:38:50.820841Z 0 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-01-02T15:38:50.820851Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-01-02T15:38:50.820855Z 0 [Note] InnoDB: Uses event mutexes
2015-01-02T15:38:50.820859Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-01-02T15:38:50.823055Z 0 [Note] InnoDB: Number of pools: 1
2015-01-02T15:38:50.823158Z 0 [Note] InnoDB: Using CPU crc32 instructions
2015-01-02T15:38:50.823775Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128.0M, instances = 1

fix:

sudo ./scripts/mysql_install_db --user=mysql --datadir=/root/wyg/mysql/mysql-5.7.4-m14/install_dir/data

error:

Installing MySQL system tables...2015-01-02T16:29:37.730743Z 1 [ERROR] 1  Can't create/write to file '/root/wyg/mysql/mysql-5.7.4-m14/install_dir/data/mysql/db.MYI' (Errcode: 13 - Permission denied)
2015-01-02T16:29:37.730826Z 0 [ERROR] Aborting

Build MySQL 5.7.4 in RedHat的更多相关文章

  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] use ...

  2. mysql安装和基本配置-redhat

    1.redhat yum替换参考 url:http://blog.csdn.net/zcyhappy1314/article/details/17580943 2.yum卸载mysql rpm -qa ...

  3. build MYSQL source code Using visual studio 2017

    https://dev.mysql.com/doc/refman/8.0/en/installing-source-distribution.html cmake .. -G "Visual ...

  4. RedHat 7.6 安装 Mysql 8.0.17

    # 查看是否安装mysql rpm -qa | grep -i mysql # 如果有,需要卸载旧版本Mysql及相关依赖包 rpm -e MySQL-client-*** # 查看开机启动服务列表状 ...

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

    转自:https://www.cnblogs.com/jsonhc/p/7809571.html 首先从https://hub.docker.com/_/mysql/拉取官方镜像,如果速度缓慢,建议添 ...

  6. LINUX重启MYSQL的命令

    LINUX重启MYSQL的命令 标签: mysqllinuxservice脚本web服务server 2010-06-25 10:21 62152人阅读 评论(0) 收藏 举报  分类: Linux( ...

  7. Mysql基本数据操作

    一.mysql中的逻辑对象 mysqld(process_id(threads)+memory+datadir)-->库-->表-->记录(由行与列组成) 什么是关系型数据库:表与表 ...

  8. GPL协议的MySQL数据库

    网络上多数朋友担心甲骨文会对MySQL软件采用收费模式,多数朋友也不清楚MySQL开源到底是什么模式,开源=免费嘛?是很多的疑问?MySQL是遵守双重协议的,一个是GPL授权协议,一个是商用授权协议( ...

  9. mysql 5.7安装脚本

    [root@HE2 ~]# cat mysql_auto_install.sh ###### 二进制自动安装数据库脚本root密码MANAGER将脚本和安装包放在/root目录即可########## ...

随机推荐

  1. HDU4893:Wow! Such Sequence!(段树lazy)

    Problem Description Recently, Doge got a funny birthday present from his new friend, Protein Tiger f ...

  2. DevExpress.XtraReports.UI.XtraReport 动态报表

    原文:DevExpress.XtraReports.UI.XtraReport 动态报表 using System;using System.Collections.Generic;using Sys ...

  3. Windows在配置Python+tornado

    1,安装Python 2.7.x版本号 地址:https://www.python.org/downloads/release/python-278/ 2,安装python setuptools工具 ...

  4. [转]JS中的prototype

    JS中的phototype是JS中比较难理解的一个部分 本文基于下面几个知识点: 1 原型法设计模式 在.Net中可以使用clone()来实现原型法 原型法的主要思想是,现在有1个类A,我想要创建一个 ...

  5. Oracle分区表转换

    Oracle普通表—>分区表转换(9亿数据量) 背景介绍: 环境:Linux 5.5 + Oracle 10.2.0.4 某普通表T,由于前期设计不当没有分区,如今几年来的数据量已达9亿+, 空 ...

  6. boost进程间通信经常使用开发一篇全(消息队列,共享内存,信号)

    本文概要: 敏捷开发大家想必知道并且评价甚高,缩短开发周期,提高开发质量.将大project独立为不同的小app开发,整个开发过程,程序可用可測,所以提高了总体的质量.基于这样的开发模式和开发理念,进 ...

  7. easyui 小知识

    默认为今天 $(document).ready(function () {        $(function () {            var curr_time = new Date();  ...

  8. Exception dispatching input event. use XlistView

    今天上午解决Bug,一个上午的时间: log: 11-01 14:49:14.826: E/InputEventReceiver(30810): Exception dispatching input ...

  9. What is HHVM?

    What is HHVM? HHVM is an open-source virtual machine designed for executing programs written in Hack ...

  10. HDU 4228 Flooring Tiles 反素数

    推出了结论,万万没想到最后用搜索.. 还想dp来着.. #include <cstdio> #include <cstring> #include <iostream&g ...