Storing data in MySQL
MySQL is undeniably the most popular open source SQL database. Dart can talk to MySQL using the pub package sqljocky
by James Ots (https://github.com/jamesots/sqljocky). In this section, we will demonstrate how to use this driver step by step. You can see it in action in the using_mysql
project.
Getting ready
- To get the database software, download and install the MySQL Community Server installer from http://dev.mysql.com/downloads/mysql/. This is straightforward. However, if you need any help with the installation, visit http://dev.mysql.com/doc/refman/5.7/en/installing.html.
- Run the MySQL database system by starting
mysqld
on a command prompt from the bin folder of the MySQL installation. We need to create a database and table ...
Get Dart: Scalable Application Development 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.