Changeset 23545


Ignore:
Timestamp:
2014/06/12 20:26:50 (7 years ago)
Author:
shutta
Message:

#2579 インストールスクリプト> MySQLにて、DB名にハイフンとか入っているとエラーになる
DB名を`で括るようにする。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/eccube_install.sh

    r23337 r23545  
    163163    # MySQL 
    164164    echo "dropdb..." 
    165     ${MYSQL} -u ${ROOTUSER} ${PASSOPT} -e "drop database ${DBNAME}" 
     165    ${MYSQL} -u ${ROOTUSER} ${PASSOPT} -e "drop database \`${DBNAME}\`" 
    166166    echo "createdb..." 
    167     ${MYSQL} -u ${ROOTUSER} ${PASSOPT} -e "create database ${DBNAME}" 
     167    ${MYSQL} -u ${ROOTUSER} ${PASSOPT} -e "create database \`${DBNAME}\`" 
    168168    #echo "grant user..." 
    169     #${MYSQL} -u ${ROOTUSER} ${PASSOPT} -e "GRANT ALL ON ${DBNAME}.* TO '${DBUSER}'@'%' IDENTIFIED BY '${DBPASS}'" 
     169    #${MYSQL} -u ${ROOTUSER} ${PASSOPT} -e "GRANT ALL ON \`${DBNAME}\`.* TO '${DBUSER}'@'%' IDENTIFIED BY '${DBPASS}'" 
    170170    echo "create table..." 
    171171    ${MYSQL} -u ${DBUSER} ${PASSOPT} ${DBNAME} < ${SQL_DIR}/create_table_mysql.sql 
Note: See TracChangeset for help on using the changeset viewer.