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
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
- 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.
And use the --console command-line option on Windows systems.
- 3.
C. J. Date, The Database Relational Model: A Retrospective Review and Analysis (Reading, MA: Addison-Wesley, 2001).
- 4.
C. J. Date and H. Darwen, Foundation for Future Database Systems: The Third Manifesto (Reading, MA: Addison-Wesley, 2000).
- 5.
If you would like to know more about storage engines and what makes them tick, see my book Expert MySQL (Apress, 2012).
- 6.
- 7.
And any additional database objects that I need.
- 8.
I have yet to try this myself. I encourage you to try it yourself and blog about it!
- 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
Rights 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
DOI: https://doi.org/10.1007/978-1-4842-2108-2_13
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2107-5
Online ISBN: 978-1-4842-2108-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)