Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Within the demo/vm_share/mysql folder I have the following files (docker exec by default logs in as root) 

filepurpose
.bashrcWhen you mount an external volume to /root folder of the container the .bashrc will be removed if none is specified in the host environment
.profileWhen you mount an external volume to /root folder of the container the .profile will be removed if none is specified in the host environment
.bash_historyWhen you mount an external volume to /root folder of the container the .bash_history will be removed if none is specified in the host environment
init-populate-mysql-db.shSimply invokes mysql --password=<pwd>  <  <a script file>  to execute a mysql script
create-db-teams-and-lectures-for-2017.sql Script to create users on the mysql account, must be done before schemas are created
db_grad_cs_1917.sqlScript to create a schema and populate 

Don't try to access the DB either through docker exec or MySQL workbench for about 20-30 seconds.  The docker run (don't confuse docker run with docker start) command will take about 20-30 seconds to fully initialise the container and completely run the scripts above.  

...