I have Percona Sever for MySQL 5.7 installed in my linux server. When i install XtraDBCluster 5.7 in my server. I get the following error (highlighted in red). Based on the error message I see that there are conflicting files between the percona-xtradb-cluster-server and percona-server-common. I tried uninstalling the percona-server-common files and then installling the xtradb-cluster. The installation is successful but the percona mysql server doesn’t come up when I try to bootstrap the server. How do I resolve this issue?
OS: Ubuntu TLS 16.04
Server: AWS EC2 instances
[I]$ sudo apt-get install percona-xtradb-cluster-57
[sudo] password for indiadev:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libboost-program-options1.58.0 percona-server-common-5.7 percona-xtradb-cluster-garbd-5.7 percona-xtradb-cluster-garbd-debug-5.7
Use ‘sudo apt autoremove’ to remove them.
The following additional packages will be installed:
percona-xtradb-cluster-client-5.7 percona-xtradb-cluster-common-5.7 percona-xtradb-cluster-server-5.7
Suggested packages:
tinyca
The following packages will be REMOVED:
percona-server-client-5.7 percona-server-server-5.7
The following NEW packages will be installed:
percona-xtradb-cluster-57 percona-xtradb-cluster-client-5.7 percona-xtradb-cluster-common-5.7 percona-xtradb-cluster-server-5.7
0 upgraded, 4 newly installed, 2 to remove and 7 not upgraded.
Need to get 0 B/12.5 MB of archives.
After this operation, 71.3 MB disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages …
(Reading database … 84071 files and directories currently installed.)
Removing percona-server-server-5.7 (5.7.22-22-1.xenial) …
Removing percona-server-client-5.7 (5.7.22-22-1.xenial) …
Processing triggers for man-db (2.7.5-1) …
Selecting previously unselected package percona-xtradb-cluster-common-5.7.
(Reading database … 83904 files and directories currently installed.)
Preparing to unpack …/percona-xtradb-cluster-common-5.7_5.7.21-29.26-1.xenial_amd64.deb …
Unpacking percona-xtradb-cluster-common-5.7 (5.7.21-29.26-1.xenial) …
Selecting previously unselected package percona-xtradb-cluster-client-5.7.
Preparing to unpack …/percona-xtradb-cluster-client-5.7_5.7.21-29.26-1.xenial_amd64.deb …
Unpacking percona-xtradb-cluster-client-5.7 (5.7.21-29.26-1.xenial) …
Setting up percona-xtradb-cluster-common-5.7 (5.7.21-29.26-1.xenial) …
dpkg-query: no path found matching pattern /etc/mysql/my.cnf
- The suggested mysql options and settings are in /etc/mysql/percona-server.conf.d/mysqld.cnf
- If you want to use mysqld.cnf as default configuration file please make backup of /etc/my.cnf
- Once it is done please execute the following commands:
rm -rf /etc/mysql/my.cnf
update-alternatives --install /etc/mysql/my.cnf my.cnf “/etc/mysql/percona-xtradb-cluster.cnf” 200
Selecting previously unselected package percona-xtradb-cluster-server-5.7.
(Reading database … 83933 files and directories currently installed.)
Preparing to unpack …/percona-xtradb-cluster-server-5.7_5.7.21-29.26-1.xenial_amd64.deb …
…Unpacking percona-xtradb-cluster-server-5.7 (5.7.21-29.26-1.xenial) …
[COLOR=#FF0000]dpkg: error processing archive /var/cache/apt/archives/percona-xtradb-cluster-server-5.7_5.7.21-29.26-1.xenial_amd64.deb (–unpack):
trying to overwrite ‘/usr/share/mysql/danish/errmsg.sys’, which is also in package percona-server-common-5.7 5.7.22-22-1.xenial
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package percona-xtradb-cluster-57.
Preparing to unpack …/percona-xtradb-cluster-57_5.7.21-29.26-1.xenial_amd64.deb …
Unpacking percona-xtradb-cluster-57 (5.7.21-29.26-1.xenial) …
Processing triggers for man-db (2.7.5-1) …
Errors were encountered while processing:
/var/cache/apt/archives/percona-xtradb-cluster-server-5.7_5.7.21-29.26-1.xenial_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)[/I]