SlideShare a Scribd company logo
>_ 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!!)

More Related Content

TXT
Instructions
PDF
Install and Configure Ubuntu for Hadoop Installation for beginners
PDF
Linux Containers (LXC)
PDF
Databases and MySQL
PDF
Ansible - Swiss Army Knife Orchestration
TXT
Intalacion de owncloud
PPTX
A Brief Introduction to Writing and Understanding Puppet Modules
PDF
Open-E DSS V6 MPIO with ESXi 4.x
Instructions
Install and Configure Ubuntu for Hadoop Installation for beginners
Linux Containers (LXC)
Databases and MySQL
Ansible - Swiss Army Knife Orchestration
Intalacion de owncloud
A Brief Introduction to Writing and Understanding Puppet Modules
Open-E DSS V6 MPIO with ESXi 4.x

What's hot (20)

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

Viewers also liked (6)

PPT
Rapid prototyping
ODP
Virtual domains
ODP
The Rgb lamp - A real product
PPTX
Digipak analysis re-up
ODP
Wemakeit - base workshop - openlabs
ODP
Business in balkans
Rapid prototyping
Virtual domains
The Rgb lamp - A real product
Digipak analysis re-up
Wemakeit - base workshop - openlabs
Business in balkans
Ad

Similar to Virtualbox and Mysql (20)

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

Recently uploaded (20)

PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
A Presentation on Artificial Intelligence
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Modernizing your data center with Dell and AMD
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Monthly Chronicles - July 2025
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Review of recent advances in non-invasive hemoglobin estimation
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
The AUB Centre for AI in Media Proposal.docx
A Presentation on Artificial Intelligence
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
CIFDAQ's Market Insight: SEC Turns Pro Crypto
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Modernizing your data center with Dell and AMD
Unlocking AI with Model Context Protocol (MCP)
Reach Out and Touch Someone: Haptics and Empathic Computing

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!!)