這篇文章主要講解了“centos7怎么安裝percona Server服務器”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“centos7怎么安裝percona Server服務器”吧!

成都創新互聯-專業網站定制、快速模板網站建設、高性價比扶溝網站開發、企業建站全套包干低至880元,成熟完善的模板庫,直接使用。一站式扶溝網站制作公司更省心,省錢,快速模板網站建設找我們,業務覆蓋扶溝地區。費用合理售后完善,十多年實體公司更值得信賴。
Percona Server簡介
Percona Server是MySQL的改進版本,使用 XtraDB 存儲引擎,在功能和性能上較 MySQL 有著很顯著的提升,如提升了在高負載情況下的 InnoDB 的性能,為 DBA 提供了一些非常有用的性能診斷工具,另外有更多的參數和命令來控制服務器行為。
Percona Server安裝
平臺說明:
centos 7 ,Percona Server 5.6
執行用戶 root , 安裝使用用戶 centralight
1.更新yum
yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm
2.安裝
yum install Percona-Server-client-56 Percona-Server-server-56
安裝如果有沖突,之前已經安裝過mysql,則需要卸載
rpm -qa | grep mysql rpm -qa | grep mariadb rpm -e [軟件標識]
3.非多實例配置及啟動
默認配置文件路徑 /etc/my.cnf
初始化 mysql_install_db --user=centralight --datadir=/cl/data/mysql/percona3311 啟動 mysqld_safe --user=centralight --datadir=/cl/data/mysql --defaults-file=/cl/dist/conf/mysql/my.cnf
4.多實例配置及啟動
chown -R centralight /cl/data/mysql/percona3311 mysql_install_db --datadir=/cl/data/mysql/percona3311 --user=centralight
所有配置文件目錄
默認配置文件路徑 /etc/my.cnf,修改成如下
[client] user = root password = 123 # Here follows entries for some specific programs [mysqld_multi] mysqld = /usr/bin/mysqld_safe mysqladmin = /usr/bin/mysqladmin [mysqld3311] socket = /var/lib/mysql/mysql3311.sock port = 3311 datadir = /cl/data/mysql/percona3311 pid-file = /var/lib/mysql/hostname.pid3311 user = centralight skip-external-locking key_buffer_size = 16M max_allowed_packet = 1M table_open_cache = 64 sort_buffer_size = 512K
啟動
mysqld_multi --defaults-file=/etc/my.cnf --log=/cl/log/mysql/mysql.log start 3311
報告狀態
mysqld_multi --defaults-file=/etc/my.cnf report 3311
5.登陸數據庫修改用戶及權限,并能遠程連接
mysql -uroot -p -h227.0.0.1 -P3311 mysql> use mysql; mysql> update user set host='%’ where host = ‘localhost’ and user=‘root’ mysql> flush privileges;
設置密碼
mysql> UPDATE user SET Password=password("123") WHERE user='root' and host='%’;
mysql> flush privileges;如果不能遠程連接,請關閉防火墻嘗試
CentOS 7.0默認使用的是firewall作為防火墻
systemctl stop firewalld.service systemctl disable firewalld.service
感謝各位的閱讀,以上就是“centos7怎么安裝percona Server服務器”的內容了,經過本文的學習后,相信大家對centos7怎么安裝percona Server服務器這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創新互聯,小編將為大家推送更多相關知識點的文章,歡迎關注!
網頁名稱:centos7怎么安裝perconaServer服務器
文章路徑:http://www.yijiale78.com/article32/pchisc.html
成都網站建設公司_創新互聯,為您提供定制開發、域名注冊、網站設計公司、App開發、網頁設計公司、
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯