Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MySQL8.4 with utf8mb4 #1044

Merged
merged 4 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading