When deploying the mysql db for the drupal exercise the secret: MYSQL_USER=root no longer works. Below is the error from the logs on the mysql pod.
controlplane $ kubectl logs pod/drupal-mysql-545f4889b8-cf62k
2021-09-08 00:18:24+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.35-1debian10 started.
2021-09-08 00:18:24+00:00 [Note] [Entrypoint]: Switching to dedicated user ‘mysql’
2021-09-08 00:18:24+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.35-1debian10 started.
2021-09-08 00:18:24+00:00 [ERROR] [Entrypoint]: MYSQL_USER=“root”, MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user
Remove MYSQL_USER=“root” and use one of the following to control the root user password:
- MYSQL_ROOT_PASSWORD
- MYSQL_ALLOW_EMPTY_PASSWORD
- MYSQL_RANDOM_ROOT_PASSWORD
When I delete out MYSQL_USER from the deployment env references it works. However, the “Quiz Portal” UI will not show it as completed because it is looking for those values.
You need to delete out the requirement for a MYSQL_USER=ROOT for the exercise.