Chapter 15: Using SQL with MySQL

"Stimpy hated procedural programming. He liked programs to form one unbroken wodge of source, with a minimum of annotation.

All variable names had to be prefixed with 'THE', as in 'THE_ITEM_COUNT', 'THE_VAT_TOTAL'. The programming (all done under DOS) had to take place in a 40-column window. Minimum tab size for any indentation was 10 characters. John often wondered what planet Stimpy was from." —Unknown

Introduction

In our experience, many books cover the use of databases, and many cover how to access databases from various programming languages. The problem is it tends to be one or the other. The aim of this chapter is to familiarize you with how to use the database application MySQL, which is available free for nonprofit use. Of course, it is possible for other database applications (such as Access, Oracle, etc.) to be used in Java, but MySQL is relatively easy to install and access. It is also becoming one of the most popular in the development community.

In this chapter, we will cover how to install and use MySQL so that in the following chapter we can use it in conjunction with JDBC (Java Database Connectivity) to allow storing and retrieving game-related data in our Java applets/applications.



Java 1.4 Game Programming
Java 1.4 Game Programming (Wordware Game and Graphics Library)
ISBN: 1556229631
EAN: 2147483647
Year: 2003
Pages: 237

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net