From f94ac384d12301b5622d363fb1ab6b71179337d1 Mon Sep 17 00:00:00 2001 From: Jean-Yves LENHOF Date: Thu, 25 Mar 2021 09:56:30 +0000 Subject: [PATCH] Fix Error Establishing a Database Connection --- Chapter_Three/Lecture_6_Lab/mysql-demo/mysql-deployment.yaml | 2 ++ .../Lecture_6_Lab/mysql-demo/wordpress-deployment.yaml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Chapter_Three/Lecture_6_Lab/mysql-demo/mysql-deployment.yaml b/Chapter_Three/Lecture_6_Lab/mysql-demo/mysql-deployment.yaml index ffe4c40..3f6973c 100644 --- a/Chapter_Three/Lecture_6_Lab/mysql-demo/mysql-deployment.yaml +++ b/Chapter_Three/Lecture_6_Lab/mysql-demo/mysql-deployment.yaml @@ -18,6 +18,8 @@ spec: - image: mysql:5.6 name: mysql env: + - name: MYSQL_DATABASE + value: wordpress - name: MYSQL_ROOT_PASSWORD valueFrom: secretKeyRef: diff --git a/Chapter_Three/Lecture_6_Lab/mysql-demo/wordpress-deployment.yaml b/Chapter_Three/Lecture_6_Lab/mysql-demo/wordpress-deployment.yaml index 5a6c82c..19a0e36 100644 --- a/Chapter_Three/Lecture_6_Lab/mysql-demo/wordpress-deployment.yaml +++ b/Chapter_Three/Lecture_6_Lab/mysql-demo/wordpress-deployment.yaml @@ -20,6 +20,10 @@ spec: env: - name: WORDPRESS_DB_HOST value: mysql:3306 + - name: WORDPRESS_DB_NAME + value: wordpress + - name: WORDPRESS_DB_USER + value: root - name: WORDPRESS_DB_PASSWORD valueFrom: secretKeyRef: