Introduction to MySQL
Tushar Chauhan
OSUM Le ade r
3110 .t us har @yahoo c om
2
Agenda
• History of MySQL
• MySQL Products Overview
• What is MySQL?
• Next Steps
3
History of MySQL
• Founded and developed by David Axmark, Allan
Larsson, and Michael “Monty” Widenius
• Named after Monty's daughterMonty's daughter, My
• MySQL Dolphin logo is “SakilaSakila”, the name of a
town in Arusha, Tanzania
• Sun acquired MySQL AB in Jan 2008 for $1
billion dollars
4
MySQL Products Overview
5
MySQL Products Overview
MySQL Ecosystem
6
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
7
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.
8
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.
9
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, Training
10
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.
11
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.
12
What is MySQL?
Features & Benefits
13
What is MySQL?
Features & Benefits
14
What is MySQL?
MySQL Architecture
15
What is MySQL?
MySQL Clusters
16
What is MySQL?
Geographic Redundancy
• Asynchronous MySQL replication between
clusters
• Enables a higher degree of availability and
continuity
17
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.
18
What is MySQL?
Memcached Supported with Enterprise Subscription
19
What is MySQL?
Serving the Community & Customers
20
What is MySQL?
MySQL versus Oracle
performance, stability, ease of use, and cost.
21
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.
22
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.
23
MySQL Workbench
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.
Characteristics
24
MySQL Workbench
25
MySQL Workbench
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
Characteristics
26
MySQL Workbench
Characteristics
Change Management
27
MySQL Workbench
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
Characteristics
28
MySQL Workbench
Characteristics
Database Documentation
29
Demo
(console)
30
Demo
(console)
Something new:
• Where MySQL store Database?
• How to build on another computer?
• Insert new row into database so bored
31
Demo
(GUI Tools)
32
Demo
(NetBeans)
33
Config NetBeans
34
• Add mysql connector into project
• Copy mysql connector into C:Program
FilesJavajrelibext
35
Get
Involved
• Join the MySQL Community!
> http://www.mysql.com/register.php
• Join the Open Source University
Meetup Community
> http://osum.sun.com
Next Steps
36
Next Steps
• General starting point
> http://www.mysql.com/
• Developer focused
> http://dev.mysql.com/
Resources
37
• 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)
Next Steps
Fast Track Your Career with Sun!
38
• 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
Questions:
THANK YOU!
Introduction to
MySQL
Tushar Chauhan
OSUM Leader
tushar3110@yahoo.com

20090425mysqlslides 12593434194072-phpapp02

  • 1.
    Introduction to MySQL TusharChauhan OSUM Le ade r 3110 .t us har @yahoo c om
  • 2.
    2 Agenda • History ofMySQL • MySQL Products Overview • What is MySQL? • Next Steps
  • 3.
    3 History of MySQL •Founded and developed by David Axmark, Allan Larsson, and Michael “Monty” Widenius • Named after Monty's daughterMonty's daughter, My • MySQL Dolphin logo is “SakilaSakila”, the name of a town in Arusha, Tanzania • Sun acquired MySQL AB in Jan 2008 for $1 billion dollars
  • 4.
  • 5.
  • 6.
    6 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
  • 7.
    7 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.
  • 8.
    8 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.
  • 9.
    9 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, Training
  • 10.
    10 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.
  • 11.
    11 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.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
    16 What is MySQL? GeographicRedundancy • Asynchronous MySQL replication between clusters • Enables a higher degree of availability and continuity
  • 17.
    17 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.
  • 18.
    18 What is MySQL? MemcachedSupported with Enterprise Subscription
  • 19.
    19 What is MySQL? Servingthe Community & Customers
  • 20.
    20 What is MySQL? MySQLversus Oracle performance, stability, ease of use, and cost.
  • 21.
    21 What is MySQL? MySQLversus 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.
  • 22.
    22 MySQL Workbench • MySQLWorkbench 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.
  • 23.
    23 MySQL Workbench Visual DatabaseDesign • 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. Characteristics
  • 24.
  • 25.
    25 MySQL Workbench Forward andReverse 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 Characteristics
  • 26.
  • 27.
    27 MySQL Workbench 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 Characteristics
  • 28.
  • 29.
  • 30.
    30 Demo (console) Something new: • WhereMySQL store Database? • How to build on another computer? • Insert new row into database so bored
  • 31.
  • 32.
  • 33.
  • 34.
    34 • Add mysqlconnector into project • Copy mysql connector into C:Program FilesJavajrelibext
  • 35.
    35 Get Involved • Join theMySQL Community! > http://www.mysql.com/register.php • Join the Open Source University Meetup Community > http://osum.sun.com Next Steps
  • 36.
    36 Next Steps • Generalstarting point > http://www.mysql.com/ • Developer focused > http://dev.mysql.com/ Resources
  • 37.
    37 • Get FREEWeb-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) Next Steps Fast Track Your Career with Sun!
  • 38.
    38 • Assume youwrite 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 Questions:
  • 39.
    THANK YOU! Introduction to MySQL TusharChauhan OSUM Leader tushar3110@yahoo.com