Professional Documents
Culture Documents
MySQL Installation SOP Ver1.0
MySQL Installation SOP Ver1.0
Database
Blue Cross and Blue Shield of Illinois, Blue Cross and Blue Shield of Montana,
Blue Cross and Blue Shield of New Mexico, Blue Shield of Oklahoma, and Blue Cross and Blue Shield of Texas
Divisions of Health Care Service Corporation, a Mutual Legal Reserve Company, an Independent Licensee of the Blue
Cross and Blue Shield Association.
DBMS Roles & Responsibilities for No Excuses
TABLE OF CONTENTS
Revision History ............................................................................................................................ 1
1 Purpose .............................................................................................................................. 2
2 Overview ............................................................................................................................ 2
3 Prerequisites ..................................................................................................................... 2
3.1 Security requests .............................................................................................................................. 2
3.2 MySQL software ............................................................................................................................... 3
4 Implementation ................................................................................................................. 3
4.1 Prep/verify system environment ....................................................................................................... 3
4.2 Check for existing DBMSs ................................................................................................................ 4
4.3 Install MySQL DBMS ........................................................................................................................ 5
4.4 Start the MySQL service (mysqld) .................................................................................................... 5
4.5 Secure the installation ...................................................................................................................... 7
4.6 Verify installation ............................................................................................................................... 8
Appendix A – MySQL Install Output ........................................................................................... 9
Appendix B - mysql_secure_installation Output .................................................................... 11
Figures
No table of figures entries found.
Tables
No table of figures entries found.
Revision History
Version Date Description Modified by
1.0 4/25/2018 Initial draft document. Fish Pierce
1 Purpose
This document describes the actions to install MySQL on a Linux system..
2 Overview
3 Prerequisites
Installing MySQL will require certain items to be in place prior to implementation time. Due
to the time needed to submit requests and obtain approvals, the prerequisites should be
started at least 2 weeks prior to the install.
NOTE: This document was built from an installation of an older version (v5.6.x) of MySQL.
4 Implementation
v. Backup : /backup/<db>
3. Config files
a. /etc/ssh/ssh_config : Add or change AllowTcpForwarding yes
4. MySQL software
FTP the MySQL install .rpm file to directory /tmp/. It will be installed from that location.
b. If any results are returned, as illustrated above, they must be removed one at a
time. Respond ‘Y’ to all prompts.
$> yum remove <package name>
2. Run the yum install command for each rpm file in the install download. Respond ‘Y’ to all
prompts.
$> yum localinstall <rpm file name>
E.G. <rpm file name> = MySQL-shared-5.6.32-1.el6.x86_64.rpm
1. Invoke Powerbroker
2. Run the chkconfig command to find the service name.
(NOTE: This step is to demonstrate how to determine the service name. The
remainder of this section will assume the service name is ‘mysql’.)
2. Run the script using ‘root’ authority. NOTE: ‘root’ authority does not mean Powerbroker here.
Use the ‘-u root -p’ options:
$> mysql_secure_installation -u root -p
3. The script will prompt you for the randomly-generated ‘root’ password from step #1. Enter it
and reply ‘Y’ to all prompts.
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserv
ed.
Type 'help;' or '\h' for help. Type '\c' to clear the current input state
ment.
mysql>
• Execute a few commands : show databases, use database, show tables, etc.
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
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.
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Cleaning up...
All done! If you've completed all of the above steps, your MySQL
installation should now be secure.