JetOS93 MySQL SDK. User Manual Korenix Overview 1

Similar documents
JetBox series Modbus Gateway User Manual

JetBox 95xx/ 93xx Linux Auto Run Function

JetBox 5630 Modbus Gateway User Manual

JetI/O 6500 Demo Box

JetBox 9300/9310 User Manual. Hardware

JetBox 8152 User Manual. WinCE 6.0 Canbus.

The connection has timed out

Database Systems. phpmyadmin Tutorial

Movidius Neural Compute Stick

Mastering phpmyadmiri 3.4 for

Infotek Solutions Inc.

COMP283-Lecture 6 Applied Database Management

Installation guide. WebChick. Installation guide for use on local PC

UM2375 User manual. Linux driver for the ST25R3911B/ST25R391x high performance NFC frontends. Introduction

Oracle SQL Developer. Oracle TimesTen In-Memory Database Support User's Guide Release 4.0 E

FX RFID READER SERIES Embedded SDK Sample Application

MAS 90 MAS 200 Extended Solution User ID Password Expiration LM-1016

CSC 215 PROJECT 2 DR. GODFREY C. MUGANDA

Table of Contents. Tutorial

Installation Guide Linux CUPS Driver Rev. 1.01

Databases (MariaDB/MySQL) CS401, Fall 2015

MYRO My Record Oriented privilege system

Introduction to SQL on GRAHAM ED ARMSTRONG SHARCNET AUGUST 2018

User's Guide and Reference

Installing MySQL Subscriber Database

All about using HALCON Embedded for Vision Components nano Z, Version

LTC Data Converter Board For The Arrow SoCKit Linux Application User s Guide

Getting Started with SAP Business One 9.2, version for SAP HANA

Unzip command in unix

Configuring Microsoft Windows Shared

Instant HR Auditor Installation Guide

Installation of driver USB under linux Edition n Distributions Mandrake, Fedora Core, SuSE

Web Database Programming

B&B Spectre LTE Edge MicroServer Setup Guide

Applied Informatics POCO PRO C++ Frameworks

CodeWarrior Development Tools mwclearcase Plug-in User Guide

Installation and Upgrade Guide Zend Studio 9.x

About these Release Notes

Additional License Authorizations. For Vertica software products

Installation and Upgrade Guide Zend Studio 9.x

Database and MySQL Temasek Polytechnic

AMD APP SDK v3.0 Beta. Installation Notes. 1 Overview

SAMSUNG ELECTRONICS RESERVES THE RIGHT TO CHANGE PRODUCTS, INFORMATION AND SPECIFICATIONS WITHOUT NOTICE. Products and specifications discussed

CSC 337. Relational Databases and SQL. Rick Mercer

Parallels Software International, Inc. Parallels Compressor. Installation Guide. Workstation

OptimiData. JPEG2000 Software Development Kit for C/C++ Reference Manual. Version 1.6. from

High-Performance Reservoir Risk Assessment (Jacta Cluster)

IEMS 5722 Mobile Network Programming and Distributed Server Architecture Semester 2

Databases CSCI 201 Principles of Software Development

Project and Portfolio Management Center

Communications Library Manual

Relational databases and SQL

COP4540 TUTORIAL PROFESSOR: DR SHU-CHING CHEN TA: H S IN-YU HA

Database Security Service. FAQs. Issue 19 Date HUAWEI TECHNOLOGIES CO., LTD.

! An organized collection of data. ! Can easily be accessed, managed, and updated. ! Data are organized as a set of tables.

Advanced Topics in Operating Systems. Manual for Lab Practices. Enterprise JavaBeans

Application Note: AN00151 xscope - Custom Host Endpoint

Creating Your First MySQL Database. Scott Seighman Sales Consultant Oracle

DocAve v5 Installation Configure your DocAve 5 Platform Quickly and Easily

JetBox Datasheet.

Exploring the Microsoft Access User Interface and Exploring Navicat and Sequel Pro, and refer to chapter 5 of The Data Journalist.

In this exercise, you will import orders table from MySQL database. into HDFS. Get acquainted with some of basic commands of Sqoop

Create a simple database with MySQL

Abstract. This is the MySQL OS X extract from the MySQL 5.6 Reference Manual. For legal information, see the Legal Notices.

AvePoint Office Connect Online Manager 1.0

Korenix JetCard Series Multiport Serial Card/Ethernet Switch Card User s Manual

Although this code is under construction the interfaces are unlikely to change, if only because we use it in production.

Installation Guide. Version

Sun Virtual Desktop Infrastructure. Update Guide for Version 3.1

Perceptive Data Transfer

This lab will introduce you to MySQL. Begin by logging into the class web server via SSH Secure Shell Client

Sentinel UltraPro Version (Windows) Release Notes

DATABASE MANAGEMENT SYSTEMS

MCS9865 Linux Driver User Manual

Adding images to account Report Designer Sections Categories Report title Graphs. Customization Tips for Your Extended DISC Reports

Yellowfin Custom Installer Guide

Guidelines of Ethernet for Using a Star Device. - Mac OS X - Rev. 3.0

Unit 27 Web Server Scripting Extended Diploma in ICT

JetBox 8152 User Manual. WinCE 5.0 Canbus.

Creating databases using SQL Server Management Studio Express

LPM v3.x SDK Developer's Guide

Quick Start Guide for Intel FPGA Development Tools on the Microsoft* Azure* Platform

Simics Installation Guide for Linux/Solaris

MySQL Installation Guide (OS X)

IBM Rational Rhapsody TestConductor Add On. Testing on a Linux Target

Application Note: AN00152 xscope - Bi-Directional Endpoint

Intel Parallel Studio XE 2011 SP1 for Linux* Installation Guide and Release Notes

Oracle Utilities Customer Care and Billing

Creating Domain Templates Using the Domain Template Builder 11g Release 1 (10.3.6)

LaserJet Enterprise M607, M608, M609

Acronis Backup plugin for WHM and cpanel 1.0

Accessing databases in Java using JDBC

HPE Knowledge Article

Application Note: Demo programs for PremierWave EN and PremierWave XN

MOXA VPort 2110/2140/2141 Video Server Quick Installation Guide

Installing Dynamicweb Wrap Community Edition

Hands-on with the Sitara Linux SDK

Wipro UWIN Porting Guide

MySQL Schema Best Practices

Intel Parallel Studio XE 2011 for Linux* Installation Guide and Release Notes

Transcription:

JetOS93 MySQL SDK User Manual www.korenix.com 0.0.1 Korenix Overview 1

Copyright Notice Copyright 2012 Korenix Technology Co., Ltd. All rights reserved. Reproduction without permission is prohibited. Information provided in this manual is intended to be accurate and reliable. However, the original manufacturer assumes no responsibility for its use, or for any infringements upon the rights of third parties that may result from its use. The material in this document is for product information only and is subject to change without notice. While reasonable efforts have been made in the preparation of this document to assure its accuracy, Korenix assumes no liabilities resulting from errors or omissions in this document, or from the use of the information contained herein. Korenix reserves the right to make changes in the product design without notice to its users. Acknowledgments Korenix is a registered trademark of Korenix Technology Co., Ltd. All other trademarks or registered marks in the manual belong to their respective manufacturers. Korenix Overview 2

Table of Content Copyright Notice... 2 Acknowledgments... 2 Table of Content... 3 Overview... 4 Setup trial environment... 5 Install SDK... 6 Use the sample program... 10 Korenix Overview 3

Overview JetOS93 MySQL SDK include MySQL header files, precompiled libraries, and sample codes. In the next section, we will guide you from creating a database, add a table with fields, and use our sample code to query, add, and remove entries in the table. It should fulfill all requirements to create your own application connect to MySQL Database from JetBox. Korenix Overview 4

Setup trial environment You may want to setup a trial environment like the diagram below. In this section, you will need to install and setup a MySQL server. diagram 1: Trial environment First, install MySQL database on JetBox8000 series. The official Tutorial can be found in the following link: http://dev.mysql.com/doc/refman/5.5/en/ Second, connect to the MySQL database installed on JetBox8000 series: # mysql u root p Third, create a database named jetboxdemo : mysql> create database jetboxdemo; Forth, create a table called demo, with 5 data fields: mysql> use jetboxdemo; mysql> create table demo (idx int(50) not null auto_increment primary key,voltage DECIMAL(5,2),current DECIMAL(5,2),time TIMESTAMP, status varchar(10)); Finally, add some values into the demo table. mysql> INSERT INTO demo (voltage,current,time,status) VALUES(1.1,2.2,NOW(),"ok"); mysql> select * from demo; Korenix Setup trial environment 5

Install SDK The MySQL SDK, same as JetOS93 SDK, must be installed on your host computer running Linux (i.e. Fedora 9). Download and use the command tar to uncompress the SDK archive at your home directory. Notice: JetOS93 SDK V0.6 must be installed before you install JetOS93 MySQL SDK. For example: # cd ~ # tar zfx jetos93 mysql sdk v0.1.tar.gz Snapshot 2: The directory of the JetOS93 MySQL SDK Filename end with extension.cpp is comiple and link with arm linux g++: filename common.h Description define database ip, username, password Korenix Install SDK 6

filename delete.c delete.cpp insert.c insert.cpp select.c select.cpp showversion.c Description delete a entry from a table delete a entry from a table (c++) insert a entry to a table insert a entry to a table (c++) list entries in a table list entries in a table (c++) show MySQL version in the library In the include directory, files end with.h are mysql header files you might need to compile source code. Snapshot 2: The include directory of the JetOS93 MySQL SDK In the library directory, files end with.a are mysql static linked library. File end with.so is the share library. Korenix Install SDK 7

Snapshot 3: The library directory of the JetOS93 MySQL SDK Compile the source code is pretty simple, just type make and press <Enter>, then executable file should be generated. Then you can copy them to USB and mount it to JetBox. Note: You MUST modify the common.h according to your SQL settings: Snapshot 4: The common.h file Korenix Install SDK 8

Snapshot 5: The output of the JetOS93 MySQL SDK Snapshot 6: The Makefile of the JetOS93 MySQL SDK Korenix Install SDK 9

Use the sample program Assume you have created 4 entries in the demo table on the MySQL server side: You can list the entries with select (or select++) command on JetBox3300: To add an entry to the demo table, you can use insert (or insert ++) command, Usage: insert <voltage> <current> <status> There should be a new entry in the SQL server. To delete an entry from the demo table, you can use delete (or delte++) command, Usage: delete <row number> Then the entry with idx 6 should be remove from server. Korenix Use the sample program 10

Korenix Use the sample program 11