真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

如何使用rpm包方式安裝Perconaserver

這篇文章主要介紹了如何使用rpm包方式安裝Percona server,具有一定借鑒價(jià)值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

十余年的北關(guān)網(wǎng)站建設(shè)經(jīng)驗(yàn),針對設(shè)計(jì)、前端、開發(fā)、售后、文案、推廣等六對一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。營銷型網(wǎng)站建設(shè)的優(yōu)勢是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整北關(guān)建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。創(chuàng)新互聯(lián)公司從事“北關(guān)網(wǎng)站設(shè)計(jì)”,“北關(guān)網(wǎng)站推廣”以來,每個(gè)客戶項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。

Percona XtraDB是 InnoDB 存儲(chǔ)引擎的增強(qiáng)版,被設(shè)計(jì)用來更好的使用更新計(jì)算機(jī)硬件系統(tǒng)的性能,同時(shí)還包含有一些在高性能環(huán)境下的新特性。XtraDB 存儲(chǔ)引擎是完全的向下兼容,于是完全可以使用XtraDB來替代InnoDB存儲(chǔ)引擎。

Percona XtraDB 包含有所有 InnoDB's 健壯性,可依賴的 ACID 兼容設(shè)計(jì)和高級(jí) MVCC 架構(gòu)。XtraDB 在 InnoDB 的堅(jiān)實(shí)基礎(chǔ)上構(gòu)建,使 XtraDB 具有更多的特性,更好調(diào)用,更多的參數(shù)指標(biāo)和更多的擴(kuò)展。

尤其是,XtraDB 被設(shè)計(jì)用來在多核心的條件下更有效的使用內(nèi)存和更加方便,更加可用。也解除了InnoDB的很多限制;提供了比InnoDB更多的配置和性能監(jiān)控參數(shù)。

Percona XtraDB engine包含在Percona Server and MariaDB。

Installing Percona Server on Red Hat Enterprise Linux

Percona Server跟MySQL一樣有多種安裝方法:yum Repositories、rpm、Binary Tarball、Source Tarball、Git Source Tree等,可以根據(jù)實(shí)際環(huán)境選擇,具體安裝步驟請參考官方文檔。下文主要以rpm包在RHEL 6上的安裝為例說明主要步驟

InstallingPercona Server using rpm packages

1下載軟件包

wget https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-5.6.29-76.2/binary/redhat/6/x86_64/Percona-Server-5.6.29-76.2-rddf26fe-el6-x86_64-bundle.tar

2解壓tar包

]# tar -xvf Percona-Server-5.6.29-76.2-rddf26fe-el6-x86_64-bundle.tar

]# ls *.rpm

Percona-Server-56-debuginfo-5.6.29-rel76.2.el6.x86_64.rpm

Percona-Server-server-56-5.6.29-rel76.2.el6.x86_64.rpm

Percona-Server-tokudb-56-5.6.29-rel76.2.el6.x86_64.rpm

Percona-Server-client-56-5.6.29-rel76.2.el6.x86_64.rpm

Percona-Server-shared-56-5.6.29-rel76.2.el6.x86_64.rpm

Percona-Server-devel-56-5.6.29-rel76.2.el6.x86_64.rpm

Percona-Server-test-56-5.6.29-rel76.2.el6.x86_64.rpm

如何使用rpm包方式安裝Percona server

3安裝Percona Server

]#rpm -ivh Percona-Server-server-56-5.6.29-rel76.2.el6.x86_64.rpm \

Percona-Server-client-56-5.6.29-rel76.2.el6.x86_64.rpm \

Percona-Server-shared-56-5.6.29-rel76.2.el6.x86_64.rpm

#以上三個(gè)rpm包僅僅為了完成Percona server的安裝

#若需要(包含debugging, testing,etc等),則直接安裝所有的rpm包即可

]#rpm -ivh *.rpm

附:RHEL6上安裝報(bào)錯(cuò):libcrypto.so.10和libssl.so.10

error: Failed dependencies:

        libcrypto.so.10(libcrypto.so.10)(64bit) is needed by Percona-Server-client-56-5.6.29-rel76.2.el6.x86_64

        libssl.so.10(libssl.so.10)(64bit) is needed by Percona-Server-client-56-5.6.29-rel76.2.el6.x86_64

        libcrypto.so.10(libcrypto.so.10)(64bit) is needed by Percona-Server-shared-56-5.6.29-rel76.2.el6.x86_64

        libssl.so.10(libssl.so.10)(64bit) is needed by Percona-Server-shared-56-5.6.29-rel76.2.el6.x86_64

#RedHat EL6自帶openssl-1.0.0版本,對于Percona-Server應(yīng)該安裝openssl-1.0.1的版本,安裝新版本后,問題解決

]# rpm -ivh openssl10-libs-1.0.1e-1.ius.el6.x86_64.rpm --force

warning: openssl10-libs-1.0.1e-1.ius.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 9cd4953f: NOKEY

Preparing...                ########################################### [100%]

   1:openssl10-libs         ########################################### [100%]

如何使用rpm包方式安裝Percona server

4配置文件

Percona Server默認(rèn)的數(shù)據(jù)文件路徑在/var/lib/mysql/下

#編輯配置文件/etc/my.cnf

]# cat /etc/my.cnf

[mysqld]

datadir=/var/lib/mysql

socket=/var/lib/mysql/mysql.sock

log-error=/var/log/mysqld.log

innodb_buffer_pool_size = 128M

注:配置文件有很多選項(xiàng),具體的根據(jù)實(shí)際需求配置,此處只是簡單配置了下而已

5運(yùn)行Percona Server

1. Starting the service

]# /etc/init.d/mysql start

Starting MySQL (Percona Server).............[  OK  ]

2. Confirming that service is running

]# /etc/init.d/mysql status

MySQL (Percona Server) running (3369)[  OK  ]

3. Stopping the service

]# /etc/init.d/mysql stop

Shutting down MySQL (Percona Server)..[  OK  ]

4. Restarting the service

]# /etc/init.d/mysql restart

Shutting down MySQL (Percona Server)..[  OK  ]

Starting MySQL (Percona Server).....[  OK  ]

6查看log

]# tail -f /var/log/mysqld.log

2016-05-03 16:28:23 3595 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.29-76.2 started; log sequence number 1626007

2016-05-03 16:28:23 3595 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.

2016-05-03 16:28:23 3595 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.

2016-05-03 16:28:23 3595 [Note] Server hostname (bind-address): '*'; port: 3306

2016-05-03 16:28:23 3595 [Note] IPv6 is available.

2016-05-03 16:28:23 3595 [Note]   - '::' resolves to '::';

2016-05-03 16:28:23 3595 [Note] Server socket created on IP: '::'.

2016-05-03 16:28:23 3595 [Note] Event Scheduler: Loaded 0 events

2016-05-03 16:28:23 3595 [Note] /usr/sbin/mysqld: ready for connections.

Version: '5.6.29-76.2'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Percona Server (GPL), Release 76.2, Revision ddf26fe

7卸載Percona Server

1. Stop thePercona Server service

]# /etc/init.d/mysql stop

Shutting down MySQL (Percona Server)..[  OK  ]

2. Remove the packages

]# rpm -qa|grep -i percona

Percona-Server-client-56-5.6.29-rel76.2.el6.x86_64

Percona-Server-server-56-5.6.29-rel76.2.el6.x86_64

Percona-Server-shared-56-5.6.29-rel76.2.el6.x86_64

]# rpm -e Percona-Server-client-56-5.6.29-rel76.2.el6.x86_64 \

 Percona-Server-server-56-5.6.29-rel76.2.el6.x86_64 \

 Percona-Server-shared-56-5.6.29-rel76.2.el6.x86_64

]# rpm -qa|grep -i percona

3. Remove the data and configuration files

]# rm -rf /var/lib/mysql/ /etc/my.cnf

注:這里將刪除所有的數(shù)據(jù)文件(databases, tables, logs, etc.),可能你環(huán)境中的datafile的位置并不是默認(rèn)的/var/lib/mysql,而是其他的目錄,卸載的時(shí)候根據(jù)實(shí)際情況刪除文件

感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“如何使用rpm包方式安裝Percona server”這篇文章對大家有幫助,同時(shí)也希望大家多多支持創(chuàng)新互聯(lián),關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,更多相關(guān)知識(shí)等著你來學(xué)習(xí)!


網(wǎng)頁名稱:如何使用rpm包方式安裝Perconaserver
鏈接URL:http://weahome.cn/article/pgdics.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部