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. Android变化如何破解几场金

    我们在玩游戏的总会遇到一些东西需要购买,但是,我们可能要花钱,那么我们应该怎么办呢?这与游戏的插.我们在这里谈论的Android游戏,搜索互联网上的移动端游戏插件,您可能会发现一个叫段:八门神器.ap ...

  2. PL/SQL 9 许可证

    code:j6stndb9tk72xfbhbqczcdqnjd8lyj466n number:882851 ps:xs374ca 我是PL/SQL版本号是: Version 9.0.3.1641 要注 ...

  3. 体验VS2015正式版

    初次体验VS2015正式版,安装详细过程.   阅读目录 介绍 安装 介绍    纽约时间7月20日,微软发布了vs 2015 正式版,换算到我们的北京时间就是晚上了,今天回到家里,就下下来了,装上去 ...

  4. STL algorithmi算法s_sorted和is_sorted_until(28)

    is_sort原型: ::is_sorted default (1) template <class ForwardIterator> bool is_sorted (ForwardIte ...

  5. C# 使用 Code Snippet 简化 Coding

    在开发的项目的时候,你是否经常遇到需要重复编写一些类似的代码,比如是否经常会使用 for.foreach ? 在编写这两个循环语句的时候,你是一个字符一个字符敲还是使用 Visual Studio 提 ...

  6. (hdu step 6.3.2)Girls and Boys(比赛离开后几个人求不匹配,与邻接矩阵)

    称号: Girls and Boys Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others ...

  7. JavaScript闭包的一些理解

    原文:JavaScript闭包的一些理解 简单一点的说:闭包就是能够读取其他函数内部变量的函数.那如何实现读取其它函数内部变量呢,大家都知道在JavaScript中内部函数可以访问其父函数中的变量,那 ...

  8. Swift构造函数(Initializer)和析构函数(Deinitializer)

    要初始化结构和类和其他类型的实例的属性. 默认的构造函数 struct Fahrenheit { var temperature: Doubleinit(){ temperature = 32.0 } ...

  9. [Elasticsearch] 分布式文件存储

    本文翻译自Elasticsearch官方指南的distributed document store一章. 分布式文档存储 在上一章中,我们一直在介绍索引数据和获取数据的方法.可是我们省略了非常多关于数 ...

  10. Linux环境编程相关的文章

    Linux环境编程相关的文章 好几年没有接触Linux环境下编程了,好多东西都有点生疏了.趁着现在有空打算把相关的一些技能重拾一下,顺手写一些相关的文章加深印象. 因为不是写书,也受到许多外部因素限制 ...