Skip to content

Commit

Permalink
chore: 테스팅 mysql db 설치 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Jul 10, 2024
1 parent 264a78b commit 2fbd274
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .ebextensions/00-install-testing-mysql.config
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
packages:
yum:
mysql80-community-release: []
mysql-community-server: []
wget: []
libaio: []

commands:
01_start_mysql_service:
01_add_mysql_repo:
command: "wget https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm && sudo rpm -ivh mysql80-community-release-el7-3.noarch.rpm"

02_install_mysql:
command: "sudo yum install -y mysql-community-server"

03_start_mysql_service:
command: "sudo systemctl start mysqld"
ignoreErrors: false

02_enable_mysql_service:
04_enable_mysql_service:
command: "sudo systemctl enable mysqld"
ignoreErrors: false

03_secure_mysql_installation:
05_secure_mysql_installation:
command: |
sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'ddingdong';"
sudo mysql -e "DELETE FROM mysql.user WHERE User='';"
Expand Down

0 comments on commit 2fbd274

Please sign in to comment.