Percona Server 安装
安装配置参数
[root@monser Percona-Server-5.5.34-rel32.0]# cmake . -DCMAKE_INSTALL_PREFIX=/service/mysql -DMYSQL_DATADIR=/data/mysql -DSYSCONFDIR=/service/mysql -DMYSQL_UNIX_ADDR=/data/mysql/mysql.sock -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_EXAMPLE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_TCP_PORT=30306 -DCOMPILATION_COMMENT=ZWC -DWITH_SSL=system -DWITH_DEBUG=0
[root@monser Percona-Server-5.5.34-rel32.0]# make && make install
创建配置文件
cat > /service/mysql/my.cnf << EOF
[client]
port = 30306
socket = /data/mysql/mysql.sock[mysqld]
port = 30306
socket = /data/mysql/mysql.sockbasedir = /service/mysql
datadir = /data/mysql
pid-file = /data/mysql/mysql.pid
user = mysql
server-id = 1skip-name-resolve
back_log = 600max_connections = 5000
max_connect_errors = 6000
open_files_limit = 65535
table_open_cache = 128
max_allowed_packet = 4M
binlog_cache_size = 1M
max_heap_table_size = 8M
tmp_table_size = 16Mread_buffer_size = 2M
read_rnd_buffer_size = 8M
sort_buffer_size = 8M
join_buffer_size = 8M
key_buffer_size = 4Mthread_cache_size = 8query_cache_size = 8M
query_cache_limit = 2M
ft_min_word_len = 4log_bin = mysql-bin
binlog_format = mixed
expire_logs_days = 7log_error = /data/mysql/mysql-error.logslow_query_log = 1
long_query_time = 2
slow_query_log_file = /data/mysql/slowsql.logperformance_schema = 0
lower_case_table_names = 1
skip-external-lockingdefault_storage_engine = InnoDB
innodb_file_per_table = 1
innodb_open_files = 500
innodb_buffer_pool_size = 64M
innodb_write_io_threads = 4
innodb_read_io_threads = 4
innodb_thread_concurrency = 0
innodb_purge_threads = 1
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 2M
innodb_log_file_size = 32M
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 120bulk_insert_buffer_size = 8M
myisam_sort_buffer_size = 8M
myisam_max_sort_file_size = 10G
myisam_repair_threads = 1
federated
event_scheduler = 1
interactive_timeout = 28800
wait_timeout = 28800[mysqldump]
quick
max_allowed_packet = 16M[mysql]
no-auto-rehash [myisamchk]
key_buffer_size = 8M
sort_buffer_size = 8M
read_buffer = 4M
write_buffer = 4M
EOF
初始化系统表,启动Percona Server
[root@monser Percona-Server-5.5.34-rel32.0]# /service/mysql/scripts/mysql_install_db --defaults-file=/service/mysql/my.cnf --basedir=/service/mysql --datadir=/data/mysql --user=mysql
Installing MySQL system tables...
OK
Filling help tables...
OKTo start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:/service/mysql/bin/mysqladmin -u root password 'new-password'
/service/mysql/bin/mysqladmin -u root -h 192.168.1.2 password 'new-password'Alternatively you can run:
/service/mysql/bin/mysql_secure_installationwhich will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.See the manual for more instructions.You can start the MySQL daemon with:
cd /service/mysql ; /service/mysql/bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.pl
cd /service/mysql/mysql-test ; perl mysql-test-run.plPlease report any problems with the /service/mysql/scripts/mysqlbug script!Percona recommends that all production deployments be protected with a support
contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
be eligible for hot fixes, and boost your team's productivity.
[root@monser Percona-Server-5.5.34-rel32.0]# /service/mysql/bin/mysqld_safe --defaults-file=/service/mysql/my.cnf --basedir=/service/mysql --datadir=/data/mysql --user=mysql &
[1] 13051
[root@monser Percona-Server-5.5.34-rel32.0]# 140209 00:09:50 mysqld_safe Logging to '/data/mysql/mysql-error.log'.
140209 00:09:50 mysqld_safe Starting mysqld daemon with databases from /data/mysql
删除空用户
[root@monser mysql]# /service/mysql/bin/mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.34-log ZWCCopyright (c) 2009-2013 Percona LLC and/or its affiliates
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> grant all privileges on *.* to 'root'@'127.0.0.1' identified by 'root' with grant option;
Query OK, 0 rows affected (0.00 sec)mysql> grant all privileges on *.* to 'root'@'localhost' identified by 'root' with grant option;
Query OK, 0 rows affected (0.00 sec)mysql> grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
Query OK, 0 rows affected (0.00 sec)mysql> delete from mysql.user where Password='';
Query OK, 4 rows affected (0.00 sec)mysql> delete from mysql.db where User='';
Query OK, 2 rows affected (0.00 sec)mysql> delete from mysql.proxies_priv where Host!='localhost';
Query OK, 1 row affected (0.00 sec)mysql> show engines;
+--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+
| InnoDB | DEFAULT | Percona-XtraDB, Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
| CSV | YES | CSV storage engine | NO | NO | NO |
| BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO |
| MyISAM | YES | MyISAM storage engine | NO | NO | NO |
| PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |
| ARCHIVE | YES | Archive storage engine | NO | NO | NO |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
| FEDERATED | YES | Federated MySQL storage engine | NO | NO | NO |
+--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+
9 rows in set (0.00 sec)mysql> exit
Bye
[root@monser mysql]# /service/mysql/bin/mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[root@monser mysql]# /service/mysql/bin/mysql -uroot -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@monser mysql]# /service/mysql/bin/mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.5.34-log ZWCCopyright (c) 2009-2013 Percona LLC and/or its affiliates
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Percona Server 安装相关推荐
- Percona Server for MySQL 安装TokuDB引擎
Percona Server for MySQL 安装TokuDB引擎 TokuDB主要优点:insert数据比Innodb快的多,数据压缩比要Innodb高 官方文档https://docs.per ...
- Percona server 介绍及与mysql对比 及安装
提到 MySQL, 我们不得不说说其两大重要的时间点 2008 年 Sun 收购 MySQL AB 2010 年 Oracle 收购 Sun 在 MySQL 两次易主的过程中,开发者们普遍担心某一天 ...
- mysql percona server_MySQL Study之--Percona Server版本
1.简介 Percona 为 MySQL 数据库服务器进行了改进,在功能和性能上较 MySQL 有着很显著的提升.该版本提升了在高负载情况下的 InnoDB 的性能.为 DBA 提供一些非常有用的性能 ...
- MySQL Study之--Percona Server版本
1.简介 Percona 为 MySQL 数据库服务器进行了改进,在功能和性能上较 MySQL 有着很显著的提升.该版本提升了在高负载情况下的 InnoDB 的性能.为 DBA 提供一些非常 ...
- Percona Server 5.6 Master-Slave Replication测试
为什么80%的码农都做不了架构师?>>> MySQL的Master-Slave Replication是一个异步的复制过程,从一个 MySQL instance(Master) ...
- Percona XtraBackup 安装介绍篇
XtraBackup介绍 XtraBackup是Percona公司的开源项目,用以实现类似Innodb官方的热备份工具InnoDB Hot Backup的功能,它支持在线热备份(备份时不影响数据读写) ...
- percona的安装、启动、停止
版权声明:本文为博主原创文章,未经博主允许不得转载. http://blog.csdn.net/tanliqing2010/article/details/78758878 0 前言 1 percon ...
- MySQL备份Percona Xtrabackup安装和卸载
MySQL备份Percona Xtrabackup安装和卸载 Percona XtraBackup 安装介绍篇 XtraBackup介绍 XtraBackup是Percona公司的开源项目,用以实现类 ...
- mysql 升级percona_MySQL Study之--Percona Server 5.5升级5.6
系统环境: 操作系统:CentOS_6.5(64) MySQL: Percona server 5.5(5.6) 一.升级的目的 为什么MySQL升级是必须的? 原因有很多,比如:为了使用新增的特性 ...
最新文章
- lodash源码分析之获取数据类型
- 启动nginx服务提示 nginx: [emerg] still could not
- Google BERT模型提取句子Token特征
- 传智播客JavaWeb day11--事务的概念、事务的ACID、数据库锁机制、
- Linux性能优化方向及相关工具
- 井电双控智能缴费管理系统、水井管理、报警管理、费用管理、实时查询、信息配置、模块配置、智能报表、水表、抄表、井电、电表、用水分析、水电、灌溉用水、绿化用水、农业用水、智慧水电、水利
- 12muduo_base库源码分析(三)
- matlab slope函数,Matlab常用函数汇总
- 毕业设计校园信息发布平台网站源码
- 关于信贷评分卡模型,看这篇就够了!
- Egret引擎做游戏登录账号和密码显示
- 与卿共赴鸿蒙是什么意思,『为君倾笑°‖笑红颜』「古风」唯美的古风句子,古风签必备!...
- mybaits源码分析(八) StatementHandler的详解
- 超好用的办公软件推荐,总有一个你喜欢
- java自动发送qq_如何定时批量发送qq消息就是帮助我们自动的发送qq消息
- 技巧:屏幕長亮 兩種方式
- 攻防演练建设过程中技术考虑
- 用Matlab创建BP神经网络
- 利用正则表达式爬取网络小说,并按照章节下载到本地
- QT开发环境的建立以及qte4.6.3、tislib1.4移植到博创star2410开发板