Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 06ae5e9

Browse files
committed
Modified my.cnf deployment
1 parent e1b6e07 commit 06ae5e9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This Quick Start uses [OCI Resource Manager](https://docs.cloud.oracle.com/iaas/
2222

2323
Simply click this button to deploy to OCI.
2424

25-
[![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://console.us-ashburn-1.oraclecloud.com/resourcemanager/stacks/create?region=home&zipUrl=https://github.com/oracle-quickstart/oci-cloudera/archive/v3.3.4.zip)
25+
[![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://console.us-ashburn-1.oraclecloud.com/resourcemanager/stacks/create?region=home&zipUrl=https://github.com/oracle-quickstart/oci-cloudera/archive/v3.3.5.zip)
2626

2727
This template uses Terraform v0.12, and has support to target existing VCN/Subnets for cluster deployment. To engage this functionality, just use the Schema menu system to select an existing VCN target, then select appropriate Subnets for each cluster host type.
2828

scripts/cms_mysql.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,6 @@ wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
202202
rpm -ivh mysql-community-release-el7-5.noarch.rpm
203203
yum install mysql-server -y
204204
log "->Tuning"
205-
head -n -6 /etc/my.cnf >> /etc/my.cnf.new
206-
mv /etc/my.cnf /etc/my.cnf.rpminstall
207-
mv /etc/my.cnf.new /etc/my.cnf
208205
echo -e "transaction_isolation = READ-COMMITTED\n\
209206
read_buffer_size = 2M\n\
210207
read_rnd_buffer_size = 16M\n\
@@ -239,6 +236,7 @@ systemctl enable mysqld
239236
systemctl start mysqld
240237
log "->Bootstrap Databases"
241238
mysql_pw=` cat /var/log/mysqld.log | grep root@localhost | gawk '{print $13}'`
239+
echo -e "$mysql_pw" >> /etc/mysql/mysql_root.pw
242240
mysql -u root --connect-expired-password -p${mysql_pw} -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'S0m3p@ssw1234';"
243241
mysql -u root --connect-expired-password -p${mysql_pw} -e "FLUSH PRIVILEGES;"
244242
mysql_pw="S0m3p@ssw1234"

0 commit comments

Comments
 (0)