评论

收藏

[MySQL] 构建自动化运维之基础设施—定制mysql的rpm包

数据库 数据库 发布于:2021-07-04 12:08 | 阅读数:513 | 评论:0

  percona-mysql-server的rpm定制
  文件下载
  http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-5.5.28-29.2/source/Percona-Server-55-5.5.28-rel29.2.360.rhel6.src.rpm
  本rpm的定制基于官方spec修改,系统环境为centos6.3X64,官方的spec在centos下面有问题
%define mysql_old_vendor    MySQL AB 
%define mysql_vendor_2      Sun Microsystems, Inc. 
%define mysql_vendor      Oracle and/or its affiliates 
%define percona_server_vendor   Percona, Inc 
 
%define mysql_version   5.5.28 
%define redhatversion %(lsb_release -rs | awk -F. '{ print $1}') 
%define majorversion 29 
%define minorversion 2 
%define distribution  rhel%{redhatversion} 
%define percona_server_version  rel%{majorversion}.%{minorversion} 
 
%define mysqld_user   mysql 
%define mysqld_group  mysql 
%define mysqldatadir  /var/lib/mysql 
 
%define release     rel%{majorversion}.%{minorversion}.%{distribution}
  见附件

  
关注下面的标签,发现更多相似文章