Vous êtes sur la page 1sur 8

MySQL Workshop Environment

Ivan Ma
2019-03

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |


Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 2


VM Image Installation
• VirtualBox Version
• 201903-MySQLWorkshop8015.ova
– Import VM
• Memory : 2GB
• CPU : 1
• USB : Disabled
– IP Address / MAC address Re-initialization
• 192.168.56.41
– User
• mysql/mysql
• root/welcome1

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 3


Image Boot up
• The VM once is booted, the console is configured with AUTOLOGIN with
user - “mysql”

• Use OS -‘mysql’ for operations


• Use PUTTY to access VM

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 4


Creating 2 VMs if needed
• To prepare 2 VM Instances
– VM1 – 192.168.56.41
– VM2 – 192.168.56.42
• VM1 : Import the VM ova file
– re-initialize the Network interface when ova is imported)
– default IP : 192.168.56.41

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 5


VM2 Configuration (IP)
After successful update, reboot the OS
• VM2 : (First to shutdown VM1)
few times until the Prompt shows
– Re-initialize MAC when import OVA
[mysql@virtual-42 ~]$
– login as root/welcome1
– >nmtui  Edit a connection ennp0s3
• Change IP : 192.168.56.42/24
• Click OK

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 6


Folders
• Volume
– sda (/) : Root Volume
– sdb (/opt) : MySQL materials

Folder Usage / Comment


/opt/download/mysql Package or downloaded software for MySQL including
- mysql 8.0.15 (rpm, tar))
- mysql router
- mysql shell
- mysql enterprise backup
- mysql enterprise monitor
- MySQL NDB Cluster 7.6.9 GA
- MySQL Cluster Manager (MCM 1.4.6)
/opt/download/lab - Lab folder

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 7