Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Programming Books Media Book Reviews IT Technology

Managing and Using MySQL: Second Edition 261

Geekboy(Wizard) writes: "MySQL has been used as a database for many sites and products. The U.S. Census Bureau, Slashdot, Yahoo Finance, and many other high-traffic web sites use MySQL for their database needs. It is a popular choice for databases, as it is GPL'd and thus free from costly licenses. If you need to use it in a proprietary application, you can purchase a non-GPL'd version from MySQL AB." Read on for Geekboy's review of Managing and Using MySQL: Second Edition, which he describes as "the only thing you /need/ to make a usable database."
Managing and Using MySQL: Second Edition
author George Reese, Randy Jay Yarger and Tim King, with Hugh E. Williams
pages 425
publisher O'Reilly & Associates
rating 9/10
reviewer Peter Hessler
ISBN 0596002114
summary Step by step tutorial to using MySQL, with included tools, and your favorites.

Managing and Using MySQL: 2nd Edition assumes that the reader has a little knowledge of databases, although some of the commands are difficult to get your head around until you have a database to test them on. Sample commands, and output for them are shown in the book, but a sample database isn't shown until chapter 9. MySQL took me through 'MySQL land' with the greatest of ease. Aside from the lack of a test database in the beginning, everything was very well laid out. It started with the basics, and worked up to full implementation and administration.

Part I introduces the reader to MySQL. It begins with a nice history, design elements, features and what you would want to use MySQL with. Nicely detailed instructions for downloading, and installing the current version. Information is provided for Unix, and Windows systems, with examples for FreeBSD 4 and Windows 2000. Basic SQL commands are presented, with sample queries and relevant results.

Part II introduces the reader to tuning, securing and designing the database. Several pitfalls are described, along with instructions for avoiding them. The realm of tuning is divided into application tuning, database tuning, and operating system/hardware tuning. Security is discussed from all aspects, but a database that has security concerns will need extensive testing and evaluation. Database design starts with the design on paper, with both the theoretical, and practical aspects. Once the paper design is drawn out, MySQL assists the reader through the actual making of the database.

Part III describes integrating the database into your favorite programming/scripting language. In the opening paragraph of chapter 12, The C API, the author states: "In this book, we examine several different programming languages: Python, Java, Perl, PHP and C. Among these languages, C is by far the most challenging." The information was presented in a way that readers who are new to C would have small difficulties with, and that intermediate and advanced users would find quite useful. The authors presented enough information, that I was able to write programs that interfaced with MySQL in less than 10 minutes. Perl scripts are presented in the same way. Knowledge of the language you will be integrating MySQL into is necessary, but the book presents and explains the rest of the information.

Part IV is the reference portion of the book. All great books that teach contain a reference section, and this book is no exception. The basic SQL syntax and command set are described, as well as the data types, numeric, string, date, and complex. Operations and functions are explained, as well as their order preference. The PHP API, the C API, and the Python DB-API are also fleshed out in nice detail.

Overall, the authors have an excellent introduction to SQL databases, and MySQL. Full examples are included for each topic, with full explanations. The only things I would change, would be to have a sample database in the beginning of the book, and to have a copy of that database online.

Table of Contents
Part I (Chapters 1 - 4) Introduction
1 MySQL
2 Installation
3 SQL According to MySQL
4 Database Administration
Part II (Chapters 5 - 7) MySQL Administration
5 Performance Turning
6 Security
7 Database Design
Part III (Chapters 8 - 14) MySQL Programming
8 Database Applications
9 Perl
10 Python
11 PHP
12 C API
13 Java
14 Extending MySQL
Part IV (Chapters 15 - 20) MySQL Reference
15 SQL Syntax for MySQL
16 MySQL Data Types
17 Operations and Functions
18 MySQL PHP API Reference
19 C Reference
20 The Python DB-API
Index


You can purchase Managing and Using MySQL: Second Edition from bn.com. Slashdot welcomes readers' book reviews -- to submit yours, read the book review guidelines, then visit the submission page.

This discussion has been archived. No new comments can be posted.

Managing and Using MySQL: Second Edition

Comments Filter:
  • by Anonymous Coward on Tuesday July 02, 2002 @11:27AM (#3807568)
    Right, MySQL story. To save everyone else the trouble, I'll go first.

    MySQL rocks!!
    No it doesn't, PostgreSQL rocks!
    MySQL is faster.
    No it's not.
    Yes it is.
    Use Oracle if you want a serious database.
    I run a top-5 US bank with MySQL on a P166MMX and it runs great why do you need Oracle?
    MySQL doesn't have transactions yet!
    Yes it does
    No it doesn't
    PostgreSQL rocks!
    No MySQL rocks!
  • by Marque_Off ( 589454 ) on Tuesday July 02, 2002 @11:36AM (#3807626)
    Managing and Using MySQL: 2nd Edition assumes that the reader through the actual making of the language you will be integrating MySQL into is necessary, but the book presents and explains the rest of the information.

    Part IV is the reference portion of the book, but a sample database in the beginning, everything was very well laid out. It started with the greatest of ease. Aside from the mysql side, but typically security flaws in web applications and if anyone of you are doing the same, also pick up Web Database Applications with PHP & MySQL (ISBN: 0-596-00041-3).
    Aside from the ground up? This is good that they appear to devote some time to security from the mysql side, but typically security flaws in web applications from the lack of a test database in the book, but a database to test them on.

    It begins with a nice history, design elements, features and what you would want to use MySQL with. Nicely detailed instructions for downloading, and installing the current version. Information is provided for Unix, and Windows 2000.

    Part II introduces the reader has a little knowledge of databases, through the actual making of the language you will be integrating MySQL into is necessary, but the book presents and explains the rest of the bookm although some of the book, and to have a database to test them on.

    All great books that teach contain a reference section, and this book and its awesome. Personally I'm using it for web applications and if anyone of you are doing the same, Complimenting each other in the beginning of the commands are difficult to get your head around until you have a database to test them on (of the computer nerdish-tech know how sort).
  • by jayhawk88 ( 160512 ) <jayhawk88@gmail.com> on Tuesday July 02, 2002 @11:49AM (#3807714)
    You forgot to flame MS-SQL. I believe the correct position would be right after the Oracle zealot comment.
  • by Lord_Slepnir ( 585350 ) on Tuesday July 02, 2002 @12:12PM (#3807850) Journal
    SELECT * FROM trolls WHERE IQ > 70; Error: 0 rows returned
  • by eberry ( 84517 ) on Tuesday July 02, 2002 @12:15PM (#3807871)
    Huh, let's see. Could it be NASA [fcw.com] !

    The better question is...who uses Oracle? MySQL out performs Oracle. PL/SQL should be renamed to POS/SQL. Oracle is the worst database system money can buy.

    Even MS SQL Server is better than Oracle. It sounds like your dad was a pretty smart man. To bad it doesn't run in the family.

    I know it's a Troll but I had to respond anyway.
  • Re:MySQL (Score:2, Funny)

    by rjamestaylor ( 117847 ) <rjamestaylor@gmail.com> on Tuesday July 02, 2002 @01:26PM (#3808460) Journal
    (albeit there are some "cleaver" work arounds)

    These would also be known as hacks, right?

  • Re:MySQL (Score:2, Funny)

    by neuroticia ( 557805 ) <neuroticia AT yahoo DOT com> on Tuesday July 02, 2002 @01:59PM (#3808788) Journal
    How does this have *anything* to do with a BOOK written about MySQL?

    This comment would be ALOT better if it was about the book or about the review. ;)

    -Sara
  • by Anonymous Coward on Tuesday July 02, 2002 @08:45PM (#3811745)
    Here are some alternative lyrics to the song YMCA that I came up with:

    Verse:

    Transactions, no they're not in the spec
    Procedures, and let's not forget
    Triggers, Monty says we must not let
    Foreign keys into the feature set

    Chorus:

    This lightweight database...

    MY - S - Q - L It has the tables locked
    MY - S - Q - L
    Well it's fast and it's free, but you surely must see
    it doesn't pro-vide a-tom-icity

    MY - S - Q - L It's not relational
    MY - S - Q - L
    You can do a SELECT but it's less than perfect
    You can't gar-un-tee in-tegrity.

    Works cited:
    http://openacs.org/philosophy/why-not-mysq l.html
    http://www.mysql.com/doc/A/N/ANSI_diff_For eign_Key s.html
    http://www.pgro.uk7.net/innodb1.htm

HELP!!!! I'm being held prisoner in /usr/games/lib!

Working...