Mysql之Percona(1)最新版本5.6.10…
来源:互联网 发布:电影台词拼接软件 编辑:程序博客网 时间:2024/06/02 02:32
percona是mysql被收购后,研发团队核心成员独立成立的咨询公司开发的mysql另一个分支,继承了mysql开源特性以及最大限度的支持mysql,并且提供了许多新的特性,使得该软件成为行业内最为流行的其中一个版本之一,本文以整理了各种安装中最为简洁的rpm包的
安装方式,以起到抛砖引玉之功效:
安装环境:
安装思路步骤:
1.依次序安装三个文件
(先后顺序为shared/client/server,次序不能颠倒,否则不能正常安装)
2.配置参数文件
3.运行mysql服务
4.测试数据库是否正常
5.常见错误处理
以下为具体的安装步骤为(没有任何遗漏):
步骤一:安装三个文件
(当然需要上传三个文件,本例上传到/usr/local目录下)
有以下提示信息,暂不用理会,稍后处理
[root@localhost ~]# cd /usr/local
[root@localhost local]# ls
bin
etc
games
[root@localhost local]# ls
bin
etc
games
[root@localhost local]# rpm -ivhPercona-Server-shared-56-5.6.10-alpha60.2.324.rhel5.i686.rpm
warning:Percona-Server-shared-56-5.6.10-alpha60.2.324.rhel5.i686.rpm:Header V4 DSA signature: NOKEY, key ID cd2efd2a
Preparing...
[root@localhost local]# rpm -ivhPercona-Server-client-56-5.6.10-alpha60.2.324.rhel5.i686.rpm
warning:Percona-Server-client-56-5.6.10-alpha60.2.324.rhel5.i686.rpm:Header V4 DSA signature: NOKEY, key ID cd2efd2a
Preparing...
[root@localhost local]# rpm -ivhPercona-Server-server-56-5.6.10-alpha60.2.324.rhel5.i686.rpm
warning:Percona-Server-server-56-5.6.10-alpha60.2.324.rhel5.i686.rpm:Header V4 DSA signature: NOKEY, key ID cd2efd2a
Preparing...
2013-05-30 13:11:06 0 [Warning] TIMESTAMP with implicit DEFAULTvalue is deprecated. Please use --explicit_defaults_for_timestampserver option (see documentation for more details).
2013-05-30 13:11:06 14120 [Note] InnoDB: The InnoDB memory heap isdisabled
2013-05-30 13:11:06 14120 [Note] InnoDB: Mutexes and rw_locks useGCC atomic builtins
2013-05-30 13:11:06 14120 [Note] InnoDB: Compressed tables use zlib1.2.3
2013-05-30 13:11:06 14120 [Note] InnoDB: CPU does not support crc32instructions
2013-05-30 13:11:06 14120 [Note] InnoDB: Using Linux nativeAIO
2013-05-30 13:11:06 14120 [Note] InnoDB: Initializing buffer pool,size = 128.0M
2013-05-30 13:11:06 14120 [Note] InnoDB: Completed initializationof buffer pool
2013-05-30 13:11:06 14120 [Note] InnoDB: The first specified datafile ./ibdata1 did not exist: a new database to be created!
2013-05-30 13:11:06 14120 [Note] InnoDB: Setting file ./ibdata1size to 12 MB
2013-05-30 13:11:06 14120 [Note] InnoDB: Database physically writesthe file full: wait...
2013-05-30 13:11:07 14120 [Note] InnoDB: Setting log file./ib_logfile101 size to 48 MB
2013-05-30 13:11:08 14120 [Note] InnoDB: Setting log file./ib_logfile1 size to 48 MB
2013-05-30 13:11:09 14120 [Note] InnoDB: Renaming log file./ib_logfile101 to ./ib_logfile0
2013-05-30 13:11:09 14120 [Warning] InnoDB: New log files created,LSN=45781
2013-05-30 13:11:09 14120 [Note] InnoDB: Doublewrite buffer notfound: creating new
2013-05-30 13:11:10 14120 [Note] InnoDB: Doublewrite buffercreated
2013-05-30 13:11:10 14120 [Note] InnoDB: 128 rollback segment(s)are active.
2013-05-30 13:11:10 14120 [Warning] InnoDB: Creating foreign keyconstraint system tables.
2013-05-30 13:11:10 14120 [Note] InnoDB: Foreign key constraintsystem tables created
2013-05-30 13:11:10 14120 [Note] InnoDB: Creating tablespace anddatafile system tables.
2013-05-30 13:11:10 14120 [Note] InnoDB: Tablespace and datafilesystem tables created.
2013-05-30 13:11:10 14120 [Note] InnoDB: Waiting for purge tostart
2013-05-30 13:11:10 14120 [Note] InnoDB: 1.2.10 started; logsequence number 0
2013-05-30 13:11:11 14120 [Note] Binlog end
2013-05-30 13:11:11 14120 [Note] InnoDB: FTS optimize threadexiting.
2013-05-30 13:11:11 14120 [Note] InnoDB: Starting shutdown...
2013-05-30 13:11:12 14120 [Note] InnoDB: Shutdown completed; logsequence number 1625977
2013-05-30 13:11:12 0 [Warning] TIMESTAMP with implicit DEFAULTvalue is deprecated. Please use --explicit_defaults_for_timestampserver option (see documentation for more details).
2013-05-30 13:11:12 14143 [Note] InnoDB: The InnoDB memory heap isdisabled
2013-05-30 13:11:12 14143 [Note] InnoDB: Mutexes and rw_locks useGCC atomic builtins
2013-05-30 13:11:12 14143 [Note] InnoDB: Compressed tables use zlib1.2.3
2013-05-30 13:11:12 14143 [Note] InnoDB: CPU does not support crc32instructions
2013-05-30 13:11:12 14143 [Note] InnoDB: Using Linux nativeAIO
2013-05-30 13:11:12 14143 [Note] InnoDB: Initializing buffer pool,size = 128.0M
2013-05-30 13:11:12 14143 [Note] InnoDB: Completed initializationof buffer pool
2013-05-30 13:11:12 14143 [Note] InnoDB: Highest supported fileformat is Barracuda.
2013-05-30 13:11:13 14143 [Note] InnoDB: 128 rollback segment(s)are active.
2013-05-30 13:11:13 14143 [Note] InnoDB: Waiting for purge tostart
2013-05-30 13:11:13 14143 [Note] InnoDB: 1.2.10 started; logsequence number 1625977
2013-05-30 13:11:13 14143 [Note] Binlog end
2013-05-30 13:11:13 14143 [Note] InnoDB: FTS optimize threadexiting.
2013-05-30 13:11:13 14143 [Note] InnoDB: Starting shutdown...
2013-05-30 13:11:15 14143 [Note] InnoDB: Shutdown completed; logsequence number 1625987
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
Alternatively you can run:
which will also give you the option of removing the test
databases and anonymous user created by default.
strongly recommended for production servers.
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbugscript!
The latest information about MySQL is available on the webat
Support MySQL by buying support/licenses at http://shop.mysql.com
New default config file was created as /usr/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings
Percona Server is distributed with several useful UDF (UserDefined Function) from Maatkit.
Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME'libmurmur_udf.so'"
See http://code.google.com/p/maatkit/source/browse/trunk/udffor more details
[root@localhost local]#
步骤二:配置参数文件
[root@localhost ~]# whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /usr/share/mysql/usr/share/man/man1/mysql.1.gz
[root@localhost ~]# cd /usr/share/mysql/
[root@localhost mysql]# ls
binary-configure
bulgarian
charsets
czech
danish
dictionary.txt