Upcoming SlideShare
Loading in...5




this is my first upload

this is my first upload



Total Views
Views on SlideShare
Embed Views



0 Embeds 0

No embeds



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

    Mysql Mysql Presentation Transcript

      • 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
    • History
      • In 1996 T.c.X. DataKonsultAB , a consulting firm in Sweden developed MySQL.
      • Created Alternative database from the general idea of mSQL.
    • 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 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
    • 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
    • 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.
    • 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
    • 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
    • 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.
    • Specific SQL Tools
      • DBTools Manager
      • DBUI
      • exportSQL
      • ForwardSQL
      • Intelligent Converters Software
      • KMySQLAdmin
      • Mac SQL
      • MyAccess
      • MySQL Data Manager
      • MySQL WebClient
      • MySQL Admin
    • 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> &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> &quot;          }         print  &quot; </TR> &quot; ;          $header_printed  =  true ;     }     print  &quot; <TR> &quot; ;     print  &quot;  <TD>&quot; ;      print  implode ( &quot;</TD>   <TD>&quot; ,  $data );     print  &quot; </TR> &quot; ; } while ( $data ); print  &quot;</TABLE> &quot; ; ?>