Check if the connection to MariaDB is fine.
WM_CONNECTION_STRING
- MariaDB onnection string
There is an example of the check at Whoops Monitor configuration tab or the .env
file.
WM_CONNECTION_STRING=mariadb://user:password@localhost:3306/test
- Exit code
0
- Connection is ok. - Exit code
2
- Some error appeared.
docker build -t whoopsmonitor-check-mariadb-connect .
docker run --rm --env-file .env whoopsmonitor-check-mariadb-connect