Hi,
I am trying to upgrade Ubuntu Server 18.04 from percona xtradb cluster from 56 to 57.
I have followed the upgrade steps available here. Upgrading Percona XtraDB Cluster - Percona XtraDB Cluster.
In Step 3: I have got the following error:
$ apt-get install percona-xtradb-cluster-57
percona-xtradb-cluster-57 percona-xtradb-cluster-client-5.7 percona-xtradb-cluster-common-5.7 percona-xtradb-cluster-server-5.7
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
-------------
Setting up libcurl4-openssl-dev:amd64 (7.58.0-2ubuntu3.13) …
Setting up percona-xtrabackup-24 (2.4.22-1.bionic) …
Setting up percona-xtradb-cluster-client-5.7 (5.7.33-31.49-1.bionic) …
Setting up percona-xtradb-cluster-server-5.7 (5.7.33-31.49-1.bionic) …
Installing new version of config file /etc/default/mysql …
Installing new version of config file /etc/init.d/mysql …
-
Percona XtraDB Cluster is distributed with several useful UDF (User Defined Function) from Percona Toolkit.
-
Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
===============================
I have removed the file
rm -rf /etc/mysql/my.cnf
run this command
update-alternatives --install /etc/mysql/my.cnf my.cnf "/etc/mysql/percona-xtradb-cluster.cnf" 200
Added my config from /etc/mysql/my.cnf to
about wsrep → /etc/mysql/percona-xtradb-cluster.conf.d/wsrep.cnf. (Based on the suggestions from Configuring Nodes for Write-Set Replication - Percona XtraDB Cluster
)
rest of the things to /etc/mysql/percona-xtradb-cluster.conf.d/mysqld.cnf
Even after doing so, mysql failled to start. As in the next step I need to stop even if the mysql gets started. SO i proceeded to next steps.
=====================================
When I run the step 6 as discussed in the upgrade guide (mysqld --skip-grant-tables --user=mysql --wsrep-provider=‘none’), it exits without waiting for step 7 ( mysql_upgrade
command).
Is this really a problem or not?
I could run step 6 with root user, Should I use root?