Skip to content

Commit

Permalink
Merge pull request #1087 from EC-CUBE/seasoft-mysql_drop_database_if_…
Browse files Browse the repository at this point in the history
…exists

eccube_install.sh 無用なエラー停止を回避 (MySQL)
  • Loading branch information
nanasess authored Dec 18, 2024
2 parents 88f0721 + 49fea35 commit c51b7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eccube_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ case "${DBTYPE}" in
fi
# MySQL
echo "dropdb..."
${MYSQL} -u ${ROOTUSER} -h ${DBSERVER} -P ${DBPORT} ${PASSOPT} -e "DROP DATABASE \`${DBNAME}\`"
${MYSQL} -u ${ROOTUSER} -h ${DBSERVER} -P ${DBPORT} ${PASSOPT} -e "DROP DATABASE IF EXISTS \`${DBNAME}\`"
echo "createdb..."
${MYSQL} -u ${ROOTUSER} -h ${DBSERVER} -P ${DBPORT} ${PASSOPT} -e "CREATE DATABASE \`${DBNAME}\` DEFAULT COLLATE=utf8_general_ci;"
#echo "grant user..."
Expand Down

0 comments on commit c51b7d9

Please sign in to comment.