Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gwens committed Mar 24, 2017
0 parents commit 7a56d00
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 0 deletions.
29 changes: 29 additions & 0 deletions 1067.html
@@ -0,0 +1,29 @@
Part I Introduction <br />
Chapter 1: What Is MySQL? <br />
Chapter 2: The Test Environment <br />
Chapter 3: Introductory Example (An Opinion Poll) <br />
Chapter 4: User Interfaces <br />
Part II Fundamentals <br />
Chapter 5: Database Design <br />
Chapter 6: An Introduction to SQL <br />
Chapter 7: SQL Recipes <br />
Chapter 8: InnoDB Tables and Transactions <br />
Chapter 9: Security <br />
Chapter 10: Administration and Server Configuration <br />
Part III Programming <br />
Chapter 11: PHP: Fundamentals and Programming Techniques <br />
Chapter 12: PHP: LibraryManagement <br />
Chapter 13: PHP: Discussion Forum <br />
Chapter 14: Perl <br />
Chapter 15: Java, JSP, JDBC <br />
Chapter 16: C and C++ <br />
Chapter 17: Visual Basic, C#, ODBC <br />
Part IV Reference <br />
Chapter 18: SQL Reference <br />
Chapter 19: MySQL Tools <br />
Chapter 20: API Reference <br />
Part V Appendices <br />
Appendix A Glossary <br />
Appendix B MySQL 4.1 <br />
Appendix C Example Files <br />
Appendix D Bibliography
Binary file added 1071.zip
Binary file not shown.
Binary file added 1220.pdf
Binary file not shown.
Binary file added 1221.pdf
Binary file not shown.
Binary file added 1222.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions 2508.html
@@ -0,0 +1 @@
<html xmlns:o="urn:schemas-microsoft-com:office:office"xmlns:w="urn:schemas-microsoft-com:office:word"xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Titlecontent="Errata for 582-3 Asleson (corrected in the second printing)"><meta name=Keywords content=""><meta http-equiv=Content-Type content="text/html; charset=macintosh"><meta name=ProgId content=Word.Document><meta name=Generator content="Microsoft Word 11"><meta name=Originator content="Microsoft Word 11"><link rel=File-List href="144-5%20Kofler%20Errata_files/filelist.xml"><title>Errata for 582-3 Asleson (corrected in the second printing)</title><!--[if gte mso 9]><xml> <o:DocumentProperties> <o:Author>Richard Ables</o:Author> <o:Template>Normal</o:Template> <o:LastAuthor>Richard Ables</o:LastAuthor> <o:Revision>2</o:Revision> <o:Created>2005-12-03T00:19:00Z</o:Created> <o:LastSaved>2005-12-03T00:19:00Z</o:LastSaved> <o:Pages>1</o:Pages> <o:Lines>1</o:Lines> <o:Paragraphs>1</o:Paragraphs> <o:Version>11.0</o:Version> </o:DocumentProperties> <o:OfficeDocumentSettings> <o:AllowPNG/> </o:OfficeDocumentSettings></xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:Zoom>125</w:Zoom> <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery> <w:DisplayVerticalDrawingGridEvery>0</w:DisplayVerticalDrawingGridEvery> <w:UseMarginsForDrawingGridOrigin/> </w:WordDocument></xml><![endif]--><style><!-- /* Font Definitions */@font-face {font-family:"Times New Roman"; panose-1:0 2 2 6 3 5 4 5 2 3; mso-font-charset:0; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:50331648 0 0 0 1 0;}@font-face {font-family:Verdana; panose-1:0 2 11 6 4 3 5 4 4 2; mso-font-charset:0; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:50331648 0 0 0 1 0;}@font-face {font-family:Verdana-Bold; panose-1:0 0 0 0 0 0 0 0 0 0; mso-font-alt:Verdana; mso-font-charset:77; mso-generic-font-family:auto; mso-font-format:other; mso-font-pitch:auto; mso-font-signature:50331648 0 0 0 1 0;}@font-face {font-family:Utopia-Regular; panose-1:0 0 0 0 0 0 0 0 0 0; mso-font-alt:Utopia; mso-font-charset:77; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:auto; mso-font-signature:50331648 0 0 0 1 0;}@font-face {font-family:SemiLight; panose-1:0 0 0 0 0 0 0 0 0 0; mso-font-alt:"Times New Roman"; mso-font-charset:77; mso-generic-font-family:auto; mso-font-format:other; mso-font-pitch:auto; mso-font-signature:50331648 0 0 0 1 0;} /* Style Definitions */p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman";}table.MsoNormalTable {mso-style-parent:""; font-size:10.0pt; font-family:"Times New Roman";}@page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;}div.Section1 {page:Section1;}--></style></head><body bgcolor=white lang=EN-US style='tab-interval:.5in'><div class=Section1><p class=MsoNormal>Errata 144-5 Kofler (corrected in the 2nd printing)</p><table border=1 cellspacing=0 cellpadding=0 width=563 style='width:563.4pt; border-collapse:collapse;border:none;mso-border-top-alt:solid gray 1.0pt; mso-border-left-alt:solid gray 1.0pt;mso-border-right-alt:solid gray 1.0pt; mso-padding-alt:0in 5.4pt 0in 5.4pt'> <tr> <td width=50 style='width:.7in;border:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;tab-stops:28.0pt 56.0pt 84.0pt 112.0pt 140.0pt 168.0pt 196.0pt 224.0pt 3.5in 280.0pt 308.0pt 336.0pt; mso-layout-grid-align:none;text-autospace:none'><span style='font-size:14.0pt; font-family:Verdana-Bold;color:#333333'><b>Page</b></span><span style='font-size:14.0pt;font-family:Verdana;color:#333333'><o:p></o:p></span></p> </td> <td width=257 style='width:256.5pt;border:solid gray 1.0pt;border-left:none; mso-border-left-alt:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;tab-stops:28.0pt 56.0pt 84.0pt 112.0pt 140.0pt 168.0pt 196.0pt 224.0pt 3.5in 280.0pt 308.0pt 336.0pt; mso-layout-grid-align:none;text-autospace:none'><span style='font-size:14.0pt; font-family:Verdana-Bold;color:#333333'><b>Original Sentence</b></span><span style='font-size:14.0pt;font-family:Verdana;color:#333333'><o:p></o:p></span></p> </td> <td width=257 style='width:256.5pt;border:solid gray 1.0pt;border-left:none; mso-border-left-alt:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;tab-stops:28.0pt 56.0pt 84.0pt 112.0pt 140.0pt 168.0pt 196.0pt 224.0pt 3.5in 280.0pt 308.0pt 336.0pt; mso-layout-grid-align:none;text-autospace:none'><span style='font-size:14.0pt; font-family:Verdana-Bold;color:#333333'><b>Corrected Sentence</b></span><span style='font-size:14.0pt;font-family:Verdana;color:#333333'><o:p></o:p></span></p> </td> </tr> <tr> <td width=50 style='width:.7in;border:solid gray 1.0pt;border-top:none; mso-border-top-alt:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;tab-stops:28.0pt 56.0pt 84.0pt 112.0pt 140.0pt 168.0pt 196.0pt 224.0pt 3.5in 280.0pt 308.0pt 336.0pt; mso-layout-grid-align:none;text-autospace:none'><span style='font-family: Verdana;color:#333333'><span style="mso-spacerun: yes">&nbsp;</span>353<o:p></o:p></span></p> </td> <td width=257 style='width:256.5pt;border-top:none;border-left:none; border-bottom:solid gray 1.0pt;border-right:solid gray 1.0pt;mso-border-top-alt: solid gray 1.0pt;mso-border-left-alt:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:8.0pt;font-family:SemiLight'>$connID = @mysqld endedysqluser, $mysqlpasswd);</span><span style='font-family:Verdana; color:#333333'><o:p></o:p></span></p> </td> <td width=257 style='width:256.5pt;border-top:none;border-left:none; border-bottom:solid gray 1.0pt;border-right:solid gray 1.0pt;mso-border-top-alt: solid gray 1.0pt;mso-border-left-alt:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:8.0pt;font-family:SemiLight'>$connID = @mysql_connect($mysqlhost, $mysqluser, $mysqlpasswd);</span><span style='font-family:Verdana;color:#333333'><o:p></o:p></span></p> </td> </tr> <tr> <td width=50 style='width:.7in;border:solid gray 1.0pt;border-top:none; mso-border-top-alt:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;tab-stops:28.0pt 56.0pt 84.0pt 112.0pt 140.0pt 168.0pt 196.0pt 224.0pt 3.5in 280.0pt 308.0pt 336.0pt; mso-layout-grid-align:none;text-autospace:none'><span style='font-family: Verdana;color:#333333'>408<o:p></o:p></span></p> </td> <td width=257 style='width:256.5pt;border-top:none;border-left:none; border-bottom:solid gray 1.0pt;border-right:solid gray 1.0pt;mso-border-top-alt: solid gray 1.0pt;mso-border-left-alt:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:9.0pt;font-family:Utopia-Regular'>This file contains two functions: <i>connect_to_picdb </i></span><span style='font-size:9.0pt;font-family:Utopia-Regular'>creates a connection to theMySQL database <i>test_pictures</i></span><span style='font-size:9.0pt; font-family:Utopia-Regular'>, while <i>array_item </i></span><span style='font-size:9.0pt;font-family:Utopia-Regular'>reads an element from a PHP field (if such<o:p></o:p></span></p> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:9.0pt;font-family:Utopia-Regular'>exists):</span><span style='font-family:Verdana;color:#333333'><o:p></o:p></span></p> </td> <td width=257 style='width:256.5pt;border-top:none;border-left:none; border-bottom:solid gray 1.0pt;border-right:solid gray 1.0pt;mso-border-top-alt: solid gray 1.0pt;mso-border-left-alt:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:9.0pt;font-family:Utopia-Regular'>This file contains two functions: <i>connect_to_picdb </i></span><span style='font-size:9.0pt;font-family:Utopia-Regular'>creates a connection to theMySQL database <i>test_images</i></span><span style='font-size:9.0pt; font-family:Utopia-Regular'>, while <i>array_item </i></span><span style='font-size:9.0pt;font-family:Utopia-Regular'>reads an element from a PHP field (if such<o:p></o:p></span></p> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:9.0pt;font-family:Utopia-Regular'>exists):</span><span style='font-family:Verdana;color:#333333'><o:p></o:p></span></p> </td> </tr> <tr> <td width=50 style='width:.7in;border:solid gray 1.0pt;border-top:none; mso-border-top-alt:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;tab-stops:28.0pt 56.0pt 84.0pt 112.0pt 140.0pt 168.0pt 196.0pt 224.0pt 3.5in 280.0pt 308.0pt 336.0pt; mso-layout-grid-align:none;text-autospace:none'><span style='font-family: Verdana;color:#333333'>701<o:p></o:p></span></p> </td> <td width=257 style='width:256.5pt;border-top:none;border-left:none; border-bottom:solid gray 1.0pt;border-right:solid gray 1.0pt;mso-border-top-alt: solid gray 1.0pt;mso-border-left-alt:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:8.5pt;font-family:Utopia-Regular'>defines a lock with the name <i>name </i></span><span style='font-size:8.5pt; font-family:Utopia-Regular'>for the time <i>time<o:p></o:p></i></span></p> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:8.5pt;font-family:Utopia-Regular'>(in seconds); usually executed with <i>DO</i></span><span style='font-size:8.5pt; font-family:Utopia-Regular'>, as in <i>DO<o:p></o:p></i></span></p> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:8.5pt;font-family:Utopia-Regular'><i>GET_LOCK('abc', 10)</i></span><span style='font-family:Verdana;color:#333333'><o:p></o:p></span></p> </td> <td width=257 style='width:256.5pt;border-top:none;border-left:none; border-bottom:solid gray 1.0pt;border-right:solid gray 1.0pt;mso-border-top-alt: solid gray 1.0pt;mso-border-left-alt:solid gray 1.0pt;padding:0in 5.4pt 0in 5.4pt'> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:8.5pt;font-family:Utopia-Regular'>defines a lock with the name <i>name </i></span><span style='font-size:8.5pt; font-family:Utopia-Regular'>for the time <i>time<o:p></o:p></i></span></p> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:8.5pt;font-family:Utopia-Regular'>(in seconds); usually executed with <i>DO</i></span><span style='font-size:8.5pt; font-family:Utopia-Regular'>, as in <i>DO<o:p></o:p></i></span></p> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:8.5pt;font-family:Utopia-Regular'><i>GET_LOCK('abc', 10)</i></span><span style='font-size:8.5pt;font-family:Utopia-Regular'>; whenever you request a new<o:p></o:p></span></p> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:8.5pt;font-family:Utopia-Regular'>lock with <i>GET_LOCK</i></span><span style='font-size:8.5pt;font-family:Utopia-Regular'>, any prior lock is automatically<o:p></o:p></span></p> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:8.5pt;font-family:Utopia-Regular'>released; however, MySQL plans to support multiple<o:p></o:p></span></p> <p class=MsoNormal style='mso-pagination:none;mso-layout-grid-align:none; text-autospace:none'><span style='font-size:8.5pt;font-family:Utopia-Regular'>locks per session in the future</span><span style='font-family:Verdana;color:#333333'><o:p></o:p></span></p> </td> </tr></table><p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p></div></body></html>
Expand Down
Binary file added 9781590591444.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,27 @@
Freeware License, some rights reserved

Copyright (c) 2004 Michael Kofler

Permission is hereby granted, free of charge, to anyone obtaining a copy
of this software and associated documentation files (the "Software"),
to work with the Software within the limits of freeware distribution and fair use.
This includes the rights to use, copy, and modify the Software for personal use.
Users are also allowed and encouraged to submit corrections and modifications
to the Software for the benefit of other users.

It is not allowed to reuse, modify, or redistribute the Software for
commercial use in any way, or for a user�s educational materials such as books
or blog articles without prior permission from the copyright holder.

The above copyright notice and this permission notice need to be included
in all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


16 changes: 16 additions & 0 deletions README.md
@@ -0,0 +1,16 @@
#Apress Source Code

This repository accompanies [*The Definitive Guide to MySQL*](http://www.apress.com/9781590591444) by Michael Kofler (Apress, 2004).

[comment]: #cover
![Cover image](9781590591444.jpg)

Download the files as a zip using the green button, or clone the repository to your machine using Git.

##Releases

Release v1.0 corresponds to the code in the published book, without corrections or updates.

##Contributions

See the file Contributing.md for more information on how you can contribute to this repository.
14 changes: 14 additions & 0 deletions contributing.md
@@ -0,0 +1,14 @@
# Contributing to Apress Source Code

Copyright for Apress source code belongs to the author(s). However, under fair use you are encouraged to fork and contribute minor corrections and updates for the benefit of the author(s) and other readers.

## How to Contribute

1. Make sure you have a GitHub account.
2. Fork the repository for the relevant book.
3. Create a new branch on which to make your change, e.g.
`git checkout -b my_code_contribution`
4. Commit your change. Include a commit message describing the correction. Please note that if your commit message is not clear, the correction will not be accepted.
5. Submit a pull request.

Thank you for your contribution!

0 comments on commit 7a56d00

Please sign in to comment.