Percona:Install on RHEL6U8
正式开始前,首先安装:createrepo。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
[root@mysql software]# yum install -y createrepo Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package createrepo.noarch 0:0.9.9-24.el6 will be installed --> Processing Dependency: python-deltarpm for package: createrepo-0.9.9-24.el6.noarch --> Running transaction check ---> Package python-deltarpm.x86_64 0:3.5-0.5.20090913git.el6 will be installed --> Processing Dependency: deltarpm = 3.5-0.5.20090913git.el6 for package: python-deltarpm-3.5-0.5.20090913git.el6.x86_64 --> Running transaction check ---> Package deltarpm.x86_64 0:3.5-0.5.20090913git.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ====================================================================================================== Package Arch Version Repository Size ====================================================================================================== Installing: createrepo noarch 0.9.9-24.el6 base 96 k Installing for dependencies: deltarpm x86_64 3.5-0.5.20090913git.el6 base 71 k python-deltarpm x86_64 3.5-0.5.20090913git.el6 base 27 k Transaction Summary ====================================================================================================== Install 3 Package(s) Total download size: 194 k Installed size: 520 k Downloading Packages: (1/3): createrepo-0.9.9-24.el6.noarch.rpm | 96 kB 00:00 (2/3): deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm | 71 kB 00:00 (3/3): python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm | 27 kB 00:00 ------------------------------------------------------------------------------------------------------ Total 184 kB/s | 194 kB 00:01 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 Importing GPG key 0xC105B9DE: Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org> Package: centos-release-6-8.el6.centos.12.3.x86_64 (@anaconda-CentOS-201605220104.x86_64/6.8) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : deltarpm-3.5-0.5.20090913git.el6.x86_64 1/3 Installing : python-deltarpm-3.5-0.5.20090913git.el6.x86_64 2/3 Installing : createrepo-0.9.9-24.el6.noarch 3/3 Verifying : python-deltarpm-3.5-0.5.20090913git.el6.x86_64 1/3 Verifying : deltarpm-3.5-0.5.20090913git.el6.x86_64 2/3 Verifying : createrepo-0.9.9-24.el6.noarch 3/3 Installed: createrepo.noarch 0:0.9.9-24.el6 Dependency Installed: deltarpm.x86_64 0:3.5-0.5.20090913git.el6 python-deltarpm.x86_64 0:3.5-0.5.20090913git.el6 Complete! [root@mysql software]# |
在Percona的官方网站上下载:Percona Server for MySQL需要的安装介质,并上传服务器。
1 2 3 4 5 6 7 8 9 |
[root@mysql software]# pwd /software [root@mysql software]# ls -ltr total 223304 -rw-r--r--. 1 root root 228659200 Jul 11 07:44 Percona-Server-5.7.13-6-re3d58bb-el6-x86_64-bundle.tar [root@mysql software]# [root@mysql software]# du -sh * 219M Percona-Server-5.7.13-6-re3d58bb-el6-x86_64-bundle.tar [root@mysql software]# |
解压:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
[root@mysql software]# tar -xf Percona-Server-5.7.13-6-re3d58bb-el6-x86_64-bundle.tar [root@mysql software]# ls -ltr total 446604 -rw-rw-r--. 1 root root 8400516 Jun 30 00:03 Percona-Server-client-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 143962740 Jun 30 00:03 Percona-Server-57-debuginfo-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 924744 Jun 30 00:03 Percona-Server-shared-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 42272740 Jun 30 00:03 Percona-Server-server-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 1279936 Jun 30 00:03 Percona-Server-devel-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 1555032 Jun 30 00:03 Percona-Server-tokudb-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 30250904 Jun 30 00:03 Percona-Server-test-57-5.7.13-6.1.el6.x86_64.rpm -rw-r--r--. 1 root root 228659200 Jul 11 07:44 Percona-Server-5.7.13-6-re3d58bb-el6-x86_64-bundle.tar [root@mysql software]# [root@mysql software]# du -sh * 219M Percona-Server-5.7.13-6-re3d58bb-el6-x86_64-bundle.tar 138M Percona-Server-57-debuginfo-5.7.13-6.1.el6.x86_64.rpm 8.1M Percona-Server-client-57-5.7.13-6.1.el6.x86_64.rpm 1.3M Percona-Server-devel-57-5.7.13-6.1.el6.x86_64.rpm 41M Percona-Server-server-57-5.7.13-6.1.el6.x86_64.rpm 904K Percona-Server-shared-57-5.7.13-6.1.el6.x86_64.rpm 29M Percona-Server-test-57-5.7.13-6.1.el6.x86_64.rpm 1.5M Percona-Server-tokudb-57-5.7.13-6.1.el6.x86_64.rpm [root@mysql software]# |
创建YUM源:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
[root@mysql software]# ls -al * -rw-r--r--. 1 root root 228659200 Jul 11 07:44 Percona-Server-5.7.13-6-re3d58bb-el6-x86_64-bundle.tar -rw-rw-r--. 1 root root 143962740 Jun 30 00:03 Percona-Server-57-debuginfo-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 8400516 Jun 30 00:03 Percona-Server-client-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 1279936 Jun 30 00:03 Percona-Server-devel-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 42272740 Jun 30 00:03 Percona-Server-server-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 924744 Jun 30 00:03 Percona-Server-shared-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 30250904 Jun 30 00:03 Percona-Server-test-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 1555032 Jun 30 00:03 Percona-Server-tokudb-57-5.7.13-6.1.el6.x86_64.rpm [root@mysql software]# [root@mysql software]# pwd /software [root@mysql software]# [root@mysql software]# createrepo /software/ Spawning worker 0 with 7 pkgs Workers Finished Gathering worker results Saving Primary metadata Saving file lists metadata Saving other metadata Generating sqlite DBs Sqlite DBs complete [root@mysql software]# [root@mysql software]# ls -al total 446616 drwxr-xr-x. 3 root root 4096 Jul 11 20:10 . dr-xr-xr-x. 25 root root 4096 Jul 11 19:19 .. -rw-r--r--. 1 root root 228659200 Jul 11 07:44 Percona-Server-5.7.13-6-re3d58bb-el6-x86_64-bundle.tar -rw-rw-r--. 1 root root 143962740 Jun 30 00:03 Percona-Server-57-debuginfo-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 8400516 Jun 30 00:03 Percona-Server-client-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 1279936 Jun 30 00:03 Percona-Server-devel-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 42272740 Jun 30 00:03 Percona-Server-server-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 924744 Jun 30 00:03 Percona-Server-shared-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 30250904 Jun 30 00:03 Percona-Server-test-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 1555032 Jun 30 00:03 Percona-Server-tokudb-57-5.7.13-6.1.el6.x86_64.rpm drwxr-xr-x. 2 root root 4096 Jul 11 20:10 repodata [root@mysql software]# [root@mysql software]# [root@mysql software]# ls -al * -rw-r--r--. 1 root root 228659200 Jul 11 07:44 Percona-Server-5.7.13-6-re3d58bb-el6-x86_64-bundle.tar -rw-rw-r--. 1 root root 143962740 Jun 30 00:03 Percona-Server-57-debuginfo-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 8400516 Jun 30 00:03 Percona-Server-client-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 1279936 Jun 30 00:03 Percona-Server-devel-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 42272740 Jun 30 00:03 Percona-Server-server-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 924744 Jun 30 00:03 Percona-Server-shared-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 30250904 Jun 30 00:03 Percona-Server-test-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 1555032 Jun 30 00:03 Percona-Server-tokudb-57-5.7.13-6.1.el6.x86_64.rpm repodata: total 284 drwxr-xr-x. 2 root root 4096 Jul 11 20:10 . drwxr-xr-x. 3 root root 4096 Jul 11 20:10 .. -rw-r--r--. 1 root root 3269 Jul 11 20:10 064b1bff7b2063d6d92681b1a5e66ab44d74ce5c815e4e7900e5e5105be9ceb8-other.sqlite.bz2 -rw-r--r--. 1 root root 124130 Jul 11 20:10 45974a7586bf5035e632a7f6aaeb4a47391a8c002a3b72cdcaa11cc344d3e3f7-filelists.xml.gz -rw-r--r--. 1 root root 116818 Jul 11 20:10 785fb6c50eb7146fd17288382d35867c25fc5d8146770f8ab4d41346403377b4-filelists.sqlite.bz2 -rw-r--r--. 1 root root 1369 Jul 11 20:10 88a4bfdd5df1d1beee0bcbc95de6cb6551a0b6542e8c0d85a675db47e99230fa-other.xml.gz -rw-r--r--. 1 root root 4246 Jul 11 20:10 bb2d95f93f3da84bf011e3877e9d763f02eed09931691b19fef7e8817b47f7de-primary.xml.gz -rw-r--r--. 1 root root 13403 Jul 11 20:10 e9fe06d0530981a528640ea9ab58c52e8aa737cd1290f042b039a1eb1f88b6d5-primary.sqlite.bz2 -rw-r--r--. 1 root root 2992 Jul 11 20:10 repomd.xml [root@mysql software]# |
写入YUM源文件:
1 2 3 4 5 6 |
[root@mysql software]# cat /etc/yum.repos.d/percona.repo [Percona] name=Percona baseurl=file:///software gpgcheck=0 [root@mysql software]# |
更新源:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[root@mysql software]# yum repolist Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.163.com Percona | 2.9 kB 00:00 ... Percona/primary_db | 13 kB 00:00 ... repo id repo name status Percona Percona 7 base CentOS-6 - Base 6,696 extras CentOS-6 - Extras 62 updates CentOS-6 - Updates 139 repolist: 6,904 [root@mysql software]# |
安装Percona:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
[root@mysql software]# yum list | grep --color Percona Percona-Server-57-debuginfo.x86_64 5.7.13-6.1.el6 Percona Percona-Server-client-57.x86_64 5.7.13-6.1.el6 Percona Percona-Server-devel-57.x86_64 5.7.13-6.1.el6 Percona Percona-Server-server-57.x86_64 5.7.13-6.1.el6 Percona Percona-Server-shared-57.x86_64 5.7.13-6.1.el6 Percona Percona-Server-test-57.x86_64 5.7.13-6.1.el6 Percona Percona-Server-tokudb-57.x86_64 5.7.13-6.1.el6 Percona [root@mysql software]# [root@mysql software]# yum install Percona-Server-server-57.x86_64 Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package Percona-Server-server-57.x86_64 0:5.7.13-6.1.el6 will be installed --> Processing Dependency: Percona-Server-shared-57 for package: Percona-Server-server-57-5.7.13-6.1.el6.x86_64 --> Processing Dependency: Percona-Server-client-57 for package: Percona-Server-server-57-5.7.13-6.1.el6.x86_64 --> Running transaction check ---> Package Percona-Server-client-57.x86_64 0:5.7.13-6.1.el6 will be installed ---> Package Percona-Server-shared-57.x86_64 0:5.7.13-6.1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ====================================================================================================== Package Arch Version Repository Size ====================================================================================================== Installing: Percona-Server-server-57 x86_64 5.7.13-6.1.el6 Percona 40 M Installing for dependencies: Percona-Server-client-57 x86_64 5.7.13-6.1.el6 Percona 8.0 M Percona-Server-shared-57 x86_64 5.7.13-6.1.el6 Percona 903 k Transaction Summary ====================================================================================================== Install 3 Package(s) Total download size: 49 M Installed size: 218 M Is this ok [y/N]: y Downloading Packages: ------------------------------------------------------------------------------------------------------ Total 193 MB/s | 49 MB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : Percona-Server-shared-57-5.7.13-6.1.el6.x86_64 1/3 Installing : Percona-Server-client-57-5.7.13-6.1.el6.x86_64 2/3 Installing : Percona-Server-server-57-5.7.13-6.1.el6.x86_64 3/3 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.7/management/udf_percona_toolkit.html for more details Verifying : Percona-Server-client-57-5.7.13-6.1.el6.x86_64 1/3 Verifying : Percona-Server-shared-57-5.7.13-6.1.el6.x86_64 2/3 Verifying : Percona-Server-server-57-5.7.13-6.1.el6.x86_64 3/3 Installed: Percona-Server-server-57.x86_64 0:5.7.13-6.1.el6 Dependency Installed: Percona-Server-client-57.x86_64 0:5.7.13-6.1.el6 Percona-Server-shared-57.x86_64 0:5.7.13-6.1.el6 Complete! [root@mysql software]# |
安装后检查:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 |
[root@mysql software]# rpm -qa | grep Percona Percona-Server-client-57-5.7.13-6.1.el6.x86_64 Percona-Server-server-57-5.7.13-6.1.el6.x86_64 Percona-Server-shared-57-5.7.13-6.1.el6.x86_64 [root@mysql software]# [root@mysql software]# rpm -ql Percona-Server-server-57-5.7.13-6.1.el6.x86_64 /etc/init.d/mysql /etc/logrotate.d/mysql /usr/bin/innochecksum /usr/bin/lz4_decompress /usr/bin/my_print_defaults /usr/bin/myisam_ftdump /usr/bin/myisamchk /usr/bin/myisamlog /usr/bin/myisampack /usr/bin/mysql_install_db /usr/bin/mysql_plugin /usr/bin/mysql_secure_installation /usr/bin/mysql_ssl_rsa_setup /usr/bin/mysql_tzinfo_to_sql /usr/bin/mysql_upgrade /usr/bin/mysqld_multi /usr/bin/mysqld_safe /usr/bin/mysqldumpslow /usr/bin/perror /usr/bin/replace /usr/bin/resolve_stack_dump /usr/bin/resolveip /usr/bin/zlib_decompress /usr/lib64/mysql/mecab /usr/lib64/mysql/mecab/dic /usr/lib64/mysql/mecab/dic/ipadic /usr/lib64/mysql/mecab/dic/ipadic/char.bin /usr/lib64/mysql/mecab/dic/ipadic/dicrc /usr/lib64/mysql/mecab/dic/ipadic/left-id.def /usr/lib64/mysql/mecab/dic/ipadic/matrix.bin /usr/lib64/mysql/mecab/dic/ipadic/pos-id.def /usr/lib64/mysql/mecab/dic/ipadic/rewrite.def /usr/lib64/mysql/mecab/dic/ipadic/right-id.def /usr/lib64/mysql/mecab/dic/ipadic/sys.dic /usr/lib64/mysql/mecab/dic/ipadic/unk.dic /usr/lib64/mysql/mecab/etc /usr/lib64/mysql/mecab/etc/mecabrc /usr/lib64/mysql/plugin /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/debug /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/dialog.so /usr/lib64/mysql/plugin/debug/ha_example.so /usr/lib64/mysql/plugin/debug/innodb_engine.so /usr/lib64/mysql/plugin/debug/keyring_file.so /usr/lib64/mysql/plugin/debug/keyring_udf.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/libpluginmecab.so /usr/lib64/mysql/plugin/debug/locking_service.so /usr/lib64/mysql/plugin/debug/mypluglib.so /usr/lib64/mysql/plugin/debug/mysql_no_login.so /usr/lib64/mysql/plugin/debug/mysqlx.so /usr/lib64/mysql/plugin/debug/query_response_time.so /usr/lib64/mysql/plugin/debug/rewrite_example.so /usr/lib64/mysql/plugin/debug/rewriter.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/debug/version_token.so /usr/lib64/mysql/plugin/dialog.so /usr/lib64/mysql/plugin/ha_example.so /usr/lib64/mysql/plugin/innodb_engine.so /usr/lib64/mysql/plugin/keyring_file.so /usr/lib64/mysql/plugin/keyring_udf.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/libpluginmecab.so /usr/lib64/mysql/plugin/locking_service.so /usr/lib64/mysql/plugin/mypluglib.so /usr/lib64/mysql/plugin/mysql_no_login.so /usr/lib64/mysql/plugin/mysqlx.so /usr/lib64/mysql/plugin/query_response_time.so /usr/lib64/mysql/plugin/rewrite_example.so /usr/lib64/mysql/plugin/rewriter.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/lib64/mysql/plugin/version_token.so /usr/sbin/mysqld /usr/sbin/mysqld-debug /usr/share/doc/Percona-Server-server-57-5.7.13 /usr/share/doc/Percona-Server-server-57-5.7.13/COPYING /usr/share/doc/Percona-Server-server-57-5.7.13/INFO_BIN /usr/share/doc/Percona-Server-server-57-5.7.13/INFO_SRC /usr/share/doc/Percona-Server-server-57-5.7.13/README /usr/share/doc/Percona-Server-server-57-5.7.13/my-default.cnf /usr/share/man/man1/innochecksum.1.gz /usr/share/man/man1/lz4_decompress.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_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_ssl_rsa_setup.1.gz /usr/share/man/man1/mysql_tzinfo_to_sql.1.gz /usr/share/man/man1/mysql_upgrade.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/mysqlman.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/man1/zlib_decompress.1.gz /usr/share/man/man8/mysqld.8.gz /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/install_rewriter.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_security_commands.sql /usr/share/percona-server/mysql_sys_schema.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/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 /usr/share/percona-server/uninstall_rewriter.sql /var/lib/mysql /var/lib/mysql-files /var/lib/mysql-keyring /var/run/mysqld [root@mysql software]# [root@mysql software]# rpm -ql Percona-Server-client-57-5.7.13-6.1.el6.x86_64 /usr/bin/mysql /usr/bin/mysql_config /usr/bin/mysql_config-64 /usr/bin/mysql_config_editor /usr/bin/mysqladmin /usr/bin/mysqlbinlog /usr/bin/mysqlcheck /usr/bin/mysqldump /usr/bin/mysqlimport /usr/bin/mysqlpump /usr/bin/mysqlshow /usr/bin/mysqlslap /usr/share/doc/Percona-Server-client-57-5.7.13 /usr/share/doc/Percona-Server-client-57-5.7.13/COPYING /usr/share/doc/Percona-Server-client-57-5.7.13/README /usr/share/man/man1/mysql.1.gz /usr/share/man/man1/mysql_config_editor.1.gz /usr/share/man/man1/mysqladmin.1.gz /usr/share/man/man1/mysqlbinlog.1.gz /usr/share/man/man1/mysqlcheck.1.gz /usr/share/man/man1/mysqldump.1.gz /usr/share/man/man1/mysqlimport.1.gz /usr/share/man/man1/mysqlpump.1.gz /usr/share/man/man1/mysqlshow.1.gz /usr/share/man/man1/mysqlslap.1.gz [root@mysql software]# [root@mysql software]# rpm -ql Percona-Server-shared-57-5.7.13-6.1.el6.x86_64 /etc/ld.so.conf.d/mysql-x86_64.conf /usr/lib64/mysql /usr/lib64/mysql/libmysqlclient.so.20 /usr/lib64/mysql/libmysqlclient.so.20.3.0 /usr/share/doc/Percona-Server-shared-57-5.7.13 /usr/share/doc/Percona-Server-shared-57-5.7.13/COPYING /usr/share/doc/Percona-Server-shared-57-5.7.13/README [root@mysql software]# |
启动:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
[root@mysql software]# /etc/init.d/mysql -h Usage: /etc/init.d/mysql {start|stop|status|restart|condrestart|try-restart|reload|force-reload} [root@mysql software]# [root@mysql software]# /etc/init.d/mysql status mysqld is stopped [root@mysql software]# [root@mysql software]# ps -ef | grep mysql root 25762 25315 0 23:02 pts/0 00:00:00 grep mysql [root@mysql software]# [root@mysql software]# netstat -tupln | grep mysql [root@mysql software]# [root@mysql software]# /etc/init.d/mysql start Initializing MySQL database: [ OK ] Installing validate password plugin: [ OK ] Starting mysqld: [ OK ] [root@mysql software]# [root@mysql software]# [root@mysql software]# ps -ef | grep mysql root 25863 1 0 23:03 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql mysql 26097 25863 0 23:03 pts/0 00:00:01 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock root 26132 25315 0 23:08 pts/0 00:00:00 grep mysql [root@mysql software]# [root@mysql software]# netstat -tupln | grep mysql tcp 0 0 :::3306 :::* LISTEN 26097/mysqld [root@mysql software]# |
这样MySQL服务就启动成功了。
登录:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[root@mysql ~]# mysql -u root -p'pfd.xjq;y4yN' mysql: [Warning] Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 6 Server version: 5.7.13-6 Copyright (c) 2009-2016 Percona LLC and/or its affiliates Copyright (c) 2000, 2016, 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> |
——————————————————————
Done。
set password = password(‘xxx’);
Percona MySQL Server 5.7 for RHEL 7:
https://www.percona.com/downloads/Percona-Server-LATEST/