Skip to main content

Project 4: Using MySQL to Store Data

  • Chapter
  • First Online:
  • 2011 Accesses

Abstract

IoT solutions, by definition if not implementation, can generate a lot of data. Indeed, most IoT solutions observe the world in one or often several ways. Those observations generate data at whatever rate the solution specifies (called a sample rate). To make the data most useful for historical or similar analytics, you have to save the data for later processing. Database systems provide a perfect solution for storing IoT data and making it available for later use. The project in this chapter takes the same project goals from the last chapter and stores the data generated in a MySQL database. The chapter also demonstrates how to retrieve that data.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    According to GNU ( www.gnu.org/philosophy/free-sw.html ), “free software is a matter of liberty, not price. To understand the concept, you should think of “free” as in “free speech,” not as in “free beer.”

  2. 2.

    And use the --console command-line option on Windows systems.

  3. 3.

    C. J. Date, The Database Relational Model: A Retrospective Review and Analysis (Reading, MA: Addison-Wesley, 2001).

  4. 4.

    C. J. Date and H. Darwen, Foundation for Future Database Systems: The Third Manifesto (Reading, MA: Addison-Wesley, 2000).

  5. 5.

    If you would like to know more about storage engines and what makes them tick, see my book Expert MySQL (Apress, 2012).

  6. 6.

    See http://en.wikipedia.org/wiki/ACID .

  7. 7.

    And any additional database objects that I need.

  8. 8.

    I have yet to try this myself. I encourage you to try it yourself and blog about it!

  9. 9.

    You could overcome this by changing the project template, but I like to use the blank app template in case I ever decide to add a user interface.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Charles Bell

About this chapter

Cite this chapter

Bell, C. (2016). Project 4: Using MySQL to Store Data. In: Windows 10 for the Internet of Things. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2108-2_13

Download citation

Publish with us

Policies and ethics