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

來源:互聯網
上載者:User

標籤:password   mysql   

方法一 配置apt源

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

2、dpkg -i percona-release_0.1-3.$(lsb_release -sc)_all.deb

3、$ sudo apt-get update

4、$ sudo apt-get install percona-server-server-5.6

後面的使用和mysql一致

mysqladmin -u root password "XXXX"


方法二,使用deb 包

1、下載對應的包集合

$ 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.tar

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

3、$ 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

4、$ sudo dpkg -i *.deb

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

預設安裝路徑:/var/lib/mysql/ 

預設設定檔路徑:/etc/mysql/my.cnf


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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.