Sunteți pe pagina 1din 4

[root@oracledb01 mysql]# yum install Percona-Server-server-57

Loaded plugins: fastestmirror, langpacks


Loading mirror speeds from cached hostfile
* base: ftp.usf.edu
* epel: mirror.oss.ou.edu
* extras: mirror.teklinks.com
* updates: mirror.teklinks.com
Resolving Dependencies
--> Running transaction check
---> Package Percona-Server-server-57.x86_64 0:5.7.18-15.1.el7 will be installed
--> Processing Dependency: Percona-Server-shared-57 for package: Percona-Server-
server-57-5.7.18-15.1.el7.x86_64
--> Processing Dependency: Percona-Server-client-57 for package: Percona-Server-
server-57-5.7.18-15.1.el7.x86_64
--> Running transaction check
---> Package Percona-Server-client-57.x86_64 0:5.7.18-15.1.el7 will be installed
---> Package Percona-Server-shared-57.x86_64 0:5.7.18-15.1.el7 will be installed
--> Processing Dependency: Percona-Server-shared-compat-57 for package: Percona-
Server-shared-57-5.7.18-15.1.el7.x86_64
--> Running transaction check
---> Package Percona-Server-shared-compat-57.x86_64 0:5.7.18-15.1.el7 will be
installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
=============================================================
Package Arch Version
Repository Size
===================================================================================
=============================================================
Installing:
Percona-Server-server-57 x86_64 5.7.18-15.1.el7
percona-release-x86_64 39 M
Installing for dependencies:
Percona-Server-client-57 x86_64 5.7.18-15.1.el7
percona-release-x86_64 7.1 M
Percona-Server-shared-57 x86_64 5.7.18-15.1.el7
percona-release-x86_64 747 k
Percona-Server-shared-compat-57 x86_64 5.7.18-15.1.el7
percona-release-x86_64 1.2 M

Transaction Summary
===================================================================================
=============================================================
Install 1 Package (+3 Dependent packages)

Total download size: 48 M


Installed size: 231 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/percona-release-x86_64/packages/Percona-Server-
client-57-5.7.18-15.1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID
cd2efd2a: NOKEY
Public key for Percona-Server-client-57-5.7.18-15.1.el7.x86_64.rpm is not installed
(1/4): Percona-Server-client-57-5.7.18-15.1.el7.x86_64.rpm
| 7.1 MB 00:00:01
(2/4): Percona-Server-shared-57-5.7.18-15.1.el7.x86_64.rpm
| 747 kB 00:00:00
(3/4): Percona-Server-shared-compat-57-5.7.18-15.1.el7.x86_64.rpm
| 1.2 MB 00:00:00
(4/4): Percona-Server-server-57-5.7.18-15.1.el7.x86_64.rpm
| 39 MB 00:00:06
-----------------------------------------------------------------------------------
-------------------------------------------------------------
Total
6.9 MB/s | 48 MB 00:00:06
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Percona
Importing GPG key 0xCD2EFD2A:
Userid : "Percona MySQL Development Team <mysql-dev@percona.com>"
Fingerprint: 430b df5c 56e7 c94e 848e e60c 1c4c bdcd cd2e fd2a
Package : percona-release-0.1-4.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-Percona
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : Percona-Server-shared-compat-57-5.7.18-15.1.el7.x86_64
1/4
Installing : Percona-Server-shared-57-5.7.18-15.1.el7.x86_64
2/4
Installing : Percona-Server-client-57-5.7.18-15.1.el7.x86_64
3/4
Installing : Percona-Server-server-57-5.7.18-15.1.el7.x86_64
4/4
-------------
* The suggested mysql options and settings are in /etc/percona-
server.conf.d/mysqld.cnf
* If you want to use mysqld.cnf as default configuration file please make
backup of /etc/my.cnf
* Once it is done please execute the following commands:
rm -rf /etc/my.cnf
update-alternatives --install /etc/my.cnf my.cnf "/etc/percona-server.cnf" 200
-------------
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.18-15.1.el7.x86_64
1/4
Verifying : Percona-Server-shared-57-5.7.18-15.1.el7.x86_64
2/4
Verifying : Percona-Server-shared-compat-57-5.7.18-15.1.el7.x86_64
3/4
Verifying : Percona-Server-server-57-5.7.18-15.1.el7.x86_64
4/4

Installed:
Percona-Server-server-57.x86_64 0:5.7.18-15.1.el7

Dependency Installed:
Percona-Server-client-57.x86_64 0:5.7.18-15.1.el7
Percona-Server-shared-57.x86_64 0:5.7.18-15.1.el7
Percona-Server-shared-compat-57.x86_64 0:5.7.18-15.1.el7

Complete!
[root@oracledb01 mysql]# cat /var/log/mysqld.log | grep "temporary password"
[root@oracledb01 mysql]# service mysql start
Redirecting to /bin/systemctl start mysql.service
[root@oracledb01 mysql]# service mysql status
Redirecting to /bin/systemctl status mysql.service
mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset:
disabled)
Active: active (running) since Thu 2017-06-15 19:58:46 EDT; 13s ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 6388 ExecStart=/usr/sbin/mysqld --daemonize --pid-
file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
Process: 6330 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited,
status=0/SUCCESS)
Main PID: 6392 (mysqld)
CGroup: /system.slice/mysqld.service
6392 /usr/sbin/mysqld --daemonize --pid-
file=/var/run/mysqld/mysqld.pid

Jun 15 19:58:31 oracledb01 systemd[1]: Starting MySQL Server...


Jun 15 19:58:46 oracledb01 systemd[1]: Started MySQL Server.
[root@oracledb01 mysql]# cat /var/log/mysqld.log | grep "temporary password"
2017-06-15T23:58:43.793679Z 1 [Note] A temporary password is generated for
root@localhost: bOw3iuFm5X*(

[root@oracledb02 ~]# /usr/bin/mysql_secure_installation

Securing the MySQL server deployment.

Enter password for user root:

The existing password for the user account root has expired. Please set a new
password.

New password:

Re-enter new password:


The 'validate_password' plugin is installed on the server.
The subsequent steps will run with the existing configuration
of the plugin.
Using existing password for root.

Estimated strength of the password: 100


Change the password for root ? ((Press y|Y for Yes, any other key for No) : Y

New password:

Re-enter new password:

Estimated strength of the password: 100


Do you wish to continue with the password provided?(Press y|Y for Yes, any other
key for No) : Y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.

Remove anonymous users? (Press y|Y for Yes, any other key for No) : Y
Success.

Normally, root should only be allowed to connect from


'localhost'. This ensures that someone cannot guess at
the root password from the network.

Disallow root login remotely? (Press y|Y for Yes, any other key for No) : n

... skipping.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.

Remove test database and access to it? (Press y|Y for Yes, any other key for No) :
Y
- Dropping test database...
Success.

- Removing privileges on test database...


Success.

Reloading the privilege tables will ensure that all changes


made so far will take effect immediately.

Reload privilege tables now? (Press y|Y for Yes, any other key for No) : Y
Success.

All done!
[root@oracledb02 ~]#

S-ar putea să vă placă și