Commit 150fb6b9 authored by Watchtek's avatar Watchtek
Browse files

Update 2 files

- /download_pma_build.sh
- /DB-PMA.sh
parent ebc56cf7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -55,8 +55,8 @@ if [[ ${1} == "INSTALL" ]] ; then
    cp INSERT_DML_PMA.sql $PATH_MODULE/mysql/bin

    # 데이터베이스 생성 및 SQL 적용
    # log_info "watchall_2x 데이터베이스를 생성합니다."
    # ${PATH_MODULE}/mysql/bin/mysql -u$DB_USER -p${DB_PW_A} -AN -e"create database watchall_2x character set utf8 collate utf8_general_ci;"
    log_info "semaphore 데이터베이스를 생성합니다."
    ${PATH_MODULE}/mysql/bin/mysql -u$DB_USER -p${DB_PW_A} -AN -e"create database semaphore character set utf8 collate utf8_general_ci;"
    
    cd ${PATH_MODULE}/mysql/bin
    log_info "PMA.sql 스키마를 적용합니다."
@@ -71,7 +71,7 @@ ${PATH_MODULE}/mysql/bin/mysql -u$DB_USER -p${DB_PW_A} watchall_2x -AN -e "updat
${PATH_MODULE}/mysql/bin/mysql -u$DB_USER -p${DB_PW_A} watchall_2x -AN -e "update basicinfo_set set basicinfo_subvalue_string='$DB_PORT' where basicinfo_id='PMA_WATCHALL_DB' and basicinfo_subid='DB_PORT'"
${PATH_MODULE}/mysql/bin/mysql -u$DB_USER -p${DB_PW_A} watchall_2x -AN -e "update basicinfo_set set basicinfo_subvalue_string='$DB_USER' where basicinfo_id='PMA_WATCHALL_DB' and basicinfo_subid='DB_USER'"
${PATH_MODULE}/mysql/bin/mysql -u$DB_USER -p${DB_PW_A} watchall_2x -AN -e "update basicinfo_set set basicinfo_subvalue_string='$DB_PW_A' where basicinfo_id='PMA_WATCHALL_DB' and basicinfo_subid='DB_PASSWORD'"
${PATH_MODULE}/mysql/bin/mysql -u$DB_USER -p${DB_PW_A} watchall_2x -AN -e "update basicinfo_set set basicinfo_subvalue_string='semaphore' where basicinfo_id='PMA_WATCHALL_DB' and basicinfo_subid='DB_NAME'"
${PATH_MODULE}/mysql/bin/mysql -u$DB_USER -p${DB_PW_A} watchall_2x -AN -e "update basicinfo_set set basicinfo_subvalue_string='watchall_2x' where basicinfo_id='PMA_WATCHALL_DB' and basicinfo_subid='DB_NAME'"

###
# 세마포어 동기화 작업 >영역
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ unzip -q -O cp949 PMA.zip
cd PMA || exit
rm -rf .svn/
mkdir DDL DML
mv ERD/61-4.\ PMA.sql DDL/
mv ERD/*.sql DDL/
rm -r ERD/

cd DDL/ || exit