From 5afd237bbd22028b85532b8c0b3fcead49a00764 Mon Sep 17 00:00:00 2001
From: Charles <sircharlesaze@gmail.com>
Date: Thu, 9 Jan 2020 18:38:59 +0100
Subject: SSL and cleaner Dockerfile with setup scripts

---
 srcs/scripts/wordpress_setup.sql | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100755 srcs/scripts/wordpress_setup.sql

(limited to 'srcs/scripts/wordpress_setup.sql')

diff --git a/srcs/scripts/wordpress_setup.sql b/srcs/scripts/wordpress_setup.sql
new file mode 100755
index 0000000..b0fc867
--- /dev/null
+++ b/srcs/scripts/wordpress_setup.sql
@@ -0,0 +1,5 @@
+CREATE DATABASE wordpressdb;
+CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'wordpresspass';
+GRANT ALL PRIVILEGES ON wordpressdb.* TO 'wordpressuser'@'localhost'
+	IDENTIFIED BY 'wordpresspass';
+FLUSH PRIVILEGES;
-- 
cgit 

