mysql percona server_MySQL Study之--Percona Server版本号

边翔宇
2023-12-01

[root@mysql2 soft]# rpm -vih Percona-Server-client-56-5.6.25-rel73.1.el6.x86_64.rpm --force

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%]

3、安装Percona-Server-server

[root@mysql2 soft]# rpm -vih Percona-Server-server-56-5.6.25-rel73.1.el6.x86_64.rpm

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%]

/usr/bin/my_print_defaults: /usr/lib/libcrypto.so.10: no version information available (required by /usr/bin/my_print_defaults)

/usr/bin/my_print_defaults: /usr/lib/libcrypto.so.10: no version information available (required by /usr/bin/my_print_defaults)

/usr/sbin/mysqld: /usr/lib/libssl.so.10: no version information available (required by /usr/sbin/mysqld)

/usr/sbin/mysqld: /usr/lib/libcrypto.so.10: no version information available (required by /usr/sbin/mysqld)

2015-08-11 11:24:39 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2015-08-11 11:24:39 0 [Note] /usr/sbin/mysqld (mysqld 5.6.25-73.1) starting as process 7142 ...

2015-08-11 11:24:39 7142 [Note] InnoDB: Using atomics to ref count buffer pool pages

2015-08-11 11:24:39 7142 [Note] InnoDB: The InnoDB memory heap is disabled

2015-08-11 11:24:39 7142 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2015-08-11 11:24:39 7142 [Note] InnoDB: Memory barrier is not used

2015-08-11 11:24:39 7142 [Note] InnoDB: Compressed tables use zlib 1.2.3

2015-08-11 11:24:39 7142 [Note] InnoDB: Using Linux native AIO

2015-08-11 11:24:39 7142 [Note] InnoDB: Not using CPU crc32 instructions

2015-08-11 11:24:39 7142 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2015-08-11 11:24:39 7142 [Note] InnoDB: Completed initialization of buffer pool

2015-08-11 11:24:40 7142 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!

2015-08-11 11:24:40 7142 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB

2015-08-11 11:24:40 7142 [Note] InnoDB: Database physically writes the file full: wait...

2015-08-11 11:24:40 7142 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB

2015-08-11 11:24:41 7142 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB

2015-08-11 11:24:41 7142 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0

2015-08-11 11:24:41 7142 [Warning] InnoDB: New log files created, LSN=45781

2015-08-11 11:24:41 7142 [Note] InnoDB: Doublewrite buffer not found: creating new

2015-08-11 11:24:41 7142 [Note] InnoDB: Doublewrite buffer created

2015-08-11 11:24:41 7142 [Note] InnoDB: 128 rollback segment(s) are active.

2015-08-11 11:24:41 7142 [Warning] InnoDB: Creating foreign key constraint system tables.

2015-08-11 11:24:41 7142 [Note] InnoDB: Foreign key constraint system tables created

2015-08-11 11:24:41 7142 [Note] InnoDB: Creating tablespace and datafile system tables.

2015-08-11 11:24:41 7142 [Note] InnoDB: Tablespace and datafile system tables created.

2015-08-11 11:24:41 7142 [Note] InnoDB: Waiting for purge to start

2015-08-11 11:24:41 7142 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.25-73.1 started; log sequence number 0

2015-08-11 11:24:41 7142 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.

2015-08-11 11:24:41 7142 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.

2015-08-11 11:24:43 7142 [Note] Binlog end

2015-08-11 11:24:43 7142 [Note] InnoDB: FTS optimize thread exiting.

2015-08-11 11:24:43 7142 [Note] InnoDB: Starting shutdown...

2015-08-11 11:24:45 7142 [Note] InnoDB: Shutdown completed; log sequence number 1625977

/usr/sbin/mysqld: /usr/lib/libssl.so.10: no version information available (required by /usr/sbin/mysqld)

/usr/sbin/mysqld: /usr/lib/libcrypto.so.10: no version information available (required by /usr/sbin/mysqld)

2015-08-11 11:24:45 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2015-08-11 11:24:45 0 [Note] /usr/sbin/mysqld (mysqld 5.6.25-73.1) starting as process 7166 ...

2015-08-11 11:24:45 7166 [Note] InnoDB: Using atomics to ref count buffer pool pages

2015-08-11 11:24:45 7166 [Note] InnoDB: The InnoDB memory heap is disabled

2015-08-11 11:24:45 7166 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2015-08-11 11:24:45 7166 [Note] InnoDB: Memory barrier is not used

2015-08-11 11:24:45 7166 [Note] InnoDB: Compressed tables use zlib 1.2.3

2015-08-11 11:24:45 7166 [Note] InnoDB: Using Linux native AIO

2015-08-11 11:24:45 7166 [Note] InnoDB: Not using CPU crc32 instructions

2015-08-11 11:24:45 7166 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2015-08-11 11:24:45 7166 [Note] InnoDB: Completed initialization of buffer pool

2015-08-11 11:24:45 7166 [Note] InnoDB: Highest supported file format is Barracuda.

2015-08-11 11:24:45 7166 [Note] InnoDB: 128 rollback segment(s) are active.

2015-08-11 11:24:45 7166 [Note] InnoDB: Waiting for purge to start

2015-08-11 11:24:45 7166 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.25-73.1 started; log sequence number 1625977

2015-08-11 11:24:45 7166 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.

2015-08-11 11:24:45 7166 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.

2015-08-11 11:24:45 7166 [Note] Binlog end

2015-08-11 11:24:45 7166 [Note] InnoDB: FTS optimize thread exiting.

2015-08-11 11:24:45 7166 [Note] InnoDB: Starting shutdown...

2015-08-11 11:24:47 7166 [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 mysql2 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

http://www.percona.com/software/percona-server

Support Percona by buying support at

http://www.percona.com/products/mysql-support

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 http://www.percona.com/doc/percona-server/5.6/management/udf_percona_toolkit.html for more details

查询安装信息:

[root@mysql2 soft]# rpm -qa |grep -i percona

Percona-Server-server-56-5.6.25-rel73.1.el6.x86_64

Percona-Server-shared-56-5.6.25-rel73.1.el6.x86_64

Percona-Server-client-56-5.6.25-rel73.1.el6.x86_64

[root@mysql2 soft]# rpm -ql Percona-Server-server-56-5.6.25-rel73.1.el6.x86_64

/etc/init.d/mysql

/etc/logrotate.d/mysql

/etc/my.cnf

/usr/bin/innochecksum

/usr/bin/my_print_defaults

/usr/bin/myisam_ftdump

/usr/bin/myisamchk

/usr/bin/myisamlog

/usr/bin/myisampack

/usr/bin/mysql_convert_table_format

/usr/bin/mysql_fix_extensions

/usr/bin/mysql_install_db

/usr/bin/mysql_plugin

/usr/bin/mysql_secure_installation

/usr/bin/mysql_setpermission

/usr/bin/mysql_tzinfo_to_sql

/usr/bin/mysql_upgrade

/usr/bin/mysql_zap

/usr/bin/mysqlbug

/usr/bin/mysqld_multi

/usr/bin/mysqld_safe

/usr/bin/mysqldumpslow

/usr/bin/mysqlhotcopy

/usr/bin/mysqltest

/usr/bin/perror

/usr/bin/replace

/usr/bin/resolve_stack_dump

/usr/bin/resolveip

/usr/lib64/mysql/plugin/adt_null.so

/usr/lib64/mysql/plugin/audit_log.so

/usr/lib64/mysql/plugin/auth.so

/usr/lib64/mysql/plugin/auth_pam.so

/usr/lib64/mysql/plugin/auth_pam_compat.so

/usr/lib64/mysql/plugin/auth_socket.so

/usr/lib64/mysql/plugin/auth_test_plugin.so

/usr/lib64/mysql/plugin/daemon_example.ini

/usr/lib64/mysql/plugin/debug/adt_null.so

/usr/lib64/mysql/plugin/debug/audit_log.so

/usr/lib64/mysql/plugin/debug/auth.so

/usr/lib64/mysql/plugin/debug/auth_pam.so

/usr/lib64/mysql/plugin/debug/auth_pam_compat.so

/usr/lib64/mysql/plugin/debug/auth_socket.so

/usr/lib64/mysql/plugin/debug/auth_test_plugin.so

/usr/lib64/mysql/plugin/debug/dialog.so

/usr/lib64/mysql/plugin/debug/handlersocket.so

/usr/lib64/mysql/plugin/debug/innodb_engine.so

/usr/lib64/mysql/plugin/debug/libdaemon_example.so

/usr/lib64/mysql/plugin/debug/libfnv1a_udf.so

/usr/lib64/mysql/plugin/debug/libfnv_udf.so

/usr/lib64/mysql/plugin/debug/libmemcached.so

/usr/lib64/mysql/plugin/debug/libmurmur_udf.so

/usr/lib64/mysql/plugin/debug/mypluglib.so

/usr/lib64/mysql/plugin/debug/mysql_no_login.so

/usr/lib64/mysql/plugin/debug/qa_auth_client.so

/usr/lib64/mysql/plugin/debug/qa_auth_interface.so

/usr/lib64/mysql/plugin/debug/qa_auth_server.so

/usr/lib64/mysql/plugin/debug/query_response_time.so

/usr/lib64/mysql/plugin/debug/scalability_metrics.so

/usr/lib64/mysql/plugin/debug/semisync_master.so

/usr/lib64/mysql/plugin/debug/semisync_slave.so

/usr/lib64/mysql/plugin/debug/validate_password.so

/usr/lib64/mysql/plugin/dialog.so

/usr/lib64/mysql/plugin/handlersocket.so

/usr/lib64/mysql/plugin/innodb_engine.so

/usr/lib64/mysql/plugin/libdaemon_example.so

/usr/lib64/mysql/plugin/libfnv1a_udf.so

/usr/lib64/mysql/plugin/libfnv_udf.so

/usr/lib64/mysql/plugin/libmemcached.so

/usr/lib64/mysql/plugin/libmurmur_udf.so

/usr/lib64/mysql/plugin/mypluglib.so

/usr/lib64/mysql/plugin/mysql_no_login.so

/usr/lib64/mysql/plugin/qa_auth_client.so

/usr/lib64/mysql/plugin/qa_auth_interface.so

/usr/lib64/mysql/plugin/qa_auth_server.so

/usr/lib64/mysql/plugin/query_response_time.so

/usr/lib64/mysql/plugin/scalability_metrics.so

/usr/lib64/mysql/plugin/semisync_master.so

/usr/lib64/mysql/plugin/semisync_slave.so

/usr/lib64/mysql/plugin/validate_password.so

/usr/sbin/mysqld

/usr/sbin/mysqld-debug

/usr/sbin/rcmysql

/usr/share/doc/Percona-Server-server-56-5.6.25

/usr/share/doc/Percona-Server-server-56-5.6.25/COPYING

/usr/share/doc/Percona-Server-server-56-5.6.25/INFO_BIN

/usr/share/doc/Percona-Server-server-56-5.6.25/INFO_SRC

/usr/share/doc/Percona-Server-server-56-5.6.25/README

/usr/share/doc/Percona-Server-server-56-5.6.25/my-default.cnf

/usr/share/info/mysql.info.gz

/usr/share/man/man1/innochecksum.1.gz

/usr/share/man/man1/my_print_defaults.1.gz

/usr/share/man/man1/myisam_ftdump.1.gz

/usr/share/man/man1/myisamchk.1.gz

/usr/share/man/man1/myisamlog.1.gz

/usr/share/man/man1/myisampack.1.gz

/usr/share/man/man1/mysql.server.1.gz

/usr/share/man/man1/mysql_convert_table_format.1.gz

/usr/share/man/man1/mysql_fix_extensions.1.gz

/usr/share/man/man1/mysql_install_db.1.gz

/usr/share/man/man1/mysql_plugin.1.gz

/usr/share/man/man1/mysql_secure_installation.1.gz

/usr/share/man/man1/mysql_setpermission.1.gz

/usr/share/man/man1/mysql_tzinfo_to_sql.1.gz

/usr/share/man/man1/mysql_upgrade.1.gz

/usr/share/man/man1/mysql_zap.1.gz

/usr/share/man/man1/mysqlbug.1.gz

/usr/share/man/man1/mysqld_multi.1.gz

/usr/share/man/man1/mysqld_safe.1.gz

/usr/share/man/man1/mysqldumpslow.1.gz

/usr/share/man/man1/mysqlhotcopy.1.gz

/usr/share/man/man1/mysqlman.1.gz

/usr/share/man/man1/mysqltest.1.gz

/usr/share/man/man1/perror.1.gz

/usr/share/man/man1/replace.1.gz

/usr/share/man/man1/resolve_stack_dump.1.gz

/usr/share/man/man1/resolveip.1.gz

/usr/share/man/man8/mysqld.8.gz

/usr/share/percona-server/SELinux

/usr/share/percona-server/SELinux/RHEL4

/usr/share/percona-server/SELinux/RHEL4/mysql.fc

/usr/share/percona-server/SELinux/RHEL4/mysql.te

/usr/share/percona-server/binary-configure

/usr/share/percona-server/bulgarian

/usr/share/percona-server/bulgarian/errmsg.sys

/usr/share/percona-server/charsets

/usr/share/percona-server/charsets/Index.xml

/usr/share/percona-server/charsets/README

/usr/share/percona-server/charsets/armscii8.xml

/usr/share/percona-server/charsets/ascii.xml

/usr/share/percona-server/charsets/cp1250.xml

/usr/share/percona-server/charsets/cp1251.xml

/usr/share/percona-server/charsets/cp1256.xml

/usr/share/percona-server/charsets/cp1257.xml

/usr/share/percona-server/charsets/cp850.xml

/usr/share/percona-server/charsets/cp852.xml

/usr/share/percona-server/charsets/cp866.xml

/usr/share/percona-server/charsets/dec8.xml

/usr/share/percona-server/charsets/geostd8.xml

/usr/share/percona-server/charsets/greek.xml

/usr/share/percona-server/charsets/hebrew.xml

/usr/share/percona-server/charsets/hp8.xml

/usr/share/percona-server/charsets/keybcs2.xml

/usr/share/percona-server/charsets/koi8r.xml

/usr/share/percona-server/charsets/koi8u.xml

/usr/share/percona-server/charsets/latin1.xml

/usr/share/percona-server/charsets/latin2.xml

/usr/share/percona-server/charsets/latin5.xml

/usr/share/percona-server/charsets/latin7.xml

/usr/share/percona-server/charsets/macce.xml

/usr/share/percona-server/charsets/macroman.xml

/usr/share/percona-server/charsets/swe7.xml

/usr/share/percona-server/czech

/usr/share/percona-server/czech/errmsg.sys

/usr/share/percona-server/danish

/usr/share/percona-server/danish/errmsg.sys

/usr/share/percona-server/dictionary.txt

/usr/share/percona-server/dutch

/usr/share/percona-server/dutch/errmsg.sys

/usr/share/percona-server/english

/usr/share/percona-server/english/errmsg.sys

/usr/share/percona-server/errmsg-utf8.txt

/usr/share/percona-server/estonian

/usr/share/percona-server/estonian/errmsg.sys

/usr/share/percona-server/fill_help_tables.sql

/usr/share/percona-server/french

/usr/share/percona-server/french/errmsg.sys

/usr/share/percona-server/german

/usr/share/percona-server/german/errmsg.sys

/usr/share/percona-server/greek

/usr/share/percona-server/greek/errmsg.sys

/usr/share/percona-server/hungarian

/usr/share/percona-server/hungarian/errmsg.sys

/usr/share/percona-server/innodb_memcached_config.sql

/usr/share/percona-server/italian

/usr/share/percona-server/italian/errmsg.sys

/usr/share/percona-server/japanese

/usr/share/percona-server/japanese/errmsg.sys

/usr/share/percona-server/korean

/usr/share/percona-server/korean/errmsg.sys

/usr/share/percona-server/magic

/usr/share/percona-server/my-default.cnf

/usr/share/percona-server/mysql-log-rotate

/usr/share/percona-server/mysql.server

/usr/share/percona-server/mysql_security_commands.sql

/usr/share/percona-server/mysql_system_tables.sql

/usr/share/percona-server/mysql_system_tables_data.sql

/usr/share/percona-server/mysql_test_data_timezone.sql

/usr/share/percona-server/mysqld_multi.server

/usr/share/percona-server/norwegian

/usr/share/percona-server/norwegian-ny

/usr/share/percona-server/norwegian-ny/errmsg.sys

/usr/share/percona-server/norwegian/errmsg.sys

/usr/share/percona-server/polish

/usr/share/percona-server/polish/errmsg.sys

/usr/share/percona-server/portuguese

/usr/share/percona-server/portuguese/errmsg.sys

/usr/share/percona-server/romanian

/usr/share/percona-server/romanian/errmsg.sys

/usr/share/percona-server/russian

/usr/share/percona-server/russian/errmsg.sys

/usr/share/percona-server/serbian

/usr/share/percona-server/serbian/errmsg.sys

/usr/share/percona-server/slovak

/usr/share/percona-server/slovak/errmsg.sys

/usr/share/percona-server/spanish

/usr/share/percona-server/spanish/errmsg.sys

/usr/share/percona-server/swedish

/usr/share/percona-server/swedish/errmsg.sys

/usr/share/percona-server/ukrainian

/usr/share/percona-server/ukrainian/errmsg.sys

二、配置Percona-Server

[root@mysql2 soft]# cat /etc/my.cnf

[mysqld]

datadir=/var/lib/mysql

socket=/var/lib/mysql/mysql.sock

user=mysql

# Disabling symbolic-links is recommended to prevent assorted security risks

symbolic-links=0

[mysqld_safe]

log-error=/var/log/mysqld.log

pid-file=/var/run/mysqld/mysqld.pid

 类似资料: