Commit 5f203217 authored by Mikael Salson's avatar Mikael Salson
Browse files

docker: Modify database configuration

We must explicitly set the port. The database name is cleaned and the database must be created
parent 34659ca8
parameters:
database_driver : pdo_mysql
database_host : database
database_port : ~
database_name : alecsia_legacy
database_port : 3306
database_name : alecsia
database_user : root
database_password : root
......
......@@ -28,6 +28,6 @@ services:
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: lille1teacherbook
MYSQL_ROOT_HOST: %
\ No newline at end of file
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=lille1teacherbook
- MYSQL_ROOT_HOST=%
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE DATABASE IF NOT EXISTS `alecsia`;
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment