From a4f3d15b5a0224aab774710cbbd20368177ce1a7 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 30 Oct 2020 15:14:34 +0100 Subject: Fixing mysql wordpressdb setup --- srcs/mysql/entrypoint.sh | 1 + srcs/mysql/wordpress.sql | 2 ++ 2 files changed, 3 insertions(+) (limited to 'srcs/mysql') diff --git a/srcs/mysql/entrypoint.sh b/srcs/mysql/entrypoint.sh index 0988bbb..4eb1f19 100755 --- a/srcs/mysql/entrypoint.sh +++ b/srcs/mysql/entrypoint.sh @@ -19,6 +19,7 @@ GRANT ALL PRIVILEGES ON wordpress.* TO 'root'@'%' IDENTIFIED BY 'root'; FLUSH PRIVILEGES; EOF + echo '-----------SETUP WORDPRESS-----------' /usr/bin/mysqld --user=root --datadir=/var/lib/mysql --bootstrap < /wordpress.sql fi diff --git a/srcs/mysql/wordpress.sql b/srcs/mysql/wordpress.sql index b7bed79..94e793a 100644 --- a/srcs/mysql/wordpress.sql +++ b/srcs/mysql/wordpress.sql @@ -7,6 +7,8 @@ -- Server version: 10.4.15-MariaDB-log -- PHP Version: 7.3.23 +USE wordpress; + SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; -- cgit