POOPE 发表于 2021-7-4 12:08:57

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

  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 distributionrhel%{redhatversion}
%define percona_server_versionrel%{majorversion}.%{minorversion}

%define mysqld_user   mysql
%define mysqld_group    mysql
%define mysqldatadir    /var/lib/mysql

%define release         rel%{majorversion}.%{minorversion}.%{distribution}   见附件

  
页: [1]
查看完整版本: 构建自动化运维之基础设施—定制mysql的rpm包