You are on page 1of 57

MySQL 5.

0 Presentation
- , IT BRIDGE Co., Ltd.


IT Bridge MySQL AB
MySQL
MySQL
MySQL 5.0
MySQL HA
Oracle MySQL
MySQL

MySQL AB

1995
2001 MySQL GPL
22
6 MySQL
40,000

100 MySQL

MySQL AB

MySQL AB
MySQL





GPL
OEM / MySQL Network

, ,

MySQL
Reasoning's inspection study shows
24*7
that the code quality of MySQL was

six times better than that of
comparable proprietary code.

Dual License
MySQL
GNU-GPL license
-

vs

MySQL
MySQL AB
- GPL

MySQL Dual License


1995
2001 GPL
2006 GPL3
MySQL Network

MySQL Database

- MySQL Pro

- MySQL

(1)
-

End User

Dual License
MySQL AB

MySQL

http://mysql.org - Developer Zone-

vs
MySQL

http://mysql.mysql.com
Commercial Zone-

MySQL Network

MySQL

MySQL
MySQL Network (per Server-annual)
-

MySQL (OEM-Bundle)
-
-
- : 5.0.15 GA

MySQL Cluster (per CPU)


- 99.999% 5 Fail Over
-

MySQL Cluster (EMIC per CPU/annual)


- MySQL 3rd Party
-

MySQL Embedded (per server)


-
MySQL

MaxDB by MySQL (per CPU)


- SAP SAP DB
- DB (ERP, CRM, etc.)

MySQL Administrator
- GUI
- MySQL

MySQL Query browser


- MySQL

MySQL Migration Tool Kit


- Oracle, MS SQL,MS Access
MySQL
- 1.0.20

MySQL Connectors
-

APIs
- DBI (connecting MySQL from Perl)
- PHP (connecting MySQL from PHP)
- Phyton (connecting MySQL from Phyton)
- .NET (connecting MySQL from .NET)
- MySQL++ (connecting MySQL from C++)
- CH (C/C++ interpreter)

MySQL

MySQL
MySQL Connector/ODBC
Microsoft Windows, Linux ODBC
Microsoft Access, Microsoft Excel, and Borland Delphi
.

MySQL Connector/J
JDBC (Java Database Connectivity) calls MySQL
.

MySQL Connector/Net
ADO.NET provider .NET MySQL
.

MySQL Connector/MXJ
MySQL J2EE MBean.

MySQL

MySQL

MySQL -


- Read Intensive
- OLTP
- Transactions
- Performance
- Scalability Footprint
- Level of Concurrency
- Indexes Types
- Storage Utilization
- High Availability

- Replication
- Online Backups
- Data Warehousing
- Foreign Keys
- Small
- Row Level Locking
- Embedded
- Table Level Locking
- Clustering

MySQL -



SQL
ALTER TABLE mytable ENGINE=MyISAM;

Innodb

MyISAM

MySQL -

* MySQL 5.0 .
READ_COMMITTED, REPEATABLE_READ SERIALIZABLE ..

MySQL -

MyISAM

MySQL



B-tree, R-tree Full-text





MySQL Server

MyISAM

MySQL -

InnoDB

ACID
64TB
MyISAM

MVCC/Snapshot read
B-tree clustered



row isolation

MySQL Server

Innodb

MySQL -

Cluster (NDB)



5.1

MVCC/Snapshot read
B-tree

99.999% uptime
(Shared Nothing)
SQL API API

MySQL Server

Cluster
(NDB)

MySQL -

Archive

5.0

80%


MVCC/Snapshot read

Insert
INSERT SELECT
row

MySQL Server

Archive
Archive

MySQL -

Federated

5.0

''



SSL

MySQL Server

SQL (as per target object)



Federated

MySQL -

Storage Engines Other



RAM ;
B- Hash
BDB COMMIT/ROLLBACK
Merge MyISAM
Merge

MySQL Server

MySQL

:
BDB:
Merge:
:

Memory

BDB

Merge

Custom

MySQL -

MySQL Architecture Connection Pool

/

SQL





MySQL SQL

MySQL Architecture SQL Support


SQL Interface
DML, DDL,
Stored Procedures
Views, Triggers, etc.

SELECT, DML, DDL (CREATE, ALTER TABLE, etc),


, , ,
SQL
SQL (date
functions, string handling, etc.)


MySQL - /

MySQL Architecture Parser/Optimizer


Parser

Optimizer

Query Translation,
Object Privilege

Access Paths,
Statistics


SQL
SQL

SQL



MySQL -

MySQL Architecture Memory Caches



SELECT





,

MySQL -

MySQL Architecture Admin & Tools


Admin & Tools

Administrator,
Query Browser,
Workbench,,
Migration Toolkit,
& Metadata



, ,
,
GUI


MySQL -

MySQL Architecture Enterprise Services



,
,
&,
,
MySQL Network

, ,

, ,

MySQL Network


MySQL 5.0

MySQL 5.0

Whats New?
MySQL 5.0
Performance




InnoDB

Faster

Reliability
SQL

Better

Ease of Use



GUI

Increased
Manageability

MySQL 5.0 -
Performance
MySQL
MySQL 5.0 - standard MySQL 4.0 - standard 9.25%
MySQL 4.1/5.0 (InnoDB )

MySQL 5.0 -
Performance

MySQL 5.0
SQL

SQL

What are the benefits?






SQL

SQL

SQL

Create Procedure P_1()


Begin
SELECT * FROM EMP;
End;

MySQL 5.0
SQL

What are the benefits?

row


SQL

Create trigger t_1()


Before insert on EMP
FOR EACH ROW
SET @C1 = NEW.C1 * .10;

MySQL 5.0
SQL

What are the benefits?





SQL

MySQL 5.0
SQL

What are the benefits?



SQL

MySQL 5.0
SQL

(Data Dictionary)

What are the benefits?



SHOW

SQL

MySQL 5.0


What are the benefits?
DBA MySQL /
my.cnf //

MySQL

MySQL 5.0

SQL Mode
What are the benefits?

(ENUM)
ANSI, DB2, MSSQL, Oracle
MySQL
MySQL
SQL Mode
SQL

Bad Data

MySQL 5.0

What are the benefits?


MySQL
( )


MySQL 5.0
SQL

GUI MySQL

MySQL Query Browser

DB



SQL


Results Window

MySQL 5.0
SQL


GUI

Oracle, MS SQL, MS Access


Without

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.

.
MySQL


MySQL




With Toolkit
With Migration
1.

2.
3.

MySQL HA

MySQL HA

MySQL Scale-Out Comparison


/AMD

MySQL HA

MySQL HA -
Read-only
Master Insert, Update, Delete
Slave Read-only
Slave
Select 95%
Multi-Master 5.0

Application

Master

Slave

MySQL HA

MySQL HA - MySQL Cluster


MySQL Cluster

99.999%

; no single point of failure

Applications

Shared nothing ;
SCI
MySQL Server Nodes


Data Nodes


Fail over (< 0.5 sec.)

Management
Server & Client

MySQL HA

MySQL HA
Continuent - m/Cluster
MySQL Cluster

MySQL
MySQL HA
MySQL Continuent
Fail Over Network
MySQL Replication Single Master

Solaris10
MySQL

Solaris 10 MySQL

MySQL Solaris
-Solaris 8 10
Solaris 8,9,10
Sparc, x86 x86_64
PKG pkgadd

Solaris

Solaris 10 MySQL

Linux vs Solaris
-64
MySQL SQL Bench
MySQL
MySQL Oracle, PostgreSQL
Perl 1 Table , Alter
Table, , , ,

Solaris 10 MySQL

Solaris 10
-
DB 10

MyISAM 64bit 20%
InnoDB 30%

Select, Insert Alter


Table, Create Table I/O

Solaris 10 MySQL


MySQL
MyISAM

MySQL
InnoDB

PostgreSQL

Linux 32 bit

4020

4536

5721

Linux 64 bit

2769

3123

4072

Solaris 10 x64

2236

2412

3356


MySQL

MySQL -
MySQL Cluster


TMS DB
DB
Fail Over
250 200
TMS DB

MySQL Cluster
DB MySQL Cluster
MySQL Cluster 250 4GB

2
3 BMT

MySQL -

MySQL Cluster
DB
50%
DB Fail Over
SCI 50%

Hardware: Sunfire 440 2ea

OS: Solaris 8

CPU: Sparc 4way

RAM: 8Gb

Hard Disk: 2 x 140Gb

Database: MySQL Cluster

Storage: Dotill 1TB

Database Size: 2GB, 2.5 million rows

Language: C++

MySQL - NMS
NMS(Network Management System) DB

Oracle MySQL
Oracle
5 1 Bulk Insert
50 transaction
View Partitioning Table


2 ,
MySQL
MySQL 2
MyISAM InnoDB
20 5

MySQL - NMS

NMS
MySQL
Oracle 20%
MySQL IT Bridge
MyISAM InnoDB

Hardware: Sunfire 420z

OS: Solaris 9

CPU: Sparc 2way

RAM: 2Gb

Hard Disk: 2 x 140Gb

Database: MySQL Pro

Storage: N/A

Database Size: 40GB+

Language: C++

Contacts
General:

all@itbridge.co.kr

---------------------------------------------------------------Partner / Sales:
- MySQL
( David Lee ) - yslee@itbridge.co.kr
Technical:
- MySQL
- ( Bejay Kim ) - bjkim@itbridge.co.kr
---------------------------------------------------------------Tel :
Mobile:

+82-2-702-6743

Fax : +82-2-702-6745

+ 82-11-9258-5867 / David lee

URL: www.itbridge.co.kr - www.mysqlkorea.co.kr www.ilovesolaris10.co.kr

The Bridge to
The World of
OpenSource S/W

You might also like