Percona Server là biến thể của MySQL, được một công ty đầu tư để tối ưu hóa, cải thiện tốc độ.
Các bước cài đặt
rpm -Uhv http://www.percona.com/redir/downloads/percona-release/percona-release-0.0-1.x86_64.rpm //Tìm phiên bản percona mới nhất yum list | grep percona //cài đặt Percona 5.6 là bản mới nhất tại tháng 1/2014 yum install Percona-Server-server-56 //Khởi động Percona như là lệnh khởi động mysql service mysql start //Chạy lệnh này để tăng cường an toàn cho MySQL /usr/bin/mysql_secure_installation //Chạy lệnh này để kiểm tra trạng thái Percona service mysql status //Kết quả sẽ là SUCCESS! MySQL (Percona Server) running (1680)
Cấu hình Percona cho phép kết nối từ xa.
//Sửa file cấu hình của Percona nếu thấy cần đổi port nano /etc/my.cnf //Kiểm tra xem port 3306 của Percona có đang phục vụ không? netstat -tln //Kết quả dạng như thế này. Chú ý cổng :3306 Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 192.168.1.66:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 :::3306 :::* LISTEN //Tại máy chủ CentOS, kết nối vào Percona mysql -u root -p //Tạo user admin và phân quyền cho phép kết nối từ xa CREATE USER 'admin'@'%' IDENTIFIED BY 'securedpassword'; GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION; //Thử kết nối từ xa, nếu thất bại thử tắt firewall trên Percona service iptables stop //Nếu kết nối được khi firewall tắt thì cần sửa cấu hình firewal nano /etc/sysconfig/iptables //Thêm dòng này cho phép client từ ngoài kết nối vào cổng 3306 mặc định của Percona -A INPUT -m state --state NEW -p tcp --dport 3306 -j ACCEPT service iptables start //Thử kết nối lại bằng lệnh. giả sử IP của server là 192.168.1.66 mysql -h 192.168.1.66 -u root -p //Nếu kết nối thành công thì kết quả là Welcome to the MariaDB monitor. Commands end with ; or g. Your MySQL connection id is 15 Server version: 5.6.15-56 Percona Server (GPL), Release rel63.0, Revision 519 Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.

Tham khảo so sánh chi tiết tốc độ ở đây


Percona Server 5.6 is the latest release of our enhanced, drop-in replacement for MySQL®. The new version offers all the improvements found in MySQL 5.6 Community Edition plus scalability, availability, backup, and security features found only in MySQL 5.6 Enterprise Edition, which requires a support contract from Oracle to access. The free download of Percona Server 5.6 also includes superior diagnostics and improved integration with other Percona software.
Bình luận