
Let’s create both for this demonstration. After that, you will be able to use the client.

It will have access to the container file system and mimic the behavior of a non- root user on a server. To access MySQL Server from the command-line client, open the program and enter the password.

Create a local student user account inside the Docker container.The mysql client lets you connect from the host operating system through the Command-Line Interface (CLI). At least, that’s the only connection option unless you likewise install the mysql client on your host macOS. Create an individual student user that can access the MySQL-Server as a micro-service, which would only be a MySQL user connecting through MySQL workbench.Lrwxrwxrwx 1 root root 8 Oct 12 22:06 sbin -> usr/sbinĭr-xr-xr-x 13 root root 0 Jan 12 03:41 sysĭrwxrwxrwt 1 root root 4096 Jan 12 03:41 tmpĭrwxr-xr-x 1 root root 4096 Oct 12 22:06 usrĭrwxr-xr-x 1 root root 4096 Oct 12 22:06 varĪt this point, you have to make a choice about how you will access the MySQL database. Lrwxrwxrwx 1 root root 9 Oct 12 22:06 lib64 -> usr/lib64

Lrwxrwxrwx 1 root root 7 Oct 12 22:06 lib -> usr/lib rwxr-xr-x 1 root root 1073 Oct 19 05:37 healthcheck.sh rw-r-r- 1 root root 86 Jan 12 03:41 healthcheck.cnf Lrwxrwxrwx 1 root root 7 Oct 12 22:06 bin -> usr/binĭrwxr-xr-x 5 root root 340 Jan 12 03:41 devĭrwxr-xr-x 2 root root 4096 Oct 19 05:47 docker-entrypoint-initdb.d
