Learn how to use MySQL and mSQL, two popular database products that support key subsets of SQL on Linux and Unix systems. Using basic C, Java, Perl, or Python, you can write a program to interact with a database, either as a stand-alone application or through a web page. This book covers the whole process, from installation to programming interfaces and basic administration. Includes ample tutorial material.
-
Getting Started with MySQL and mSQL
-
Chapter 1 Introduction to Relational Databases
- What Is a Database?
- What Is a Relational Database?
- Applications and Databases
- MySQL and mSQL
-
Chapter 2 Database Design
- Database Design
- Normalization
- A Logical Data Modeling Methodology
- Physical Database Design
-
Chapter 3 Installation
- MySQL
- mSQL
-
Chapter 4 MySQL
- Design
- Installing MySQL
- Running MySQL
- Database Administration
- MySQL Utilities
- Performance Tuning
-
Chapter 5 mSQL
- Design
- mSQL Versions
- Installing mSQL
- Running mSQL
- Database Administration
- mSQL Utilities
-
Chapter 6 SQL According to MySQL and mSQL
- SQL Basics
- Creating and Dropping Tables
- SQL Datatypes
- Indices
- Sequences and Auto-Incrementing
- Managing Data
- Queries
- Extended Functionality
-
Chapter 7 Other Mid-Range Database Engines
- What Is “Free”?
- What MySQL and mSQL Lack
- PostgreSQL
- GNU SQL
- Beagle
- Making Comparisons
-
-
Database Programming
-
Chapter 8 Database Application Architectures
- The Client/Server Architecture
- Data Processing
- Object/Relational Modeling
- The Three-tier Architecture
-
Chapter 9 CGI Programming
- What Is CGI?
- HTML Forms
- The CGI Specification
- Important Considerations for CGI Scripts
- CGI and Databases
-
Chapter 10 Perl
- DBI
- An Example DBI Application
- Msql.pm
- MysqlPerl
-
Chapter 11 Python
- Basic Connectivity
- Dynamic Connectivity
-
Chapter 12 PHP and Other Support for Database-driven HTML
- Alternatives for Dynamic Content on the Web
- W3-mSQL
- PHP
- Embedded Perl
-
Chapter 13 C and C++
- The Two APIs
- Object-oriented Database Access in C++
-
Chapter 14 Java and JDBC
- What Is JDBC?
- Simple Database Access
- Dynamic Database Access
- A Guest Book Servlet
-
-
Reference
-
Chapter 15 SQL Reference
- MySQL SQL
- mSQL SQL
-
Chapter 16 MySQL and mSQL System Variables
- MySQL System Variables
- mSQL System Variables
-
Chapter 17 MySQL and mSQL Programs and Utilities
- MySQL Utilities
- mSQL Utilities
-
Chapter 18 PHP and Lite Reference
- PHP
- Lite
-
Chapter 19 C Reference
- MySQL C API
- mysql_affected_rows
- mysql_close
- mysql_connect
- mysql_create_db
- mysql_data_seek
- mysql_debug
- mysql_drop_db
- mysql_dump_debug_info
- mysql_eof
- mysql_errno
- mysql_error
- mysql_escape_string
- mysql_fetch_field
- mysql_fetch_field_direct
- mysql_fetch_fields
- mysql_fetch_lengths
- mysql_fetch_row
- mysql_field_seek
- mysql_field_tell
- mysql_free_result
- mysql_get_client_info
- mysql_get_host_info
- mysql_get_proto_info
- mysql_get_server_info
- mysql_info
- mysql_init
- mysql_insert_id
- mysql_kill
- mysql_list_dbs
- mysql_list_fields
- mysql_list_processes
- mysql_list_tables
- mysql_num_fields
- mysql_num_rows
- mysql_ping
- mysql_query
- mysql_real_connect
- mysql_real_query
- mysql_reload
- mysql_row_tell
- mysql_select_db
- mysql_shutdown
- mysql_stat
- mysql_store_result
- mysql_thread_id
- mysql_use_result
- mSQL C API
- msqlConnect
- msqlSelectDB
- msqlQuery
- msqlStoreResult
- msqlFreeResult
- msqlFetchRow
- msqlDataSeek
- msqlNumRows
- msqlFetchField
- msqlFieldSeek
- msqlNumFields
- msqlClose
- msqlListDBs
- msqlListTables
- msqlListFields
- msqlListIndex
-
Chapter 20 Python Reference
- Module: MySQL
- Module: mSQL
-
Chapter 21 Perl Reference
- Installation
- DBI.pm API
- Msql.pm API
- Mysql.pm API
-
Chapter 22 JDBC Reference
-
-
Colophon
- Title:
- MySQL and mSQL
- By:
- Tim King, George Reese, Randy Yarger
- Publisher:
- O'Reilly Media
- Formats:
-
- Print Release:
- July 1999
- Pages:
- 502
- Print ISBN:
- 978-1-56592-434-5
- | ISBN 10:
- 1-56592-434-7
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animals featured on the cover of MySQL and mSQL are kingfishers. This type of bird can be found all over the world, including North America, Europe, Africa, and New Zealand, with the greatest numbers being found in southeast Asia. There are over 80 species of kingfishers, which range in size from five to eighteen inches and which cover a broad spectrum of color. These typically long-billed birds pair for life and are considered to be very territorial. Their nests are long and tunnel-shaped, and are often found in exposed tree roots or water banks.
Most kingfishers live along the banks of rivers or lakes, as the primary staple of their diet is fish. To catch its prey, a kingfisher will perch on a branch above water, watch for a fish, hover for a moment, and then dive headfirst into the water, grabbing the fish in its beak, and heading back up to the surface. The process takes about a third of a second. The kingfisher's diet also consists of spiders, insects, and small amphibians. Jeffrey Liggett was the production editor for MySQL and mSQL. Robert Romano and Rhon Porter created the illustrations using Adobe Photoshop 5.0 and Macromedia Freehand 8.0. Mike Sierra provided FrameMaker technical support. Claire Cloutier LeBlanc provided quality control. Editorial and production services were provided by Rashelle Perez and David Leiser at Electro-Publishing. Becky Peveler was the copyeditor. The index was written by Electro-Publishing, with assistance from Seth Maislin.
Edie Freedman designed the cover of this book, using a 19th-century engraving from the Dover Pictorial Archive. The cover layout was produced by Kathleen Wilson with QuarkXPress 3.32 using the ITC Garamond font. Whenever possible, our books use RepKover, a durable and flexible lay-flat binding. If the page count exceeds RepKover's limit, perfect binding is used. The inside layout was designed by Alicia Cech based on a series design by Nancy Priest. The layout was implemented in FrameMaker 5.5.6 by Mike Sierra. The text and heading fonts are ITC Garamond Light and Garamond Book. This colophon was written by Nicole Arigo.
