Chapter 5Connecting from Code

It’s more common for users to work with data stored in a database through an application’s display than to directly send queries to the server using a command-line client. Although any specific details depend on the nature and purpose of each application, generally speaking the program provides an interface to accept input and display data, and some internal process to formulate queries and communicate with the database management system. Users may not even be aware their data is stored in a database behind all of that. In this chapter, we’ll discuss the basics of communicating with MySQL from programming code.

There are many programming languages to choose from—even if we restrict ourselves to the most popular ones. ...

Get Jump Start MySQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.