We are starting CHRISTMAS Sale. Get 30% OFF on lifetime licenses with code: FYSKK72

How to replace MySQL with Percona Server 5.5 on Ubuntu Trusty v14.04 64 Bits

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
hsschile
Posts: 7
Joined: Thu Nov 12, 2015 3:38 pm

How to replace MySQL with Percona Server 5.5 on Ubuntu Trusty v14.04 64 Bits

Postby hsschile » Fri Nov 11, 2016 7:54 pm

1. Install a fresh Ubuntu 14.04 - 64 bits on your VPS

2. Change password to your vps with:

sudo passwd

3. Remove the installed software that may cause conflicts when you install last VestaCP version, with:

apt-get update && DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" apache2 apache2-bin apache2-data apache2-doc apache2-mpm-prefork apache2-utils apt-utils bind9 bind9-host bind9utils binutils bsd-mailx bsdmainutils bzip2 ca-certificates console-common console-data console-setup cracklib-runtime cron db-util db5.3-util debconf-utils dialog expat fetchmail file finger fontconfig fontconfig-config fonts-dejavu fonts-dejavu-core fonts-dejavu-extra fonts-freefont-ttf ftp gettext groff-base info iputils-arping iputils-tracepath isc-dhcp-client isc-dhcp-common kbd keyboard-configuration ldap-utils less libapr1:amd64 libaprutil1:amd64 libaprutil1-dbd-sqlite3:amd64 libaprutil1-ldap:amd64 libapt-inst1.5:amd64 libavahi-client3:amd64 libavahi-common-data:amd64 libavahi-common3:amd64 libbind9-90 libbsd0:amd64 libcrack2:amd64 libcroco3:amd64 libcups2:amd64 libdns100 libfile-copy-recursive-perl libfontconfig1:amd64 libfreetype6:amd64 libgeoip1:amd64 libglib2.0-0:amd64 libgmp10:amd64 libgomp1:amd64 libgssglue1:amd64 libhdb9-heimdal:amd64 libisc95 libisccc90 libisccfg90 libkdc2-heimdal:amd64 libldb1:amd64 liblockfile-bin liblockfile1:amd64 libltdl7:amd64 liblwres90 libmagic1:amd64 libntdb1:amd64 libodbc1:amd64 libpaper1:amd64 libpcap0.8:amd64 libperl5.18 libpipeline1:amd64 libpopt0:amd64 libpython-stdlib:amd64 libsensors4:amd64 libsnmp-base libsnmp30:amd64 libtalloc2:amd64 libtdb1:amd64 libtevent0:amd64 libtirpc1:amd64 libunistring0:amd64 libwbclient0:amd64 libxml2:amd64 logrotate lynx lynx-cur m4 make man-db manpages memtester mlocate mtools ncurses-term odbcinst odbcinst1debian2:amd64 openssl openssl-blacklist postfix procmail psutils pwgen python python-crypto python-dnspython python-ldb python-minimal python-ntdb python-talloc python-tdb python2.7 python2.7-minimal rpcbind rsync sasl2-bin screen sharutils snmp ssl-cert sudo syslinux syslinux-common tcpdump tcsh tdb-tools telnet tofrodos traceroute ttf-dejavu ttf-dejavu-core ttf-dejavu-extra ttf-freefont unixodbc unzip update-inetd uuid-runtime whois wide-dhcpv6-client xinetd xkb-data; apt-get clean

4. Update repos

apt-get update

5. Install some utilities for testing and later troubleshooting

apt-get install dnsutils glances nano zip curl python-pip -y && pip install speedtest-cli

6. Install VESTACP last version (9.8.16)

curl -O http://vestacp.com/pub/vst-install.sh && bash vst-install.sh --nginx yes --apache yes --phpfpm no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin no --clamav no --named yes --iptables yes --fail2ban yes --mysql yes --postgresql no --remi yes --quota no --hostname your.host.name --email your@email.com --password Your*Password

7. Fix MySQL double start

update-rc.d mysql disable

8. Reboot your VPS

shutdown -r now

9. Now, at this point, you can reconnect to your vps by SSH and safely replace MySQL with Percona Server without lossing any data. In order to do it, please follow the instructions bellow

a. Import Percona GPG key (Updated KEY working on nov-11-2016)

apt-key adv --keyserver keys.gnupg.net --recv-keys 8507EFA5

b. Add Percona repos to /etc/apt/sources.list (You can replace "trusty" with the name of your Ubuntu version)

nano /etc/apt/sources.list

deb http://repo.percona.com/apt trusty main
deb-src http://repo.percona.com/apt trusty main

c. Update the local cache:

apt-get update

d. Install Percona packages. When asked please don't change root password.

apt-get install percona-server-server-5.5 percona-server-client-5.5 -y

e. Set Percona Server to auto-start

update-rc.d mysql defaults

f. Restart MySQL Server (Percona)

service mysql restart

Stesh
Posts: 265
Joined: Mon Nov 09, 2015 5:52 pm

Re: How to replace MySQL with Percona Server 5.5 on Ubuntu Trusty v14.04 64 Bits

Postby Stesh » Fri Nov 11, 2016 9:47 pm

8. Reboot your VPS

shutdown -r now

What for?

add 9.g
# mysql_upgrade
The installation script will NOT run automatically mysql_upgrade as it was the case in previous versions. You’ll need to run the command manually and restart the service after it’s finished.

https://www.percona.com/doc/percona-ser ... 56_57.html


Return to “Database Server”



Who is online

Users browsing this forum: No registered users and 2 guests