Connecting to Database

Learn how to connect to databases.

Connect to the database using a MySQL client

Once the database container has started, you can use any MySQL client application installed on your host PC to connect to localhost:3306 with the user ID root and password mysecret.

If you don’t have a MySQL client on hand, Adminer is a lightweight PHP-based option. It is also available as a Docker image and can be launched in another terminal with:

docker run \
  -it --rm --name adminer \
  -p 8080:8080 \


Get hands-on with 1200+ tech skills courses.