File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -35,29 +35,28 @@ Run the script to create a container with MySQL running and create the database.
35
35
36
36
You will need to monitor the logs to see when MySQL has completed creating
37
37
the student database and is waiting for connections. This may take several minutes
38
- to complete.
39
-
38
+ to complete.
40
39
` docker logs mysql `
41
40
42
41
When you see the following in the logs you may continue. Run the command until you see.
43
42
44
43
` mysqld: ready for connections. `
45
44
45
+ Find the IP address of the server.
46
+ ` docker inspect mysql `
47
+
46
48
### Step 4
47
49
48
50
Load data into the student database
49
51
50
- Examine the script that will run the MySQL client. Notice that we are using the same image.
51
-
52
+ Examine the script that will run the MySQL client. Notice that we are using the same image.
52
53
` cat runclient `
53
54
54
- Run the MySQL client container
55
-
55
+ Run the MySQL client container.
56
56
` ./runclient `
57
57
58
58
You will be placed inside the client container running the Bash command shell.
59
- You can now type commands to use the database
60
-
59
+ You can now type commands to use the database. You may need to change the IP address to that of the server.
61
60
` mysql -h 172.17.0.2 -u student -p monitoring `
62
61
63
62
You will be prompted for the password. Enter 'student' as the password
You can’t perform that action at this time.
0 commit comments