Ubuntu和Debian系統安裝 MySQL percona的步驟

方法一 配置apt源mysql

一、wget https://repo.percona.com/apt/percona-release_0.1-3.$(lsb_release -sc)_all.debsql

二、dpkg -i percona-release_0.1-3.$(lsb_release -sc)_all.debide

三、$ sudo apt-get updatespa

四、$ sudo apt-get install percona-server-server-5.63d

後面的使用和mysql一致server

mysqladmin -u root password "XXXX"get


方法二,使用deb 包it

一、下載對應的包集合io

$ wget https://www.percona.com/downloads/Percona-Server-5.7/Percona-Server-5.7.10-3/binary/debian/jessie/x86_64/Percona-Server-5.7.10-3-r63dafaf-jessie-x86_64-bundle.tarclass

二、$ tar xvf Percona-Server-5.7.10-3-r63dafaf-jessie-x86_64-bundle.tar

三、$ ls *.deb

libperconaserverclient20-dev_5.7.10-3-1.jessie_amd64.deb

libperconaserverclient20_5.7.10-3-1.jessie_amd64.deb

percona-server-5.7-dbg_5.7.10-3-1.jessie_amd64.deb

percona-server-client-5.7_5.7.10-3-1.jessie_amd64.deb

percona-server-common-5.7_5.7.10-3-1.jessie_amd64.deb

percona-server-server-5.7_5.7.10-3-1.jessie_amd64.deb

percona-server-source-5.7_5.7.10-3-1.jessie_amd64.deb

percona-server-test-5.7_5.7.10-3-1.jessie_amd64.deb

percona-server-tokudb-5.7_5.7.10-3-1.jessie_amd64.deb

四、$ sudo dpkg -i *.deb

注意:這中安裝沒有解決包依賴關係,在安裝以前應該確保如下包已經安裝:mysql-common, libjemalloc1, libaio1 and libmecab2

默認安裝路徑:/var/lib/mysql/ 

默認配置文件路徑:/etc/mysql/my.cnf

相關文章
相關標籤/搜索