Professional Documents
Culture Documents
Introduction To Mysql As An Open Source Database: Session 1
Introduction To Mysql As An Open Source Database: Session 1
Session 1
Objectives
Explain MySQL List the advantages and disadvantages of MySQL over other RDBMS List the advantage of PHP in MySQL Discuss the Licensing of open source software
About MySQL
MySQL is the most popular Open Source SQL database Developed and distributed by MySQL AB which is a company, founded by the MySQL developers MySQL is a relational database management system which manages a relational database MySQL is Open Source software that enables user to modify the source code
Features of MySQL - I
MySQL was designed to achieve goals such as speed, robustness, and ease of use Features of MySQL are classified as: Technical Features: Written in C and C++ Tested with different compilers Works on different operating systems
MySQL Database / Session 1 / Slide 4 of 19
Features of MySQL - II
Technical Features: Provides transactional and non-transactional storage engines Multi-threaded using kernel threads Uses very fast B-tree disk MyISAM tables with index compression Relatively easy to add another storage engine
Technical Features: Provides very fast joins using an optimized one-sweep multi-join Fast thread-based memory allocation system Available as client/server or embedded version
Features MySQL - IV
Column Types: Provides numerous column types or data types such Numeric, Date, String, and Complex Provides records having Fixed-length and Variable-length
Features of MySQL - V
Commands and Functions: Operator and Function support with the SELECT command Enables user to mix tables from different databases Enables user to retrieve information about databases, tables, and indexes using specific SHOW command. Supports SQL GROUP BY and ORDER BY clauses
Features of MySQL - VI
Commands and Functions Provides supports for group functions such as COUNT(), COUNT(DISTINCT ...), AVG(), STD(), SUM(), MAX(), MIN(), and GROUP_CONCAT() Supports LEFT OUTER JOIN and RIGHT OUTER JOIN Function names do not clash with column names
MySQL Database / Session 1 / Slide 9 of 19
Security:
Privileges can be assigned to various users Provides safety since passwords are assigned to users Handles large databases Allows up to 32 indexes per table Each index may contain of 1 to 16 columns Allows up to 16 keys per table Each key may contain up to 15 fields
MySQL Database / Session 1 / Slide 10 of 19
Connectivity:
Clients may connect to the MySQL server using TCP/IP sockets on any platform The Connector/ODBC interface provides MySQL support for client programs that use ODBC (OpenDatabase-Connectivity) connections
Localization:
Prompts error message in the languages such as Czech, Dutch, English, French, German, Norwegian, Polish, Portuguese, Spanish, and Swedish
MySQL Database / Session 1 / Slide 11 of 19
Features of MySQL - IX
Different users have found MySQL as reliable MySQL has flexible architecture which makes it easy to customize The source code is easily available to all the users due to which user is bound to a single platform MySQL has several versions supporting more than twenty different platforms
Commercial databases support almost all the features as MySQL, but performance wise MySQL is better MySQL does not support important SQL3 feature for object oriented data types. PostgresSQL has the advanced SQL3 features PostgreSQL is more powerful but MySQL is faster. MySQL does not need a vacuum procedure as PostgreSQL The databases such as mSQL cannot compete with any of the features of MySQL
InstantDB competes well with MySQL when we consider the different features. The only feature of MySQL that InstantDB is unable to compete is the speed MySQL does not support important SQL3 feature for object oriented data types as PostgresSQL PostgreSQL is more powerful but MySQL is faster MySQL has a richer subset of SQL than mSQL MySQL is faster as compared to InstantDB
MySQL Database / Session 1 / Slide 15 of 19
PHP is a simple tool designed for Web development PHP and MySQL both are open source Convenient to obtain MySQL and PHP for free downloads from the internet that makes it cost effective as compared with others MySQL provides with command-line function which allow database so that user is able to view the query results which the PHP page acquires
MySQL Database / Session 1 / Slide 16 of 19
The distribution of open source software must fulfill the following criteria: Free Distribution Source Code available to everyone Derived works available to everyone No Discrimination against persons or groups No Discrimination against fields of Endeavor License must not be specific to a product
MySQL Database / Session 1 / Slide 17 of 19
Summary - I
MySQL is the most popular Open Source SQL database Developed and distributed by MySQL AB which is a company founded by the MySQL developers MySQL is a relational database management system which manages a relational database MySQL is Open Source software that enables any one to use and modify the source code MySQL does not support important SQL3 feature for object oriented data types
Summary - II
MySQL has a richer subset of SQL than mSQL The feature of MySQL that InstantDB is unable to compete is the speed PHP is a scripting language that enables to interact with the databases PHP is compatible with almost all the operating systems PHP and MySQL both are open source Convenient to obtain these for free downloads from the internet