Database Server: Advanced Application Manual
Database Server: Advanced Application Manual
Database Server
This manual walks through the steps to set up MySQL Server, and then use Excel to
read HMI historical data.
V1.00
Table of Contents
1. Overview ................................................................................................................. 1
2. Installing MySQL Server .......................................................................................... 1
3. Building Database ................................................................................................... 4
4. Designing Project File ............................................................................................. 7
5. Synchronizing MySQL Database to Microsoft Office Excel ..................................... 8
6. References ............................................................................................................ 13
Database Server
1. Overview
Database Server is available in EasyBuilder Pro V5.03.01 and later versions. Database
Server can synchronize sampled data and event logs to a remote MySQL server, and
then the user can use a third-party software, for example, Microsoft Office Excel, to
manage the data in the server.
This user manual explains step by step on how to install and set up MySQL server,
how to connect Excel to MySQL server, and how to design EasyBuilder project, in
order to make reading HMI data using Excel an easy job, even for a beginner.
1
Database Server
2
Database Server
3
Database Server
3. Building Database
After installing MySQL, a Schema must be created in MySQL for synchronizing HMI
historical data to the Schema with the same name.
4
Database Server
6. The program will prompt the user to review the SQL Script, click [Apply].
5
Database Server
8. Click [Add Account] and enter the user credentials in [Login] tab.
6
Database Server
3. In Address tab set Status Address and Control Address. The status
addresses can display the connection status with SQL server on HMI, and
the control addresses can be used to change connection parameters
dynamically on HMI.
4. Select [Sync to database] for both Data Sampling object and Event Log
object, to synchronize the historical data to the Database Server.
7
Database Server
If Control Address is enabled in Data Sampling and Event Log, then entering value 1
in the control address synchronizes the historical data to SQL server. When using a
cMT model, please see EasyBuilder Pro User Manual Chapter 7 Event Log and
Chapter 8 Data Sampling for more details on the synchronization rules of historical
data.
8
Database Server
9
Database Server
10
Database Server
11
Database Server
17. When historical data is synchronized to MySQL, the Excel worksheet should
display the data.
18. Go to [Data] tab and select [Connections]. Select the connection and open
its [Properties] settings window, in [Usage] tab select [Refresh every *
minutes].
12
Database Server
6. References
1. MySQL requires MET Framework4.0, and the download link is:
https://www.microsoft.com/zh-tw/download/details.aspx?id=17718
2. MySQL requires Visual C++ Restributable Packages for Visual Studio 2013,
and the download link is:
https://www.microsoft.com/en-US/download/details.aspx?id=40784
3. The download link of Database Server Demo Project:
Database Server demo project
4. The download link of EasyBuilder Pro User Manual Chapter 7 Event Log:
http://www.weintek.com/download/EBPro/UserManual/eng/UserManual_
separate_chapter/Chapter_07_Event_Log.pdf
5. The download link of EasyBuilder Pro User Manual Chapter 8 Data
Sampling:
http://www.weintek.com/download/EBPro/UserManual/eng/UserManual_
separate_chapter/Chapter_08_Data_Sampling.pdf
13