You are on page 1of 39

Introduction to MySQL

Tushar Chauhan
OSUM Le a de r

t us ha r 3110 @y a ho o . c o m
Agenda

• History of MySQL
• MySQL Products Overview
• What is MySQL?
• Next Steps

2
History of MySQL
• Founded and developed by David Axmark, Allan
Larsson, and Michael “Monty” Widenius
• Named after Monty's daughter,
daughter My
• MySQL Dolphin logo is “Sakila”,
Sakila the name of a
town in Arusha, Tanzania
• Sun acquired MySQL AB in Jan 2008 for $1
billion dollars

3
MySQL Products Overview

4
MySQL Products Overview
MySQL Ecosystem

5
What is MySQL?
• A relational database management system
• A server providing multi-user access to a number of
databases
• The “M” in “*AMP” (Apache, MySQL, PHP) which is
one of the most popular web stacks (one of 3-tiers
in server/client)
> LAMP - Linux
> SAMP – Solaris
> WAMP - Windows

6
What is MySQL? Characteristic
• MySQL is a database management system.
> A database is a structured collection of data. It may be
anything from a simple shopping list to a picture gallery
or the vast amounts of information in a corporate
network. To add, access, and process data stored in a
computer database, you need a database management
system such as MySQL Server. Since computers are
very good at handling large amounts of data, database
management systems play a central role in computing,
as standalone utilities, or as parts of other applications.

7
What is MySQL? Characteristic
• MySQL is a relational database management system.
> A relational database stores data in separate tables
rather than putting all the data in one big storeroom. This
adds speed and flexibility. The SQL part of “MySQL”
stands for “Structured Query Language.” SQL is the most
common standardized language used to access
databases and is defined by the ANSI/ISO SQL
Standard. The SQL standard has been evolving since
1986.
• The MySQL Database Server is very fast, reliable,
and easy to use.
> Although under constant development, MySQL Server today
offers a rich and useful set of functions. Its connectivity,
speed, and security make MySQL Server highly suited for
accessing databases on the Internet.
8
What is MySQL?
• MySQL software is Open Source.
> Open Source means that it is possible for anyone to use
and modify the software. Anybody can download the
MySQL software from the Internet and use it without
paying anything. If you wish, you may study the source
code and change it to suit your needs. The MySQL
software uses the GPL (GNU General Public License),
http://www.fsf.org/licenses/, to define what you may and
may not do with the software in different situations. If you
feel uncomfortable with the GPL or need to embed
MySQL code into a commercial application, you can buy
a commercially licensed version from us.
> Provide Webinar, Training9
What is MySQL?
• MySQL Server works in client/server or embedded
systems.
> The MySQL Database Software is a client/server
system that consists of a multi-threaded SQL server
that supports different backends, several different
client programs and libraries, administrative tools,
and a wide range of application programming
interfaces (APIs).
> We also provide MySQL Server as an embedded
multi-threaded library that you can link into your
application to get a smaller, faster, easier-to-manage
standalone product.

10
What is MySQL?
• Features & Benefits
• MySQL reduces the total cost of ownership of database
software by reducing database licensing costs by over
90 percent and cutting systems downtime by 60
percent. At the same time, it lowers hardware
expenditures by 70 percent and reduces administration,
engineering, and support costs by up to 50 percent.

11
What is MySQL?
Features & Benefits

12
What is MySQL?
Features & Benefits

13
What is MySQL?
MySQL Architecture

14
What is MySQL?
MySQL Clusters

15
What is MySQL?
Geographic Redundancy
• Asynchronous MySQL replication between
clusters
• Enables a higher degree of availability and
continuity

16
What is MySQL?
Memcached
• Developed by Danga Interactive to improve
performance of LiveJournal
• Distributed architecture layer that provides caching
• Client/Server design
> Servers are memcached daemons
> Clients are implemented via language APIs like Java,
PHP, C++, etc.

17
What is MySQL?
Memcached Supported with Enterprise Subscription

18
What is MySQL?
Serving the Community & Customers

19
What is MySQL?
MySQL versus Oracle

20
performance, stability, ease of use, and cost.
What is MySQL?
MySQL versus Oracle

Some things unique to MySQL that Oracle does not offer


include:

storage engines, choices like InnoDB, MyISAM & Cluster,
give you specialized transactional, search/read optimized,
and highly available engines for storing your data


fast connections, easy replications and overall easy of use.

21
MySQL Workbench
• MySQL Workbench enables a DBA, developer, or
data architect to visually design, generate, and
manage all types of databases including Web,
OLTP, and data warehouse databases. It includes
everything a data modeler needs for creating
complex ER models, and also delivers key features
for performing difficult change management and
documentation tasks that normally require much
time and effort.

22
MySQL Workbench
Characteristics
Visual Database Design
• Enables data architects to visualize requirements,
communicate with stakeholders, and resolve design
issues before a major investment of time and resources
is made
• Enables model-driven database design, which is the
most efficient methodology for creating valid and well-
performing databases, while providing the flexibility to
respond to evolving business requirements
• Utilities enforce best practice standards for data
modeling, also enforce MySQL-specific physical design
standards so no mistakes are made when building new
ER diagrams or generating physical MySQL databases.
23
MySQL Workbench

24
MySQL Workbench
Characteristics
Forward and Reverse Engineering
• A visual data model can easily be transformed into a
physical database on a target MySQL Server with just a
few mouse clicks.
• it can also import SQL scripts to build models and export
models to DDL scripts that can be run at a later time.
Change Management

25
MySQL Workbench
Characteristics

26
Change Management
MySQL Workbench
Characteristics
Database Documentation
– Documenting database designs can be a time-consuming
process. MySQL Workbench includes DBDoc that
enables a DBA or developer to deliver point-and-click
database documentation. Models can be documented in
either HTML or plain text format, and includes all the
objects and models in a current MySQL Workbench
session.
MySQL Workbench Editions
– MySQL Workbench Community Edition
– MySQL Workbench Standard Edition

27
MySQL Workbench
Characteristics

28
Database Documentation
Demo
(console)

29
Something new:

• Where MySQL store Database?

Demo
• How to build on another computer?
• Insert new row into database so bored

(console)

30
Demo
(GUI Tools)

31
Demo
(NetBeans)

32
Config NetBeans

33
• Add mysql connector into project
• Copy mysql connector into C:\Program
Files\Java\jre\lib\ext

34
Next Steps
• Join the MySQL Community!
Get > http://www.mysql.com/register.php
Involved • Join the Open Source University
Meetup Community
> http://osum.sun.com

35
Next Steps
Resources
• General starting point
> http://www.mysql.com/
• Developer focused
> http://dev.mysql.com/

36
Next Steps
Fast Track Your Career with Sun!
• Get FREE Web-based training on JavaTM, SolarisTM & more!
> Visit: http://www.sunacademic.com
> Course registration code for ABC University is XYZ

• Increase earnings potential with a Sun Certification!


> Sun Certified Associate/Programmer for the Java 2 Platform SE
> Sun Certified Web Component Developer for Java EE
> Sun Certified Mobile Application Developer for Java ME
> Sun Certified System/Network Admin for Solaris Operating System

• Free practice exams


• Discounted exams fees for academic developers – only US$60
(US$40 in APAC and Latin America)

37
Questions:
• Assume you write an aplication and want to another
person run your database aplication. How to
embeded database into your project?
• How to deploy database in another computer?
• Navicat
• Console
• Use other database system
• Unicode in MySQL ^^
• Inconsistent between MySQL and other database
system (such as: Oracle, SQL Server …)
• Run MySQL in a remote host and connect with Java
application
38
Introduction to
MySQL

THANK YOU!

Tushar Chauhan
OSUM Leader
tushar3110@yahoo.com

You might also like