SlideShare une entreprise Scribd logo
1  sur  14
Télécharger pour lire hors ligne
>_ Things Lab
VirtualBox
...and the standard installation for
Things Lab meetings
Virtualization
● Running multiple operating systems simultaneously
● Easier software installations
● Testing and disaster recovery.
● Easy to make Snapshot
● Infrastructure consolidation
Why Virtualbox?
● Multi-platform (binaries for Win, OSX and Linux)
● Open Source (Base packages under GNU GPL V2)
● Great hardware support
● Guest multiprocessing (up to 32 virtual CPUs)
● USB device support
● Multiscreen resolutions
● Built-in iSCSI support
● PXE Network boot
● Multigeneration branched snapshots
● Virtual Machine groups
● Remote machine display
Virtualbox running a Guest OS
Why Raspberry Pi image?
● Multi platform
● Light (few resources needed)
● Standard installation
● Linux based
● Open Source
● Runs on SBC hardware like Raspberry Pi and
Olimex Lime
Download the image
http://www.ediy.com.my/Downloads/Raspberry
%20Pi/RaspberryPi.VirtualBox.zip
Unzip and open with a torrent client
Import the Appliance
Click on File>Import Appliance...
Installation of the Appliance
Choose the RaspberryPi.ova image and click on
import button.
Run the installed Image
Start the image, use rpi as login and password
as password (also for sudo command)
First instructions
The standard syntax is:
sudo command [parameters] [| more]
Update the image to the last packages
sudo apt-get update
Search for the MySQL Daemon (Server)
sudo apt-cache search mysql-server | more
Install a Daemon (Server)
sudo apt-get install package-name
Install the MySQL Daemon
Install the MySQL Daemon (Server)
sudo apt-get install mysql-server-5.1
You should choose a password for the db admin
(the user is root), we used the default password
of the image.
Use MySQL from command line
Connect to the MySQL daemon
mysql -u root -p (a password for the user will be requested)
Quit from MySQL command line interface
quit;
Show all the databases
● show databases; (from the command line of mysql)
Create a database
Create a database
create database test;
Connect to a database
use test;
Create a table with two fields
CREATE TABLE pets (name VARCHAR(20), owner
VARCHAR(20) );
Display the tables in the database (we created only test)
show tables;
Remove a table
drop table pets;
Populate a table
Insert two records in a table
insert into pets (name, owner) values ('pluto', 'this is a test');
insert into pets (name, owner) values ('nacho', 'abc');
Display records from a table
select name, owner from pets where owner = 'abc';
select * from pets; (really bad for performance!!)
Delete a single record or all the records from the table
delete owner from pets where name = 'nacho';
delete from pets; (pay attention, you delete all the records!!)

Contenu connexe

Tendances

Running hadoop on ubuntu linux
Running hadoop on ubuntu linuxRunning hadoop on ubuntu linux
Running hadoop on ubuntu linux
TRCK
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04
mikehie
 

Tendances (20)

Hands On Intro to Node.js
Hands On Intro to Node.jsHands On Intro to Node.js
Hands On Intro to Node.js
 
using Virtualbox NAT and shared folder
using Virtualbox NAT and shared folderusing Virtualbox NAT and shared folder
using Virtualbox NAT and shared folder
 
Ansible intro
Ansible introAnsible intro
Ansible intro
 
Ansible tips & tricks
Ansible tips & tricksAnsible tips & tricks
Ansible tips & tricks
 
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
Booting directly opensuse iso file by grub2 @ openSUSE Asia Summit2015
 
Dockerの準備
Dockerの準備Dockerの準備
Dockerの準備
 
Creating beautiful puppet modules with puppet-lint
Creating beautiful puppet modules with puppet-lintCreating beautiful puppet modules with puppet-lint
Creating beautiful puppet modules with puppet-lint
 
OLSR setup
OLSR setup OLSR setup
OLSR setup
 
Running hadoop on ubuntu linux
Running hadoop on ubuntu linuxRunning hadoop on ubuntu linux
Running hadoop on ubuntu linux
 
Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...
Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...
Dev Day 2019: Mirko Seifert – Next Level Integration Testing mit Docker und T...
 
Intro django
Intro djangoIntro django
Intro django
 
Puppet Camp Chicago 2014: Docker and Puppet: 1+1=3 (Intermediate)
Puppet Camp Chicago 2014: Docker and Puppet: 1+1=3 (Intermediate)Puppet Camp Chicago 2014: Docker and Puppet: 1+1=3 (Intermediate)
Puppet Camp Chicago 2014: Docker and Puppet: 1+1=3 (Intermediate)
 
2 docker engine_hands_on
2 docker engine_hands_on2 docker engine_hands_on
2 docker engine_hands_on
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
 
OpenNebulaConf2017EU: Torturing OpenNebula for Fun and Profit by Carlo Daffar...
OpenNebulaConf2017EU: Torturing OpenNebula for Fun and Profit by Carlo Daffar...OpenNebulaConf2017EU: Torturing OpenNebula for Fun and Profit by Carlo Daffar...
OpenNebulaConf2017EU: Torturing OpenNebula for Fun and Profit by Carlo Daffar...
 
Test like a_boss
Test like a_bossTest like a_boss
Test like a_boss
 
SELF 2014: PBI v10: Application Management Made Easy
SELF 2014: PBI v10: Application Management Made EasySELF 2014: PBI v10: Application Management Made Easy
SELF 2014: PBI v10: Application Management Made Easy
 
Choosing Linux Distro - Personal Desktop
Choosing Linux Distro - Personal DesktopChoosing Linux Distro - Personal Desktop
Choosing Linux Distro - Personal Desktop
 
openSUSE12.2 Review
openSUSE12.2 ReviewopenSUSE12.2 Review
openSUSE12.2 Review
 

En vedette (6)

Rapid prototyping
Rapid prototypingRapid prototyping
Rapid prototyping
 
Virtual domains
Virtual domainsVirtual domains
Virtual domains
 
The Rgb lamp - A real product
The Rgb lamp - A real productThe Rgb lamp - A real product
The Rgb lamp - A real product
 
Digipak analysis re-up
Digipak analysis   re-upDigipak analysis   re-up
Digipak analysis re-up
 
Wemakeit - base workshop - openlabs
Wemakeit - base workshop - openlabsWemakeit - base workshop - openlabs
Wemakeit - base workshop - openlabs
 
Business in balkans
Business in balkansBusiness in balkans
Business in balkans
 

Similaire à Virtualbox and Mysql

Getting started with puppet and vagrant (1)
Getting started with puppet and vagrant (1)Getting started with puppet and vagrant (1)
Getting started with puppet and vagrant (1)
Puppet
 
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
fm2008
 
Deployment with Fabric
Deployment with FabricDeployment with Fabric
Deployment with Fabric
andymccurdy
 
System Imager.20051215
System Imager.20051215System Imager.20051215
System Imager.20051215
guest95b42b
 
Python Deployment with Fabric
Python Deployment with FabricPython Deployment with Fabric
Python Deployment with Fabric
andymccurdy
 

Similaire à Virtualbox and Mysql (20)

Getting started with puppet and vagrant (1)
Getting started with puppet and vagrant (1)Getting started with puppet and vagrant (1)
Getting started with puppet and vagrant (1)
 
Bare Metal to OpenStack with Razor and Chef
Bare Metal to OpenStack with Razor and ChefBare Metal to OpenStack with Razor and Chef
Bare Metal to OpenStack with Razor and Chef
 
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
 
Controlling multiple VMs with the power of Python
Controlling multiple VMs with the power of PythonControlling multiple VMs with the power of Python
Controlling multiple VMs with the power of Python
 
Getting Up and Running with the Windows Module Pack
Getting Up and Running with the Windows Module PackGetting Up and Running with the Windows Module Pack
Getting Up and Running with the Windows Module Pack
 
Micro Datacenter & Data Warehouse
Micro Datacenter & Data WarehouseMicro Datacenter & Data Warehouse
Micro Datacenter & Data Warehouse
 
TrinityCore server install guide
TrinityCore server install guideTrinityCore server install guide
TrinityCore server install guide
 
Hadoop on osx
Hadoop on osxHadoop on osx
Hadoop on osx
 
Deploying datacenters with Puppet - PuppetCamp Europe 2010
Deploying datacenters with Puppet - PuppetCamp Europe 2010Deploying datacenters with Puppet - PuppetCamp Europe 2010
Deploying datacenters with Puppet - PuppetCamp Europe 2010
 
MySQL Presentation
MySQL PresentationMySQL Presentation
MySQL Presentation
 
Deployment with Fabric
Deployment with FabricDeployment with Fabric
Deployment with Fabric
 
Introduction to Stacki - World's fastest Linux server provisioning Tool
Introduction to Stacki - World's fastest Linux server provisioning ToolIntroduction to Stacki - World's fastest Linux server provisioning Tool
Introduction to Stacki - World's fastest Linux server provisioning Tool
 
System Imager.20051215
System Imager.20051215System Imager.20051215
System Imager.20051215
 
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
 
Python Deployment with Fabric
Python Deployment with FabricPython Deployment with Fabric
Python Deployment with Fabric
 
Virtualization
VirtualizationVirtualization
Virtualization
 
Puppet for Developers
Puppet for DevelopersPuppet for Developers
Puppet for Developers
 
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScriptJavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
 
Test complex database systems in your laptop with dbdeployer
Test complex database systems in your laptop with dbdeployerTest complex database systems in your laptop with dbdeployer
Test complex database systems in your laptop with dbdeployer
 
A Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy SystemA Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy System
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

Virtualbox and Mysql

  • 1. >_ Things Lab VirtualBox ...and the standard installation for Things Lab meetings
  • 2. Virtualization ● Running multiple operating systems simultaneously ● Easier software installations ● Testing and disaster recovery. ● Easy to make Snapshot ● Infrastructure consolidation
  • 3. Why Virtualbox? ● Multi-platform (binaries for Win, OSX and Linux) ● Open Source (Base packages under GNU GPL V2) ● Great hardware support ● Guest multiprocessing (up to 32 virtual CPUs) ● USB device support ● Multiscreen resolutions ● Built-in iSCSI support ● PXE Network boot ● Multigeneration branched snapshots ● Virtual Machine groups ● Remote machine display
  • 5. Why Raspberry Pi image? ● Multi platform ● Light (few resources needed) ● Standard installation ● Linux based ● Open Source ● Runs on SBC hardware like Raspberry Pi and Olimex Lime
  • 7. Import the Appliance Click on File>Import Appliance...
  • 8. Installation of the Appliance Choose the RaspberryPi.ova image and click on import button.
  • 9. Run the installed Image Start the image, use rpi as login and password as password (also for sudo command)
  • 10. First instructions The standard syntax is: sudo command [parameters] [| more] Update the image to the last packages sudo apt-get update Search for the MySQL Daemon (Server) sudo apt-cache search mysql-server | more Install a Daemon (Server) sudo apt-get install package-name
  • 11. Install the MySQL Daemon Install the MySQL Daemon (Server) sudo apt-get install mysql-server-5.1 You should choose a password for the db admin (the user is root), we used the default password of the image.
  • 12. Use MySQL from command line Connect to the MySQL daemon mysql -u root -p (a password for the user will be requested) Quit from MySQL command line interface quit; Show all the databases ● show databases; (from the command line of mysql)
  • 13. Create a database Create a database create database test; Connect to a database use test; Create a table with two fields CREATE TABLE pets (name VARCHAR(20), owner VARCHAR(20) ); Display the tables in the database (we created only test) show tables; Remove a table drop table pets;
  • 14. Populate a table Insert two records in a table insert into pets (name, owner) values ('pluto', 'this is a test'); insert into pets (name, owner) values ('nacho', 'abc'); Display records from a table select name, owner from pets where owner = 'abc'; select * from pets; (really bad for performance!!) Delete a single record or all the records from the table delete owner from pets where name = 'nacho'; delete from pets; (pay attention, you delete all the records!!)