Skip to content

Commit

Permalink
Merge pull request #1044 from nanasess/use-mysql8.4
Browse files Browse the repository at this point in the history
Use MySQL8.4 with utf8mb4
  • Loading branch information
nanasess authored Dec 18, 2024
2 parents c51b7d9 + e563295 commit afe32dd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ Pull requestを送信する際は、EC-CUBEのコピーライトポリシーに

#### システム要件

| 分類 | ソフトウェア | Version |
|-----------|----------------------|-------------------------------------------------------------------------|
| WebServer | Apache | 2.4.x or higher<br> (mod_rewrite / mod_ssl 必須) |
| PHP | PHP | 7.4.33 or higher |
| Database | PostgreSQL | 9.x or higher |
| Database | MySQL | 5.x / 8.x or higher<br> (InnoDBエンジン 必須) |
| 分類 | ソフトウェア | Version |
|-----------|--------------|---------------------------------------------------------|
| WebServer | Apache | 2.4.x or higher<br> (mod_rewrite / mod_ssl 必須) |
| PHP | PHP | 7.4.33 or higher |
| Database | PostgreSQL | 9.x or higher |
| Database | MySQL | 5.x / 8.0.x / 8.4.x or higher<br> (InnoDBエンジン 必須) |


##### 必要な PHP Extensions

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ services:
PASSWORD_HASH_ALGOS: sha256

mysql:
image: mysql:8.0
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --default-time-zone=+09:00
image: mysql:8.4
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --default-time-zone=+09:00
ports:
- '13306:3306'
volumes:
Expand Down
2 changes: 1 addition & 1 deletion eccube_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ case "${DBTYPE}" in
echo "dropdb..."
${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;"
${MYSQL} -u ${ROOTUSER} -h ${DBSERVER} -P ${DBPORT} ${PASSOPT} -e "CREATE DATABASE \`${DBNAME}\` DEFAULT COLLATE=utf8mb4_general_ci;"
#echo "grant user..."
#${MYSQL} -u ${ROOTUSER} -h ${DBSERVER} -P ${DBPORT} ${PASSOPT} -e "GRANT ALL ON \`${DBNAME}\`.* TO '${DBUSER}'@'%' IDENTIFIED BY '${DBPASS}'"
echo "create table..."
Expand Down

0 comments on commit afe32dd

Please sign in to comment.