Hello,
I have a problem in lab 2 of level 3 Kubernetes “Deploy Lamp Stack on Kubernetes Cluster” : I have the connection to the database that works (“Connected Successfully”), but when I validate the lab, it does not pass and the feedback is weird , the test lines are empty and so I do not understand where is the error.
What can I do?
Thanks for your feedback,
Vincent
Hi @Vincent-fr
Could you please share the review link for this lab, that would help us and others in the community review it and provide feedback?
Regards.
Hello ! I have created a task review. When I open it I see the errors messages that were blank at the end of the lab :
Mysql database is hardcoded in ‘index.php’
Mysql user is hard coded in ‘index.php’
Mysql password is hard coded in ‘index.php’
Mysql HOST is hard coded in ‘index.php’
But in my index.php, I used :
$dbname = getenv(‘DBNAME’);
$dbuser = getenv(‘DBUSER’);
$dbpass = getenv(‘DBPASS’);
$dbhost = getenv(‘DBHOST’);
Thank you for your help !
Regards,
Vincent
I changed the variables names to :
$dbname = getenv(‘MYSQL_DATABASE’);
$dbuser = getenv(‘MYSQL_USER’);
$dbpass = getenv(‘MYSQL_PASSWORD’);
$dbhost = getenv(‘MYSQL_HOST’);
And it’s ok.