Part I. Introduction
Part I. Introduction
Part I. Introduction
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Part I. Introduction
1.
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Why Is MySQL so Popular?
Elements of MySQL and Its Environment
MySQL Software Covered in This Book
The Books Web Site
2.
Installing MySQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Installation Choices and Platforms
Using the Command-Line Interface
Using a Text Editor
Following the Instructions in This Book
Downloading and Verifying Files from the MySQL AB Web Site
Installing Under Linux
Installing Under Windows
Installing Under Mac OS X
Using a MySQL Installation Provided by an ISP
Upgrading an Existing MySQL Server
Configuring Access to the MySQL Server
What If Things Dont Work?
The Contents of the MySQL Directory
Configuring and Controlling the Apache Web Server
Setting up Perl
Resources
Exercises
3.
4
5
7
8
9
12
18
19
21
25
51
61
69
69
73
74
80
83
87
92
93
95
v
97
98
101
102
102
104
105
5.
6.
135
139
162
168
171
173
176
7.
109
111
112
120
128
129
131
132
179
181
212
214
220
221
vi | Table of Contents
223
228
236
250
User Variables
Transactions and Locking
Table Types
Exercises
8.
9.
263
266
267
275
277
281
284
285
288
292
294
295
298
299
303
306
307
308
317
322
323
324
328
333
339
346
347
349
353
360
361
361
365
366
369
369
369
371
373
374
375
376
377
379
383
388
391
392
392
395
400
402
410
411
412
415
427
448
452
455
456
461
462
466
470
471
474
476
478
480
486
487
497
497
501
507
507
512
513
537
538
539
540
542
545
546
552
554
554
554
558
560
564
564
566
566
Table of Contents | ix
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
x | Table of Contents