Published on

this is my first upload

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


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

    Clipping is a handy way to collect important slides you want to go back to later.