国产成人精品18p,天天干成人网,无码专区狠狠躁天天躁,美女脱精光隐私扒开免费观看

centos7怎么安裝percona Server服務(wù)器

發(fā)布時(shí)間:2021-08-17 12:35 來(lái)源:億速云 閱讀:0 作者:chen 欄目: 服務(wù)器 歡迎投稿:712375056

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

Percona Server簡(jiǎn)介

Percona Server是的改進(jìn)版本,使用 XtraDB 存儲引擎,在功能和性能上較 MySQL 有著(zhù)很顯著(zhù)的提升,如提升了在高負載情況下的 InnoDB 的性能,為 DBA 提供了一些非常有用的性能診斷工具,另外有更多的參數和命令來(lái)控制服務(wù)器行為。

Percona Server安裝

平臺說(shuō)明:

centos 7 ,Percona Server 5.6

執行用戶(hù) root , 安裝使用用戶(hù) 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

安裝如果有沖突,之前已經(jīng)安裝過(guò)mysql,則需要卸載

rpm -qa | grep mysql
rpm -qa | grep mariadb
rpm -e [軟件標識]

3.非多實(shí)例配置及啟動(dòng)

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

初始化 

mysql_install_db --user=centralight --datadir=/cl/data/mysql/percona3311 

啟動(dòng) 

mysqld_safe --user=centralight --datadir=/cl/data/mysql --defaults-file=/cl/dist/conf/mysql/my.cnf

4.多實(shí)例配置及啟動(dòng)

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

啟動(dòng)

mysqld_multi --defaults-file=/etc/my.cnf --log=/cl/log/mysql/mysql.log start 3311

報告狀態(tài)

mysqld_multi --defaults-file=/etc/my.cnf report 3311

5.登陸數據修改用戶(hù)及權限,并能遠程連接

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;

如果不能遠程連接,請關(guān)閉防火墻嘗試

CentOS 7.0默認使用的是firewall作為防火墻

systemctl stop firewalld.service 

systemctl disable firewalld.service

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng )、來(lái)自本網(wǎng)站內容采集于網(wǎng)絡(luò )互聯(lián)網(wǎng)轉載等其它媒體和分享為主,內容觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如侵犯了原作者的版權,請告知一經(jīng)查實(shí),將立刻刪除涉嫌侵權內容,聯(lián)系我們QQ:712375056,同時(shí)歡迎投稿傳遞力量。

香蕉久久AV一区二区三区| 精品国产第一国产综合精品| 男人把女人桶到爽爆的视频| 成 人色 网 站 欧美大片| 欧美熟妇性XXXX欧美熟人多毛| 韩国免费A级毛片久久|