Two problems:
The docker-compose scripts are pulling in an older version
of mariadb that doesn't have the JSON functions we need.
We can use 10.3.11, which is the latest stable release.
The DB user needs to have the SUPER privilege so that mdbc
can add database triggers.
Change-Id: Ic9b2daeb0196a2134f9260b39a41a4a10be01a06
Issue-ID: MUSIC-266
Signed-off-by: Rob Daugherty <rd472p@att.com>
- -s0
################################################################################
mariadb-1:
- image: mariadb:10.1.11
+ image: mariadb:10.3.11
container_name:
mariadb-1
hostname:
DELETE FROM mysql.user WHERE User='test';
CREATE USER 'test';
GRANT ALL ON test.* TO 'test' identified by 'password' with GRANT OPTION;
+GRANT SUPER ON *.* TO 'test';
FLUSH PRIVILEGES;
EOF
- -s0
################################################################################
mariadb-1:
- image: mariadb:10.1.11
+ image: mariadb:10.3.11
container_name:
mariadb-1
hostname:
- "/app/start-mdbc-server.sh"
################################################################################
mariadb-2:
- image: mariadb:10.1.11
+ image: mariadb:10.3.11
container_name:
mariadb-2
hostname:
DELETE FROM mysql.user WHERE User='test';
CREATE USER 'test';
GRANT ALL ON test.* TO 'test' identified by 'password' with GRANT OPTION;
+GRANT SUPER ON *.* TO 'test';
FLUSH PRIVILEGES;
EOF