(Jan 22) Release 0.9.8-19 with bug fixes available now. Run this command for update v-update-sys-vesta-all

New Percona instructions

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Forum rules
Before creating a new topic or reply on the forum you should fill out additional fields "Os" and "Web" in your profile section.
In case of violation, the topic can be closed or response from the support will not be received.
Posts: 139
Joined: Thu Jan 07, 2016 12:01 am

New Percona instructions

Postby BBuchanan1013 » Thu Jun 01, 2017 6:52 pm

Hey y'all, I had to put this out there. The Percona instructions for:

Ubuntu 16.04 need to be changed/modified

I have gone through 2 complete re-installs of the OS due to slight issues. I also suggest that this be done on a new install of Vesta.

Ubuntu 16 aka Xenial installs php 7 and MySQL 5.7 <- that's important to remember. VestaCP instructions call for 5.5 on percona. Well, 5.5 and 5.7 have so many changes it's not even funny. This was the cause of numerous headaches. Oh, and the gpg key needs to be changed/updated. Here's how:

Assuming your root (if not add sudo before all commands)
1. Start with the GPG key

Code: Select all

user@server: apt-key adv --keyserver keys.gnupg.net --recv-keys 8507EFA5

2.Add percona Repo

Code: Select all

user@server: echo "deb http://repo.percona.com/apt xenial main" >> /etc/apt/sources.list
user@server: echo "deb-src http://repo.percona.com/apt xenial main" >> /etc/apt/sources.list

3. Install Percona 5.7 <- very important, 5.5 will give massive headaches and will not start correctly if at all

Code: Select all

user@server: apt-get update
user@server: apt-get install percona-server-server-5.7 percona-server-client-5.7 -y
user@server: apt-get autoremove -y
user@server: apt-get clean all

During the install it will ask for the root mysql password. If you don't want to change it, don't enter anything, just press enter. It will ask at least twice.

Then at the end of the install, it will tell your to run commands such as:

Code: Select all

user@server: mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
user@server: mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
user@server: mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"

These are nothing more than useful functions from the Percona Toolkit. It doesn't hurt anything to run the commands.

4.Finally, update the rc

Code: Select all

user@server: update-rc.d mysql default

If you've had no problems to this point, congrats, it's installed. Lets check it:

Code: Select all

user@server: systemctl status mysql


Code: Select all

user@server: service mysql status

As long as it's running, it's installed perfectly fine. Your good to go, congrats on swapping to Percona.

Posts: 1
Joined: Sun Aug 20, 2017 2:42 pm

Re: New Percona instructions

Postby emielm » Mon Aug 21, 2017 1:00 pm

Hi, I tried this several times on a freshly installed Ubuntu 16.04 server, but I keep getting this error on PerconaDB setup:


After continuing, the install is aborted and right after unpacking the installation package:

Code: Select all

Preparing to unpack .../percona-server-common-5.7_5.7.18-16-1.xenial_amd64.deb ...
Unpacking percona-server-common-5.7 (5.7.18-16-1.xenial) ...

this error is shown:

Code: Select all

dpkg: error processing archive /var/cache/apt/archives/percona-server-common-5.7_5.7.18-16-1.xenial_amd64.deb (--unpack):
 trying to overwrite '/usr/share/mysql/errmsg-utf8.txt', which is also in package mysql-server-5.7 5.7.19-0ubuntu0.16.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any idea what might be the cause of this? I also tried installing PerconaDB before installing VestaCP succesfully a few times, so this only occurs with VestaCP installed.

Thanks for any thoughts!

Return to “Database Server”

Who is online

Users browsing this forum: No registered users and 1 guest