Percona database Server Installation


Percona Installation steps


Warning : If you have installed mysql priviouly you need to remove up to scratch, even /var/lib/mysql directory, if there have any log of privious mysql you will got error like this :

[root@filestore ~]# service mysql start
Starting MySQL (Percona Server)......................out updating file.      [FAILED]

remove all the mysql directory and install

install MYSQL Percona Server From the scrach

First we need to generate my.cnf file from

https://tools.percona.com

>> login with valid id and generate the my.cnf file as per as your server configuration file.
In my operation i have :

OS : Centos 5.8
RAM : 1 GB
CPU : 1


>> and put the the value in my.cnf file in /etc directory

Example :

# vi /etc/my.cnf


# Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208
# Configuration name server-52 generated for dhrublinux@gmail.com at 2012-10-05 11:03:57

[mysql]

# CLIENT #
port                           = 3306
socket                         = /var/lib/mysql/data/mysql.sock

[mysqld]

# GENERAL #
user                           = mysql
default_storage_engine         = InnoDB
socket                         = /var/lib/mysql/data/mysql.sock
pid_file                       = /var/lib/mysql/data/mysql.pid

# MyISAM #
key_buffer_size                = 32M
myisam_recover                 = FORCE,BACKUP

# SAFETY #
max_allowed_packet             = 16M
max_connect_errors             = 1000000

# DATA STORAGE #
datadir                        = /var/lib/mysql/data/

# BINARY LOGGING #
log_bin                        = /var/lib/mysql/data/mysql-bin
expire_logs_days               = 14
sync_binlog                    = 1

# CACHES AND LIMITS #
tmp_table_size                 = 32M
max_heap_table_size            = 32M
query_cache_type               = 0
query_cache_size               = 0
max_connections                = 500
thread_cache_size              = 50
open_files_limit               = 65535
table_definition_cache         = 1024
table_open_cache               = 2048

# INNODB #
innodb_flush_method            = O_DIRECT
innodb_log_files_in_group      = 2
innodb_log_file_size           = 64M
innodb_flush_log_at_trx_commit = 1
innodb_file_per_table          = 1
innodb_buffer_pool_size        = 592M

# LOGGING #
log_error                      = /var/lib/mysql/data/mysql-error.log
log_queries_not_using_indexes  = 1
slow_query_log                 = 1
slow_query_log_file            = /var/lib/mysql/data/mysql-slow.log

# vi /etc/yum.repos.d/percona.repo

[percona]
name = CentOS $releasever - Percona
baseurl=http://repo.percona.com/centos/$releasever/os/$basearch/
enabled = 1
gpgkey = 0

# yum install Percona-Server-client-51.x86_64 Percona-Server-server-51.x86_64
# chkconfig mysql on



######################     end    ####################













XR5VNN_fsn#X-F9rVo@x7

Comments