Preface |
|
xi | |
What is a Database? |
|
xi | |
From Codd to MySQL, a Brief History |
|
xiii | |
Alternatives and the Future of MySQL |
|
xv | |
Who Should Read This Book |
|
xvi | |
Conventions Used |
|
xvi | |
Code Samples |
|
xvi | |
Tips, Notes, and Warnings |
|
xvii | |
Supplementary Materials |
|
xvii | |
Want to Take Your Learning Further? |
|
xviii | |
|
Chapter 1 Getting Started with MySQL |
|
|
1 | (14) |
|
Installing MySQL on Linux |
|
|
2 | (6) |
|
Installing via a Package Manager |
|
|
2 | (3) |
|
|
5 | (3) |
|
Installing MySQL on Windows |
|
|
8 | (2) |
|
Communicating with the Server |
|
|
10 | (1) |
|
MySQL Accounts and Security |
|
|
11 | (3) |
|
|
14 | (1) |
|
|
15 | (22) |
|
|
16 | (15) |
|
Data Types and Storage Requirements |
|
|
20 | (7) |
|
|
27 | (4) |
|
|
31 | (4) |
|
|
33 | (2) |
|
|
35 | (2) |
|
Chapter 3 Retrieving and Updating Data |
|
|
37 | (20) |
|
|
38 | (2) |
|
|
40 | (11) |
|
|
41 | (3) |
|
Managing the Number of Returned Rows |
|
|
44 | (5) |
|
Aggregate Functions and Grouping |
|
|
49 | (2) |
|
|
51 | (4) |
|
|
51 | (2) |
|
|
53 | (2) |
|
|
55 | (2) |
|
Chapter 4 Working with Multiple Tables |
|
|
57 | (20) |
|
|
58 | (8) |
|
|
61 | (5) |
|
|
66 | (3) |
|
|
69 | (5) |
|
|
70 | (1) |
|
|
71 | (2) |
|
|
73 | (1) |
|
|
74 | (2) |
|
|
76 | (1) |
|
Chapter 5 Connecting from Code |
|
|
77 | (18) |
|
Connecting from Python with Connector/Python |
|
|
78 | (6) |
|
|
79 | (2) |
|
Buffered and Unbuffered Results |
|
|
81 | (1) |
|
|
82 | (2) |
|
Connecting from PHP with PDO |
|
|
84 | (6) |
|
|
85 | (3) |
|
|
88 | (1) |
|
|
89 | (1) |
|
Connecting from R with RMySQL |
|
|
90 | (4) |
|
|
91 | (2) |
|
|
93 | (1) |
|
|
94 | (1) |
|
Chapter 6 Programming the Database |
|
|
95 | (26) |
|
|
96 | (3) |
|
|
99 | (3) |
|
|
102 | (3) |
|
|
105 | (4) |
|
|
109 | (3) |
|
|
112 | (7) |
|
|
119 | (2) |
|
Chapter 7 Backups and Replication |
|
|
121 | |
|
|
121 | (3) |
|
|
122 | (2) |
|
|
124 | (1) |
|
|
124 | (2) |
|
|
126 | (5) |
|
|
127 | (3) |
|
Fixing Broken Replication |
|
|
130 | (1) |
|
|
131 | (2) |
|
|
133 | |