Skip to content

Commit

Permalink
deps(backend): support mysql 8
Browse files Browse the repository at this point in the history
  • Loading branch information
dhenkel92 committed May 1, 2024
1 parent 0b47184 commit d12fa51
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 52 deletions.
14 changes: 7 additions & 7 deletions backend/config/database.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module.exports = ({ env }) => ({
connection: {
client: 'mysql',
client: "mysql2",
connection: {
host: env('DATABASE_HOST', '127.0.0.1'),
port: env.int('DATABASE_PORT', 3306),
database: env('DATABASE_NAME', 'strapi'),
user: env('DATABASE_USERNAME', 'root'),
password: env('DATABASE_PASSWORD', 'strapi'),
ssl: env.bool('DATABASE_SSL', false),
host: env("DATABASE_HOST", "127.0.0.1"),
port: env.int("DATABASE_PORT", 3306),
database: env("DATABASE_NAME", "strapi"),
user: env("DATABASE_USERNAME", "root"),
password: env("DATABASE_PASSWORD", "strapi"),
ssl: env.bool("DATABASE_SSL", false),
},
},
});
120 changes: 90 additions & 30 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions backend/package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"name": "backend-new",
"private": true,
"version": "0.1.0",
"private": true,
"description": "A Strapi application",
"license": "MIT",
"author": {
"name": "A Strapi developer"
},
"scripts": {
"build": "strapi build",
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi"
},
"resolutions": {
"@graphql-tools/utils": "8.6.7"
},
"dependencies": {
"@strapi/plugin-graphql": "^4.24.0",
"@strapi/plugin-i18n": "^4.24.0",
"@strapi/plugin-users-permissions": "^4.24.0",
"@strapi/strapi": "^4.24.0",
"dd-trace": "^5.12.0",
"mysql": "2.18.1",
"mysql2": "3.9.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^5.3.4",
"strapi-plugin-entity-relationship-chart": "^4.14.6",
"styled-components": "^5.3.11"
},
"resolutions": {
"@graphql-tools/utils": "8.6.7"
},
"author": {
"name": "A Strapi developer"
},
"strapi": {
"uuid": "b80c29a1-3f73-4dbb-a084-4c25b8d4019a"
},
"engines": {
"node": ">=12.x.x <=16.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
"strapi": {
"uuid": "b80c29a1-3f73-4dbb-a084-4c25b8d4019a"
}
}
3 changes: 1 addition & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ services:

db:
container_name: mysql
platform: linux/amd64
image: mysql:5.7.29
image: mysql:8.4.0
ports:
- 3306:3306
environment:
Expand Down

0 comments on commit d12fa51

Please sign in to comment.