Here, you need to adjust the connection string (all the required information is provided within email for your MySQL / MariaDB node):
- {user} – username to log into database with
- {password} – password for the appropriate user
- {host} – link to your MySQL / MariaDB container
- {database} – database to be accessed (e.g. the default mysql one)

This script will connect to the specified database server with the provided credentials and will print connection errors (if any) or just a “You are connected!” phrase.
5. So, let’s execute our code with the appropriate command: