
Database Web Programming Open Office Version Bipin C. Desai Arlin L. Kipling Concordia University Montreal BytePress Limit of Liability/Disclaimer of Warranty: The authors and the publishers have taken care to prepare this book. However, there is no warranty of the accuracy, completeness or presentation of the latest version/generation of any system discussed in this book. The reader must be aware of the fact that software systems often have multiple bugs and are not well thought out, and are usually suitable for limited situations and/or data combinations. Hence the user must be responsible for the appropriate application of any technique and use of any software or code examples. Furthermore, there is no assurance whatsoever of the possible usefulness or commercialization of any programs, scripts and examples given in this book. Any references given are based on their existence at the time of writing and the authors and the publishers do not endorse them or imply any usefulness of the information found therein. The reader must be aware that any web site cited may change, disappear or change their terms of service. Published by: Electronic Publishing BytePress.com Inc. ISBN: 978-1-988392-04-2 CopyForward 2020 by Bipin C. Desai and Arlin L.Kipling The document, in electronic form, could be used for personal use and/or study, free of charge. Anyone could use it to derive updated versions. The derived version must be published under Copy Forward. All authors of the version used to derive the new version must be included in the updated version in the existing order, followed by name(s) of author producing the derived work. Such derived version must be made available free of charge in electronic form under CopyForward. Any other means of reproduction requires that profit(income minus the actual production cost) should be shared with established charitable organizations for children. Readers who found this or any derived work useful are encouraged to also make a donation to their favourite charity. ii Dedication To my family and the next generation: A, A, C, L, L, R, W Bipin C. Desai To my wife, Joan, and daughters, Caroline, Diane and Arlene Arlin L. Kipling iii CONTENTS PREFACE.......................................................................................................................................................... XIV OVERVIEW....................................................................................................................................................... XVI 1 INTRODUCTION.......................................................................................................................................... 1 1.1 DATABASE WEB PROGRAMMING.............................................................................................................................1 1.2 EXAMPLE.............................................................................................................................................................1 1.3 DATABASE............................................................................................................................................................5 1.3.1 Concepts.................................................................................................................................................5 1.3.2 Database Contents.................................................................................................................................7 1.4 THREE-TIER ARCHITECTURE.....................................................................................................................................8 1.5 OPERATION........................................................................................................................................................10 1.6 INTERNET...........................................................................................................................................................11 1.7 WEB.................................................................................................................................................................12 1.8 THREE-TIER SOFTWARE........................................................................................................................................14 1.8.1 User.......................................................................................................................................................15 1.8.2 Client (Computer 1)...............................................................................................................................15 1.8.3 Server (Computer 2)..............................................................................................................................16 1.8.4 Database (Computer 3)........................................................................................................................16 1.9 OTHER REQUIRED SOFTWARE................................................................................................................................17 1.9.1 Editor....................................................................................................................................................17 1.9.2 Internet Applications............................................................................................................................17 1.10 POSTSCRIPT...................................................................................................................................................19 2 MYSQL SHELL..................................................................................................................................... 20 2.1 INTRODUCTION...................................................................................................................................................20 2.2 INSTALLATION OF MYSQL....................................................................................................................................20 2.2.1 EasyPHP................................................................................................................................................20 2.2.2 Download..............................................................................................................................................21 2.2.3 Install....................................................................................................................................................21 2.2.4 Starting of servers.................................................................................................................................21 2.2.5 Name of local computer.......................................................................................................................22 2.2.6 Document root directory......................................................................................................................23 2.2.7 Browser.................................................................................................................................................23 2.2.8 Test.......................................................................................................................................................23 2.3 ALTERNATE DOWNLOADS.....................................................................................................................................24 2.4 MYSQL...............................................................................................................................................................24 2.4.1 Location of mysql..................................................................................................................................24 2.4.2 Start operating system shell.................................................................................................................25 2.4.3 Search path...........................................................................................................................................25 2.4.4 Start mysql............................................................................................................................................26 2.4.5 Stop mysql............................................................................................................................................26 2.4.6 Stop operating system shell..................................................................................................................26 2.5 SAMPLE DATABASE..............................................................................................................................................26 2.6 DEMONSTRATIONS OF MYSQL COMMANDS..............................................................................................................26 2.6.1 Start mysql............................................................................................................................................27 2.6.2 General: version(), user(), now(), evaluate expression, cancel command............................................28 2.6.3 Database: show, create, drop, use, database()....................................................................................29 2.6.4 Table: show, create, drop, describe......................................................................................................30 iv 2.6.5 Table: select, insert, update, delete......................................................................................................33
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages547 Page
-
File Size-