SlideShare a Scribd company logo
What is MySQL? History Facts SQL Databases Alternatives Benefits Drawbacks Setting Up Database Driven Websites How It Works PHP and MySQL Specific SQL Tools A Database Driven SBU ‘Course Guidance’ Website – EXAMPLE OF PROJECT Flowchart Useful Sites Content of Presentation MySQL
What is MySQL? MSQL / MySQL Databases The world's most widely used open source database application.  MySQL  is a relational database management system. World Class SQL Server PHP A server-side, cross-platform, HTML embedded scripting language. Why MySQL and not another database system that supports SQL? MySQL is: Available at little cost ….. or Free Well-supported and Fast MySQL
History In 1996  T.c.X. DataKonsultAB  , a consulting firm in Sweden developed MySQL. Created Alternative database from the general idea of mSQL.  MySQL
Facts MySQL is the largest growing relational database out on the market.  MySQL mainly runs on UNIX-based environments  MySQL acts as a DBMS MySQL is one of the most used open source databases in the world.  Can use Enhanced MySQL Capacity to handle 50,000,000+ records.  Very fast command execution, perhaps the fastest to be found on the market.  Easy and efficient user privilege system.  MySQL
MySQL SQL Databases
Server Side • Administration • Java • MySQL • PHP • Perl • PostgreSQL • Python • Roxen • Wireless • XML • Zope Client Side • DHTML • Flash • Graphics • JavaScript • Style Sheets • WML MySQL Alternatives
MySQL and PostGreSQL Compared MySQL – Ease of use / long-term stability PostGre - Funtionality Postgres has an arcane limit of 8k of data per row Postgres - its "serial" data type (the equivalent of MySQL's auto_increment) creates a "sequence" which does not get dropped when its parent table is dropped.  MySQL is "smart" enough to increment its auto_increment value when you import data MySQL has no built in method for doing db size limits  MySQL
Benefits (1) Able to handle large databases that can be accessed over the Web.  Flexible and secure password system to protect your data - powerful security system  Fast, reliable, easy to use, and affordable!  Relational database management system  Stability  On-line help facility -  (type –help or -?,) MySQL meets the ANSI SQL92 regulations MySQL
Benefits (2) MySQL allows users to connect to a specific database on the server and issue requests.  Concurrent access This system can run on virtually on any platform – UNIX and Windows MySQL also comes with a source code  MySQL is used at the enterprise level because of its security.  MySQL
Drawbacks The hard part about this is there is not a lot of documentation available MySQL has no built in method for doing db size limits  MySQL requires that you either: code the data integrity into your product or you right some scripts to go through the logs and check that integrity was maintained MySQL
Setting Up Database Driven Websites   Setup the MySQL database server  Setup the Apache web server  Setup the PHP 3.0 Hypertext Preprocessor for server-side-scripting  Create a simple web enabled database MySQL
How It Works   MySQL is based on a client/server model MySQL BLACK BOX CLIENT PROGRAM
PHP and MySQL   the best tools available for the rapid development of database driven web applications, "Open Source" and available at no cost, happen to be particularly easy to learn and use, and yet are quite robust and scalable, are excellent choices for anyone seeking a powerful, affordable, easy and efficient web development environment. MySQL
Specific SQL Tools DBTools Manager  DBUI  exportSQL  ForwardSQL  Intelligent Converters Software  KMySQLAdmin  Mac SQL  MyAccess  MySQL Data Manager  MySQL WebClient  MySQL Admin MySQL
Database Support mySQL -  PHP and MySQL work very well together, in addition to the speed and features of each individual tool.  PHP is open-source,  and offers excellent connectivity to most of today's common databases including Oracle, Sybase, MySQL, ODBC (and others).  PHP also offers integration with various external libraries which enable the developer to do anything from generating PDF documents to parsing XML.
MySQL Example Connect to MySQL.  Send a query.  Print a table heading.  Print table rows until end of the table has been reached.
MySQL Example <?php    $conn  =  mysql_connect ( $host ,  $user ,  $password ); mysql_select_db ( $dbname ); $res  =  mysql_query ( &quot;SELECT * FROM users&quot; ,  $conn );  $header_printed  =  false ;  print  &quot;<TABLE>\n&quot; ;  do { $data  =  mysql_fetch_array ( $res ,  MYSQL_ASSOC );       // Retrieve the next row of data.       if ( !  is_array ( $data ) ) {          break;       }     
MySQL Example ( continue ) if ( !  $header_printed  ) {          print  &quot; <TR>&quot; ;           reset ( $data );          while (list( $name ,  $value ) =  each ( $data )) {              print  &quot;  <TH>$name</TH> \n &quot;           }          print  &quot; </TR>\n&quot; ;           $header_printed  =  true ;      }      print  &quot; <TR>\n&quot; ;      print  &quot;  <TD>&quot; ;       print  implode ( &quot;</TD>\n  <TD>&quot; ,  $data );      print  &quot; </TR>\n&quot; ;  } while ( $data );  print  &quot;</TABLE>\n&quot; ;  ?>

More Related Content

What's hot (20)

PDF
Extensible Database APIs and their role in Software Architecture
Max Neunhöffer
 
PPTX
Sql vs. NoSql
Chuong Mai
 
PDF
SQL vs NoSQL, an experiment with MongoDB
Marco Segato
 
PDF
10 mongo db
Ahmed Elbassel
 
PPT
SQL vs NoSQL
Skills Matter
 
PDF
SQL vs NoSQL: Big Data Adoption & Success in the Enterprise
Anita Luthra
 
PPTX
iForum 2015: SQL vs. NoSQL
Денис Резник
 
PDF
NoSQL Databases
BADR
 
PPTX
NoSQL vs SQL (by Dmitriy Beseda, JS developer and coach Binary Studio Academy)
Binary Studio
 
PDF
Guacamole
ArangoDB Database
 
PPT
Visualizing a Database Structure with SchemaSpy
Guo Albert
 
DOCX
Sql vs NO-SQL database differences explained
Satya Pal
 
PPTX
Introduction to NOSQL databases
Ashwani Kumar
 
PPTX
Introduction to NoSQL Databases
Derek Stainer
 
ODP
Comparison of Drupal and WordPress
Stern Data Solutions
 
PPTX
Cassandra-vs-MongoDB
Jainul Musani
 
PPTX
Maria DBMS
Ramez Al-Fayez
 
PDF
Multi model-databases
Michael Hackstein
 
PDF
FOXX - a Javascript application framework on top of ArangoDB
ArangoDB Database
 
Extensible Database APIs and their role in Software Architecture
Max Neunhöffer
 
Sql vs. NoSql
Chuong Mai
 
SQL vs NoSQL, an experiment with MongoDB
Marco Segato
 
10 mongo db
Ahmed Elbassel
 
SQL vs NoSQL
Skills Matter
 
SQL vs NoSQL: Big Data Adoption & Success in the Enterprise
Anita Luthra
 
iForum 2015: SQL vs. NoSQL
Денис Резник
 
NoSQL Databases
BADR
 
NoSQL vs SQL (by Dmitriy Beseda, JS developer and coach Binary Studio Academy)
Binary Studio
 
Visualizing a Database Structure with SchemaSpy
Guo Albert
 
Sql vs NO-SQL database differences explained
Satya Pal
 
Introduction to NOSQL databases
Ashwani Kumar
 
Introduction to NoSQL Databases
Derek Stainer
 
Comparison of Drupal and WordPress
Stern Data Solutions
 
Cassandra-vs-MongoDB
Jainul Musani
 
Maria DBMS
Ramez Al-Fayez
 
Multi model-databases
Michael Hackstein
 
FOXX - a Javascript application framework on top of ArangoDB
ArangoDB Database
 

Similar to Mysql (20)

PPT
My sql basic
Prabhat gangwar
 
ODP
Why MySQL
Jaime Crespo
 
PPTX
MySQL.pptx
SHAQORPRO
 
PDF
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
eLiberatica
 
PPS
Introduction to Mysql
Tushar Chauhan
 
PPTX
Usability of MySQL
KentAnderson43
 
PPT
Slides
webhostingguy
 
PPT
Mysqlppt3510
Anuja Lad
 
PPT
Mysqlppt3510
Khan Rahimeen
 
PPT
Mysql database
Arshikhan08
 
PDF
Mysql tutorial 5257
Phuong Do Anh
 
PPT
Lecture 15 - MySQL- PHP 1.ppt
TempMail233488
 
PPT
qwe.ppt
Heru762601
 
PDF
Mysql tutorial
Pankaj Sipl
 
PPTX
MySQL Quick Dive
Sudipta Kumar Sahoo
 
PDF
My sql crashcourse_intro_kdl
sqlhjalp
 
PDF
MySQL - powering the web economy v1.0
IDG Romania
 
PPT
Migrating from PHP 4 to PHP 5
John Coggeshall
 
PDF
php_mysql_tutorial
tutorialsruby
 
My sql basic
Prabhat gangwar
 
Why MySQL
Jaime Crespo
 
MySQL.pptx
SHAQORPRO
 
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
eLiberatica
 
Introduction to Mysql
Tushar Chauhan
 
Usability of MySQL
KentAnderson43
 
Mysqlppt3510
Anuja Lad
 
Mysqlppt3510
Khan Rahimeen
 
Mysql database
Arshikhan08
 
Mysql tutorial 5257
Phuong Do Anh
 
Lecture 15 - MySQL- PHP 1.ppt
TempMail233488
 
qwe.ppt
Heru762601
 
Mysql tutorial
Pankaj Sipl
 
MySQL Quick Dive
Sudipta Kumar Sahoo
 
My sql crashcourse_intro_kdl
sqlhjalp
 
MySQL - powering the web economy v1.0
IDG Romania
 
Migrating from PHP 4 to PHP 5
John Coggeshall
 
php_mysql_tutorial
tutorialsruby
 
Ad

Recently uploaded (20)

PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Ad

Mysql

  • 1. What is MySQL? History Facts SQL Databases Alternatives Benefits Drawbacks Setting Up Database Driven Websites How It Works PHP and MySQL Specific SQL Tools A Database Driven SBU ‘Course Guidance’ Website – EXAMPLE OF PROJECT Flowchart Useful Sites Content of Presentation MySQL
  • 2. What is MySQL? MSQL / MySQL Databases The world's most widely used open source database application. MySQL is a relational database management system. World Class SQL Server PHP A server-side, cross-platform, HTML embedded scripting language. Why MySQL and not another database system that supports SQL? MySQL is: Available at little cost ….. or Free Well-supported and Fast MySQL
  • 3. History In 1996 T.c.X. DataKonsultAB , a consulting firm in Sweden developed MySQL. Created Alternative database from the general idea of mSQL. MySQL
  • 4. Facts MySQL is the largest growing relational database out on the market. MySQL mainly runs on UNIX-based environments MySQL acts as a DBMS MySQL is one of the most used open source databases in the world. Can use Enhanced MySQL Capacity to handle 50,000,000+ records. Very fast command execution, perhaps the fastest to be found on the market. Easy and efficient user privilege system. MySQL
  • 6. Server Side • Administration • Java • MySQL • PHP • Perl • PostgreSQL • Python • Roxen • Wireless • XML • Zope Client Side • DHTML • Flash • Graphics • JavaScript • Style Sheets • WML MySQL Alternatives
  • 7. MySQL and PostGreSQL Compared MySQL – Ease of use / long-term stability PostGre - Funtionality Postgres has an arcane limit of 8k of data per row Postgres - its &quot;serial&quot; data type (the equivalent of MySQL's auto_increment) creates a &quot;sequence&quot; which does not get dropped when its parent table is dropped. MySQL is &quot;smart&quot; enough to increment its auto_increment value when you import data MySQL has no built in method for doing db size limits MySQL
  • 8. Benefits (1) Able to handle large databases that can be accessed over the Web. Flexible and secure password system to protect your data - powerful security system Fast, reliable, easy to use, and affordable! Relational database management system Stability On-line help facility - (type –help or -?,) MySQL meets the ANSI SQL92 regulations MySQL
  • 9. Benefits (2) MySQL allows users to connect to a specific database on the server and issue requests. Concurrent access This system can run on virtually on any platform – UNIX and Windows MySQL also comes with a source code MySQL is used at the enterprise level because of its security. MySQL
  • 10. Drawbacks The hard part about this is there is not a lot of documentation available MySQL has no built in method for doing db size limits MySQL requires that you either: code the data integrity into your product or you right some scripts to go through the logs and check that integrity was maintained MySQL
  • 11. Setting Up Database Driven Websites Setup the MySQL database server Setup the Apache web server Setup the PHP 3.0 Hypertext Preprocessor for server-side-scripting Create a simple web enabled database MySQL
  • 12. How It Works MySQL is based on a client/server model MySQL BLACK BOX CLIENT PROGRAM
  • 13. PHP and MySQL the best tools available for the rapid development of database driven web applications, &quot;Open Source&quot; and available at no cost, happen to be particularly easy to learn and use, and yet are quite robust and scalable, are excellent choices for anyone seeking a powerful, affordable, easy and efficient web development environment. MySQL
  • 14. Specific SQL Tools DBTools Manager DBUI exportSQL ForwardSQL Intelligent Converters Software KMySQLAdmin Mac SQL MyAccess MySQL Data Manager MySQL WebClient MySQL Admin MySQL
  • 15. Database Support mySQL - PHP and MySQL work very well together, in addition to the speed and features of each individual tool. PHP is open-source, and offers excellent connectivity to most of today's common databases including Oracle, Sybase, MySQL, ODBC (and others). PHP also offers integration with various external libraries which enable the developer to do anything from generating PDF documents to parsing XML.
  • 16. MySQL Example Connect to MySQL. Send a query. Print a table heading. Print table rows until end of the table has been reached.
  • 17. MySQL Example <?php $conn  =  mysql_connect ( $host ,  $user , $password ); mysql_select_db ( $dbname ); $res  =  mysql_query ( &quot;SELECT * FROM users&quot; ,  $conn ); $header_printed  =  false ; print  &quot;<TABLE>\n&quot; ; do { $data  =  mysql_fetch_array ( $res , MYSQL_ASSOC );      // Retrieve the next row of data.      if ( ! is_array ( $data ) ) {          break;      }     
  • 18. MySQL Example ( continue ) if ( ! $header_printed ) {         print  &quot; <TR>&quot; ;          reset ( $data );         while (list( $name ,  $value ) =  each ( $data )) {             print  &quot;  <TH>$name</TH> \n &quot;          }         print  &quot; </TR>\n&quot; ;          $header_printed  =  true ;     }     print  &quot; <TR>\n&quot; ;     print  &quot;  <TD>&quot; ;      print  implode ( &quot;</TD>\n  <TD>&quot; ,  $data );     print  &quot; </TR>\n&quot; ; } while ( $data ); print  &quot;</TABLE>\n&quot; ; ?>