Connecting to Database
Learn how to connect to databases.
We'll cover the following...
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 \
adminer
Practice
-
Click on the Run button and see the above command in action.
-
After the
Adminer
is up, click on the URL in front of “Your app can be found at” or view the app in the “Output” tab.
đź“Ś You will see ...
Adminer
Access this course and 1400+ top-rated courses and projects.