1. Install Required RPMS specified below , can be downloaded from oracle edelivery site.
rpm -ivh mysql-commercial-devel-5.7.29-1.1.el7.x86_64.rpm --force --nodeps
rpm -ivh mysql-commercial-common-5.7.29-1.1.el7.x86_64.rpm --force --nodeps
rpm -ivh mysql-commercial-client-5.7.29-1.1.el7.x86_64.rpm --force --nodeps
rpm -ivh mysql-commercial-embedded-5.7.29-1.1.el7.x86_64.rpm --force --nodeps
rpm -ivh mysql-commercial-embedded-compat-5.7.29-1.1.el7.x86_64.rpm --force --nodeps
rpm -ivh mysql-commercial-embedded-devel-5.7.29-1.1.el7.x86_64.rpm --force --nodeps
rpm -ivh mysql-commercial-libs-compat-5.7.29-1.1.el7.x86_64.rpm --force --nodeps
rpm -ivh mysql-commercial-libs-5.7.29-1.1.el7.x86_64.rpm --force --nodeps
rpm -ivh mysql-commercial-server-5.7.29-1.1.el7.x86_64.rpm --force --nodeps
rpm -ivh mysql-commercial-test-5.7.29-1.1.el7.x86_64.rpm
2. Check mysql deamon -->root# service mysql status
3. Login to mysql -- you may get this error
[root@xcell trace]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@xcell trace]#
4. Get temporary pass from installation log file
[root@xcell ~]# grep "A temporary password" /var/log/mysqld.log
2020-04-02T12:17:50.275514Z 1 [Note] A temporary password is generated for root@localhost: X(kV9r51Yle*
5. Set current environment calling the utility mysql_secure_installation by using the temporary root password
[root@xcell ~]# 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:
... Failed! Error: Your password does not satisfy the current policy requirements
New password:
Re-enter new password:
... Failed! Error: Your password does not satisfy the current policy requirements
New password:
Re-enter new password:
... Failed! Error: Your password does not satisfy the current policy requirements
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) : y
Success.
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) : n
... skipping.
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!
--> Service mysqld restart
[root@xcell ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.29-enterprise-commercial-advanced MySQL Enterprise Server - Advanced Edition (Commercial)
Copyright (c) 2000, 2020, 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> help
mysql> status
--------------
mysql Ver 14.14 Distrib 5.7.29, for Linux (x86_64) using EditLine wrapper
Connection id: 4
Current database: mysql
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.7.29-enterprise-commercial-advanced MySQL Enterprise Server - Advanced Edition (Commercial)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 2 min 10 sec
Threads: 1 Questions: 46 Slow queries: 0 Opens: 136 Flush tables: 1 Open tables: 129 Queries per second avg: 0.353
--------------
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mydb |
| mysql |
| performance_schema |
| sys |
+--------------------+
5 rows in set (0.00 sec)
mysql> SELECT User, Host, plugin FROM mysql.user;
+-----------+-----------+-----------------------+
| User | Host | plugin |
+-----------+-----------+-----------------------+
| root | localhost | mysql_native_password |
| mysql.sys | localhost | mysql_native_password |
+-----------+-----------+-----------------------+
2 rows in set (0.00 sec)
mysql>