cancel
Showing results for 
Search instead for 
Did you mean: 
BillP
Cadet
Cadet
  • 1,312 Views

DO180 v4.2 Lab: Managing a MySQL Container

I'm going through the DO180 v4.2 course, and in ch03s02 lab there's a step which has you run a query against a mysql container:

[student@workstation ~]$ sudo podman exec mysql /bin/bash \
> -c 'mysql -uuser1 -p -e "select * from items.Projects;"' Enter password: mypa55 id name code 1 DevOps DO180

I'm doing this lab on a local VM rather than the classroom environment, but don't you need the -it parameter in order to get a console?  When I run the command as documented it gives me an access denied error and never prompts for the password.

If I use "sudo podman exec -it ...." it works.

Labels (2)
0 Kudos
0 Replies
Join the discussion
You must log in to join this conversation.