Bug #97700 mysql-connector-java RPM needs epoch
Submitted: 20 Nov 2019 7:41 Modified: 8 Jan 3:22
Reporter: Terje Røsten Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:8.0.18 OS:Any
Assigned to: Balasubramanian Kandasamy CPU Architecture:Any

[20 Nov 2019 7:41] Terje Røsten
Description:
RPM package for MySQL Connector/J in EL7+ and Fedora has epoch set to 1.

This blocks installation of MySQL provided package, see e.g:

 https://forums.mysql.com/read.php?11,679237,679237#msg-679237

How to repeat:
$ yumdownloader mysql-connector-java
mysql-connector-java-5.1.25-3.el7.noarch.rpm                                                                      

$ rpm -qp --qf '%{epoch}:%{version}-%{release}\n' mysql-connector-java-5.1.25-3.el7.noarch.rpm
1:5.1.25-3.el7

$ wget http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/mysql-connector-java-8.0....

$ rpm -qp --qf '%{epoch}:%{version}-%{release}\n' mysql-connector-java-8.0.18-1.el7.noarch.rpm 
(none):8.0.18-1.el7

Suggested fix:
Add epoch.
[20 Nov 2019 11:54] Balasubramanian Kandasamy
RPM package for MySQL Connector/J in EL7+ and Fedora has epoch set to 1. This blocks installation of MySQL provided package. 

Set epoch to 1 for MySQL Connector/J rpm packages.
[8 Jan 3:22] Daniel So
Posted by developer:
 
Added the following entry to the Connector/J 8.0.19 changelog: 

"The RPM package for Connection/J provided by the MySQL Yum repository did not have its epoch set; as a result, the package could not be installed on an Enterprise Linux or Fedora system even if the MySQL Yum repository has been enabled, because the Connector/J package in the native repository had the epoch set to 1. This fix sets epoch also to 1 for the RPM package provided by the MySQL Yum repository, in order to prevent the installation problem. "