fix(integration): change mysql connection host to 127.0.0.1

This commit is contained in:
9w
2023-05-22 18:54:42 +09:00
parent d352e6f138
commit a32cfc53d4
6 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
{
"type": "mysql",
"host": "localhost",
"host": "127.0.0.1",
"port": 3306,
"username": "root",
"password": "root",

View File

@@ -7,7 +7,7 @@ import { PhotoModule } from './photo/photo.module';
imports: [
TypeOrmModule.forRoot({
type: 'mysql',
host: 'localhost',
host: '127.0.0.1',
port: 3306,
username: 'root',
password: 'root',

View File

@@ -11,7 +11,7 @@ class ConfigService implements TypeOrmOptionsFactory {
createTypeOrmOptions(): TypeOrmModuleOptions {
return {
type: 'mysql',
host: 'localhost',
host: '127.0.0.1',
port: 3306,
username: 'root',
password: 'root',

View File

@@ -11,7 +11,7 @@ class ConfigService implements TypeOrmOptionsFactory {
createTypeOrmOptions(): TypeOrmModuleOptions {
return {
type: 'mysql',
host: 'localhost',
host: '127.0.0.1',
port: 3306,
username: 'root',
password: 'root',

View File

@@ -8,7 +8,7 @@ import { PhotoModule } from './photo/photo.module';
TypeOrmModule.forRootAsync({
useFactory: () => ({
type: 'mysql',
host: 'localhost',
host: '127.0.0.1',
port: 3306,
username: 'root',
password: 'root',

View File

@@ -11,7 +11,7 @@ export class DatabaseModule {
imports: [
TypeOrmModule.forRoot({
type: 'mysql',
host: 'localhost',
host: '127.0.0.1',
port: 3306,
username: 'root',
password: 'root',