Percona Server 5.5升级5.6(4)

[root@cent65 percona-56]# rpm -ivh Percona-Server-client-56-5.6.25-rel73.1.el6.x86_64.rpm --force --nodeps
warning: Percona-Server-client-56-5.6.25-rel73.1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...                ########################################### [100%]
  1:Percona-Server-client-5########################################### [100%]

[root@cent65 percona-56]# rpm -ivh Percona-Server-test-56-5.6.25-rel73.1.el6.x86_64.rpm --force --nodeps
warning: Percona-Server-test-56-5.6.25-rel73.1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...                ########################################### [100%]
  1:Percona-Server-test-56 ########################################### [100%]

[root@cent65 percona-56]# rpm -ivh Percona-Server-devel-56-5.6.25-rel73.1.el6.x86_64.rpm --force --nodeps
warning: Percona-Server-devel-56-5.6.25-rel73.1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...                ########################################### [100%]
  1:Percona-Server-devel-56########################################### [100%]

server软件的安装需要先卸载server 5.5:

1)、卸载server 5.5
[root@cent65 percona-56]# rpm -qa |grep Percona-Server-server
Percona-Server-server-55-5.5.46-rel37.5.el6.x86_64
[root@cent65 percona-56]# rpm -e Percona-Server-server-55-5.5.46-rel37.5.el6.x86_64
error: Failed dependencies:
        mysql-server is needed by (installed) akonadi-1.2.1-2.el6.x86_64
[root@cent65 percona-56]# rpm -e Percona-Server-server-55-5.5.46-rel37.5.el6.x86_64 --nodeps

2)、安装server 5.6
[root@cent65 percona-56]# rpm -ivh Percona-Server-server* --force --nodeps

warning: Percona-Server-server-56-5.6.25-rel73.1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY

Preparing...                ########################################### [100%]

1:Percona-Server-server-5########################################### [100%]

2015-12-03 12:41:04 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2015-12-03 12:41:04 0 [Note] /usr/sbin/mysqld (mysqld 5.6.25-73.1) starting as process 4000 ...

2015-12-03 12:41:04 4000 [Note] InnoDB: Using atomics to ref count buffer pool pages

2015-12-03 12:41:04 4000 [Note] InnoDB: The InnoDB memory heap is disabled

2015-12-03 12:41:04 4000 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2015-12-03 12:41:04 4000 [Note] InnoDB: Memory barrier is not used

2015-12-03 12:41:04 4000 [Note] InnoDB: Compressed tables use zlib 1.2.3

2015-12-03 12:41:04 4000 [Note] InnoDB: Using Linux native AIO

2015-12-03 12:41:04 4000 [Note] InnoDB: Using CPU crc32 instructions

2015-12-03 12:41:04 4000 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2015-12-03 12:41:04 4000 [Note] InnoDB: Completed initialization of buffer pool

2015-12-03 12:41:04 4000 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!

2015-12-03 12:41:04 4000 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB

2015-12-03 12:41:04 4000 [Note] InnoDB: Database physically writes the file full: wait...

2015-12-03 12:41:04 4000 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB

2015-12-03 12:41:06 4000 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB

2015-12-03 12:41:08 4000 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0

2015-12-03 12:41:08 4000 [Warning] InnoDB: New log files created, LSN=45781

2015-12-03 12:41:08 4000 [Note] InnoDB: Doublewrite buffer not found: creating new

2015-12-03 12:41:09 4000 [Note] InnoDB: Doublewrite buffer created

2015-12-03 12:41:09 4000 [Note] InnoDB: 128 rollback segment(s) are active.

2015-12-03 12:41:09 4000 [Warning] InnoDB: Creating foreign key constraint system tables.

2015-12-03 12:41:09 4000 [Note] InnoDB: Foreign key constraint system tables created

2015-12-03 12:41:09 4000 [Note] InnoDB: Creating tablespace and datafile system tables.

2015-12-03 12:41:09 4000 [Note] InnoDB: Tablespace and datafile system tables created.

2015-12-03 12:41:09 4000 [Note] InnoDB: Waiting for purge to start

2015-12-03 12:41:09 4000 [Note] InnoDB:  Percona XtraDB () 5.6.25-73.1 started; log sequence number 0

2015-12-03 12:41:09 4000 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.

2015-12-03 12:41:09 4000 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.

2015-12-03 12:41:41 4000 [Note] Binlog end

2015-12-03 12:41:41 4000 [Note] InnoDB: FTS optimize thread exiting.

2015-12-03 12:41:41 4000 [Note] InnoDB: Starting shutdown...

2015-12-03 12:41:43 4000 [Note] InnoDB: Shutdown completed; log sequence number 1625977

2015-12-03 12:41:43 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2015-12-03 12:41:43 0 [Note] /usr/sbin/mysqld (mysqld 5.6.25-73.1) starting as process 4025 ...

2015-12-03 12:41:43 4025 [Note] InnoDB: Using atomics to ref count buffer pool pages

2015-12-03 12:41:43 4025 [Note] InnoDB: The InnoDB memory heap is disabled

2015-12-03 12:41:43 4025 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2015-12-03 12:41:43 4025 [Note] InnoDB: Memory barrier is not used

2015-12-03 12:41:43 4025 [Note] InnoDB: Compressed tables use zlib 1.2.3

2015-12-03 12:41:43 4025 [Note] InnoDB: Using Linux native AIO

2015-12-03 12:41:43 4025 [Note] InnoDB: Using CPU crc32 instructions

2015-12-03 12:41:43 4025 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2015-12-03 12:41:43 4025 [Note] InnoDB: Completed initialization of buffer pool

2015-12-03 12:41:43 4025 [Note] InnoDB: Highest supported file format is Barracuda.

2015-12-03 12:41:44 4025 [Note] InnoDB: 128 rollback segment(s) are active.

2015-12-03 12:41:44 4025 [Note] InnoDB: Waiting for purge to start

2015-12-03 12:41:44 4025 [Note] InnoDB:  Percona XtraDB () 5.6.25-73.1 started; log sequence number 1625977

2015-12-03 12:41:44 4025 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.

2015-12-03 12:41:44 4025 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.

2015-12-03 12:41:44 4025 [Note] Binlog end

2015-12-03 12:41:44 4025 [Note] InnoDB: FTS optimize thread exiting.

2015-12-03 12:41:44 4025 [Note] InnoDB: Starting shutdown...

2015-12-03 12:41:46 4025 [Note] InnoDB: Shutdown completed; log sequence number 1625987

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'

/usr/bin/mysqladmin -u root -h cent65 password 'new-password'

Alternatively you can run:

/usr/bin/mysql_secure_installation

which 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.

Please report any problems at

https://bugs.launchpad.net/percona-server/+filebug

The latest information about Percona Server is available on the web at

Support Percona by buying support at

WARNING: Default config file /etc/my.cnf exists on the system

This file will be read by default by the MySQL server

If you do not want to use this, either remove it, or use the

--defaults-file argument to mysqld_safe when starting the server

Percona Server is distributed with several useful UDF (User Defined Function) from Percona Toolkit.

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 for more details

------------至此,Percona Server 5.6安装成功 !

四、将数据import到server 5.6

1、启动mysql server

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/e58637ff9fb1b665bd575cbe7c9937f8.html