Data Export 2010 for MySQL

129
© 2010 EMS Database Management Solutions, Inc. Data Export 2010 for MySQL User's Manual

description

 

Transcript of Data Export 2010 for MySQL

Page 1: Data Export 2010 for MySQL

© 2010 EMS Database Management Solutions, Inc.

Data Export 2010 for MySQLUser's Manual

Page 2: Data Export 2010 for MySQL

All rights reserved.

This manual documents EMS Data Export for MySQL, version 3.3.x.x

No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, includingphotocopying, recording, taping, or information storage and retrieval systems - without the written permission of thepublisher.

Products that are referred to in this document may be either trademarks and/or registered trademarks of therespective owners. The publisher and the author make no claim to these trademarks.

While every precaution has been taken in the preparation of this document, the publisher and the author assume noresponsibility for errors or omissions, or for damages resulting from the use of information contained in thisdocument or from the use of programs and source code that may accompany it. In no event shall the publisher andthe author be liable for any loss of profit or any other commercial damage caused or alleged to have been causeddirectly or indirectly by this document.

Use of this documentation is subject to the following terms: you may create a printed copy of this documentationsolely for your own personal use. Conversion to other formats is allowed as long as the actual content is not alteredor edited in any way.

Document generated on: 17.02.2010

Data Export 2010 for MySQLUser's Manual© 2010 EMS Database Management Solutions, Inc.

Page 3: Data Export 2010 for MySQL

Data Export 2010 for MySQL3

© 2010 EMS Database Management Solutions, Inc.

Table of Contents

Part I Welcome to EMS Data Export! 6

.........................................................................................................................................7What's new

.........................................................................................................................................8System requirements

.........................................................................................................................................9Installation

.........................................................................................................................................10How to buy Data Export

.........................................................................................................................................12How to register Data Export

.........................................................................................................................................13License Agreement

.........................................................................................................................................17Version history

.........................................................................................................................................23EMS Data Export FAQ

.........................................................................................................................................25Other EMS Products

Part II Wizard application 32

.........................................................................................................................................33Working with wizard application

.................................................................................................................................................................. 34Getting started

.................................................................................................................................................................. 35Step 1 - Setting connection options

.................................................................................................................................................................. 37Step 2 - Selecting tables

.................................................................................................................................................................. 38Step 3 - Specifying queries

.................................................................................................................................................................. 40Step 4 - Selecting export data format

.................................................................................................................................................................. 41Step 5 - Selecting fields to export

.................................................................................................................................................................. 42Step 6 - Setting export options

.......................................................................................................................................................................... 43Header & Footer options

.......................................................................................................................................................................... 45Caption, w idth and align options

.......................................................................................................................................................................... 46Setting format-specif ic options

......................................................................................................................................... 47Excel options

................................................................................................................................... 48Data format

................................................................................................................................... 48Fields

................................................................................................................................... 50Options

................................................................................................................................... 52Styles

................................................................................................................................... 54Extensions

................................................................................................................................... 54Hyperlinks

................................................................................................................................... 54Notes

................................................................................................................................... 56Charts

................................................................................................................................... 59Advanced

......................................................................................................................................... 61Access options

......................................................................................................................................... 63Word / RTF options

................................................................................................................................... 64Base data styles

................................................................................................................................... 65Strip data styles

................................................................................................................................... 66Advanced

......................................................................................................................................... 67HTML options

................................................................................................................................... 68Preview

................................................................................................................................... 68Basic

................................................................................................................................... 69Multi-f ile

................................................................................................................................... 70Advanced

Page 4: Data Export 2010 for MySQL

Data Export 2010 for MySQL4

© 2010 EMS Database Management Solutions, Inc.

......................................................................................................................................... 72PDF options

......................................................................................................................................... 74ASCII options

................................................................................................................................... 75TXT options

................................................................................................................................... 75CSV options

......................................................................................................................................... 76SQL options

......................................................................................................................................... 78XML options

......................................................................................................................................... 80DBF options

......................................................................................................................................... 82Excel 2007/ODS options

................................................................................................................................... 83Options

................................................................................................................................... 84Styles

......................................................................................................................................... 86Word 2007/ODT options

................................................................................................................................... 87Options

................................................................................................................................... 87Styles

................................................................................................................................... 88Advanced

.................................................................................................................................................................. 90Step 7 - Setting base data formats

.................................................................................................................................................................. 91Step 8 - Setting common options

.................................................................................................................................................................. 93Step 9 - Start of data export process

.........................................................................................................................................94Using configuration files (templates)

.........................................................................................................................................96Setting program preferences

.................................................................................................................................................................. 97Setting general options

.................................................................................................................................................................. 99Setting default formats

.................................................................................................................................................................. 100Setting default query template

.................................................................................................................................................................. 101Selecting program language

.................................................................................................................................................................. 103Defining interface style

.......................................................................................................................................................................... 105Trees and lists

.......................................................................................................................................................................... 107Edit controls

.......................................................................................................................................................................... 109Check boxes

.......................................................................................................................................................................... 111Buttons

.......................................................................................................................................................................... 113Group boxes

Part III Console application 116

.........................................................................................................................................117Working with console application

Part IV Appendix 119

.........................................................................................................................................119SSH tunneling options

.........................................................................................................................................120HTTP tunneling options

.........................................................................................................................................121Format specifiers

.........................................................................................................................................124Supported file formats

.........................................................................................................................................126Configuration file format

.........................................................................................................................................128Using query parameters

Page 5: Data Export 2010 for MySQL

Part

I

Page 6: Data Export 2010 for MySQL

Data Export 2010 for MySQL6

© 2010 EMS Database Management Solutions, Inc.

1 Welcome to EMS Data Export!

EMS Data Export 2010 for MySQL is a powerful program to export your data quickly fromMySQL databases to any of 19 available formats, including MS Access, MS Excel, MSWord (RTF), HTML, XML, PDF, TXT, CSV, DBF and more. Data Export 2010 for MySQLincludes a wizard which allows you to set export options for each table visually(destination file name, exported fields, data formats, and many others) and a command-line utility to export data from tables and queries in one-touch.

Visit our web-site: http://www.sqlmanager.net/ for details.

Key features:

Exporting data to 19 most popular formats: MS Excel, MS Access, MS Word, RTF,HTML, PDF, XML, TXT, DBF, CSV, ODF, SYLK, DIF, LaTeX, SQL, Clipboard and othersUnicode supportExporting data from several tables, views or queries at the same timeSelecting fields to export and changing their orderAdjustable parameters for each exported table and specific parameters for eachoutput formatSaving all export parameters set on current wizard session to the configuration fileCommand-line utility to automate your export jobs using the configuration fileLatest MySQL version supportConnecting through the SSH and HTTP tunnelUser-friendly localizable wizard interface

Product information:

Homepage: http://www.sqlmanager.net/en/products/mysql/dataexport

Support TicketSystem:

http://www.sqlmanager.net/support

Register on-line at: http://www.sqlmanager.net/en/products/mysql/dataexport/buy

Page 7: Data Export 2010 for MySQL

Data Export 2010 for MySQL7

© 2010 EMS Database Management Solutions, Inc.

1.1 What's new

Version Release date

Data Export 2010 for MySQL 3.3.0.1 February 17, 2010

What's new in EMS Data Export?

The 'Out of memory' error is fixed. The utility can now process more data, the exportspeed is increasedWhen exporting from a SQL query, the query text can be added both to Header andFooterSome visual changes are introduced; the sizes of forms/form parts are saved nowFixed the bug, connected with writing the rows number to the DBF file headerIt is now possible to define size and decimal for float fields when exporting to the DBFfileAn error occurred on exporting more than 65536 records to Excel 97-2003. Fixed nowSome other improvements and bugfixes

See also:

Version history 17

Page 8: Data Export 2010 for MySQL

Data Export 2010 for MySQL8

© 2010 EMS Database Management Solutions, Inc.

1.2 System requirements

System requirements for Data Export 2010 for MySQL

300-megahertz (MHz) Intel® Pentium II-compatible or faster processor; 600-megahertz (MHz) or faster processor recommendedMicrosoft® Windows NT4 with SP4 or later, Microsoft® Windows 2000, Microsoft®Windows 2000 Server, Microsoft® Windows XP, Microsoft® Windows 2003 Server,Microsoft® Windows Vista64MB RAM or more; 128MB or more recommended20MB of available HD space for program installationSuper VGA (800x600) or higher-resolution video adapter and monitor; Super VGA(1024x768) or higher-resolution video adapter and monitor recommendedMicrosoft® Mouse or compatible pointing devicePossibility to connect to any local or remote MySQL server

Page 9: Data Export 2010 for MySQL

Data Export 2010 for MySQL9

© 2010 EMS Database Management Solutions, Inc.

1.3 Installation

If you are installing Data Export 2010 for MySQL for the first time on your PC:download the Data Export 2010 for MySQL distribution package from the downloadpage available at our site;unzip the downloaded file to any local directory, e.g. C:\unzipped;run MyExportSetup.exe from the local directory and follow the instructions of theinstallation wizard;after the installation process is completed, find the Data Export shortcut in thecorresponding group of Windows Start menu.

If you want to upgrade an installed copy of Data Export 2010 for MySQL to the latestversion:

download the executable file of Data Export 2010 for MySQL from the downloadpage available at our site;unzip the downloaded file to any local directory, e.g. C:\unzipped;close Data Export application if it is running;replace the previous version of Data Export by copying the unzipped executable fileto the C:\...\%program_directory%\ location;run Data Export 2010 for MySQL using its shortcut in the corresponding group ofWindows Start menu.

Also you can use the full distribution package to upgrade your current version of DataExport 2010 for MySQL. In this case, you should repeat the steps you have made forthe first-time installation. Note that the full distribution package is larger than a singleexecutable file.

See also:

System requirements

License agreement

8

13

Page 10: Data Export 2010 for MySQL

Data Export 2010 for MySQL10

© 2010 EMS Database Management Solutions, Inc.

1.4 How to buy Data Export

To make it easier for you to purchase our products, we have contracted with share-it!registration service. The share-it! order process is protected via a secure connection andmakes on-line ordering by credit/debit card quick and safe. The following informationabout share-it! is provided for your convenience.

Share-it! is a global e-commerce provider for software and shareware sales via theInternet. Share-it! accepts payments in US Dollars, Euros, Pounds Sterling, Japanese Yen,Australian Dollars, Canadian Dollars or Swiss Franks by Credit Card (Visa, MasterCard/EuroCard, American Express, Diners Club), Bank/Wire Transfer, Check or Cash.

If you have ordered EMS software online and would like to review your order information,or if you have questions about ordering, payments, or shipping procedures, please visitour Customer Care Center, provided by Share-it!

Please note that all of our products are delivered via ESD (Electronic Software Delivery)only. After purchase you will be able to immediately download the registration keys orpasswords and download links for archives of full versions. Also you will receive a copy ofregistration keys or passwords by e-mail. Please make sure to enter a valid e-mail addressin your order. If you have not received the keys within 2 hours, please, contact us at [email protected]

To obtain MORE INFORMATION on this product, visit us at http://sqlmanager.net/en/products/mysql/dataexport

Product distribution

Data Export 2010 for MySQL (Business license) + 1-Year Maintenance*

Buy Now!

Data Export 2010 for MySQL (Business license) + 2-Year Maintenance*

Data Export 2010 for MySQL (Business license) + 3-Year Maintenance*

Data Export 2010 for MySQL (Non-commercial license) + 1-YearMaintenance*

Data Export 2010 for MySQL (Non-commercial license) + 2-YearMaintenance*

Data Export 2010 for MySQL (Non-commercial license) + 3-YearMaintenance*

Data Export 2010 for MySQL (Trial version) DownloadNow!

*EMS Maintenance Program provides the following benefits:

Free software bug fixes, enhancements, updates and upgrades during themaintenance periodFree unlimited communications with technical staff for the purpose of reportingSoftware failuresFree reasonable number of communications for the purpose of consultation onoperational aspects of the software

After your maintenance expires, you will not be able to update your software or gettechnical support. To protect your investments and have your software up-to-date, you

Page 11: Data Export 2010 for MySQL

Data Export 2010 for MySQL11

© 2010 EMS Database Management Solutions, Inc.

need to renew your maintenance.

You can easily reinitiate/renew your maintenance with our on-line, speed-throughMaintenance Reinstatement/Renewal Interface. After reinitiating/renewal you will receivea confirmation e-mail with all the necessary information.

See also:

How to register Data Import 12

Page 12: Data Export 2010 for MySQL

Data Export 2010 for MySQL12

© 2010 EMS Database Management Solutions, Inc.

1.5 How to register Data Export

To register your newly purchased copy of EMS Data Export 2010 for MySQL, performthe following:

receive the notification letter from Share-it! with the registration info;enter the Registration Name and the Registration Key from this letter;make sure that the registration process has been completed successfully – check theregistration information at the startup page .

See also:

How to buy Data Export

License Agreement

34

10

13

Page 13: Data Export 2010 for MySQL

Data Export 2010 for MySQL13

© 2010 EMS Database Management Solutions, Inc.

1.6 License Agreement

License Agreement for SHAREWARE versionsLicense Agreement for FREEWARE versions

License Agreement for SHAREWARE versions

© 1999-2010 EMS Database Management Solutions, Inc.All rights reserved.

IMPORTANT: PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THESOFTWARE.

END USER LICENSE AGREEMENTEMS Database Management Solutions, Inc. ("EMS") agrees to provide the user ("USER")with a copy of this software product ("SOFTWARE"), and grants the USER a limited licenseto use the SOFTWARE. This LICENSE AGREEMENT ("LICENSE") defines what the USER maydo with the SOFTWARE, and contains limitations on warranties, liabilities and remedies.This LICENSE may be revoked by EMS at any time without notice if the USER fails tocomply with the terms of this LICENSE. The copyright and all other rights in theSOFTWARE shall remain with EMS.

LICENSE OF UNREGISTERED SOFTWAREAn unregistered copy of the SOFTWARE ("UNREGISTERED SOFTWARE") may be used bythe USER for evaluation purposes for a period of thirty (30) days following the initialinstallation of the UNREGISTERED SOFTWARE. At the end of the trial period ("TRIALPERIOD"), the USER must either register the SOFTWARE or remove it from his system. TheUNREGISTERED SOFTWARE may be freely copied and distributed to other users for theirevaluation.

LICENSE OF REGISTERED SOFTWAREA registered copy of the SOFTWARE ("REGISTERED SOFTWARE") allows the USER to usethe SOFTWARE only on a single computer or network and only by a single user at a time.If the USER wishes to use the SOFTWARE for more than one user, the USER will need aseparate license for each individual user. The USER is allowed to make one copy of theREGISTERED SOFTWARE for back-up purposes.

DISTRIBUTION OF UNREGISTERED SOFTWAREThe uninstalled, UNREGISTERED SOFTWARE may be freely copied and distributed to otherusers provided the USER complies with the following requirements. If the USER offers thisuninstalled, UNREGISTERED SOFTWARE for download ("SHAREWARE SITE USER"), then theSHAREWARE SITE USER agrees to:(1) Immediately replace this version of the uninstalled, UNREGISTERED SOFTWARE with anew version of this SOFTWARE if a new version is released by EMS, or(2) Delete this version of the UNREGISTERED SOFTWARE immediately upon written emailnotice by EMS.

TERM OF LICENSEThis LICENSE shall continue for as long as the USER uses the REGISTERED SOFTWAREand/or distributes the UNREGISTERED SOFTWARE according to the terms of thisagreement. However, this LICENSE will terminate if the USER fails to comply with any of

13

14

Page 14: Data Export 2010 for MySQL

Data Export 2010 for MySQL14

© 2010 EMS Database Management Solutions, Inc.

its terms or conditions. The USER agrees, upon termination, to destroy all copies of theREGISTERED and/or UNREGISTERED SOFTWARE. The limitations of warranties and liabilityset forth in this LICENSE shall continue in force even after termination.

ACCEPTANCE OF THIS LICENSE AGREEMENTBy downloading and/or installing this SOFTWARE, the USER agrees to the terms of thisLICENSE.

DISCLAIMER OF WARRANTY AND LIABILITYTHE SOFTWARE AND THE ACCOMPANYING FILES ARE PROVIDED "AS IS" WITHOUTWARRANTY OF ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,EMS DISCLAIMS ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITEDTO, ANY IMPLIED WARRANTIES OF PERFORMANCE, MERCHANTABILITY, FITNESS FOR APARTICULAR PURPOSE, AND NONINFRINGEMENT. TO THE MAXIMUM EXTENT PERMITTED BYAPPLICABLE LAW, IN NO EVENT SHALL EMS BE LIABLE FOR ANY DIRECT, INDIRECT,CONSEQUENTIAL OR INCIDENTAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, DAMAGESFOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION OR LOSS OF BUSINESSINFORMATION) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE.

ANY LIABILITY OF EMS WILL BE LIMITED EXCLUSIVELY TO PRODUCT REPLACEMENT ORREFUND OF ORIGINAL PURCHASE PRICE.

OTHER RESTRICTIONSThe USER may not rent, lease, sublicense, translate, disassemble, reverse engineer, orde-compile the SOFTWARE, or modify or merge the SOFTWARE with any part of thesoftware in another program. This LICENSE may not be assigned or otherwise transferredwithout the prior written consent of EMS.

INVALID PROVISIONSIf any provision of this LICENSE shall be declared invalid or unenforceable, the remainingprovisions of this LICENSE shall remain in full force and effect to the fullest extentpermitted by law. In such event, each provision of this LICENSE which is invalid orunenforceable shall be replaced with a provision as similar in terms to such invalid orunenforceable provision as may be possible which is legal and enforceable.

ENTIRE AGREEMENTThis LICENSE is the entire agreement between EMS and the USER, and supersedes anyother agreement, oral or written, and may not be changed except by a written signedagreement.

License Agreement for FREEWARE versions

© 1999-2010 EMS Database Management Solutions, Inc.All rights reserved.

IMPORTANT: PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THESOFTWARE.

END USER LICENSE AGREEMENTEMS Database Management Solutions, Inc. ("EMS") agrees to provide the user ("USER")with a copy of this software product ("SOFTWARE"), and grants the USER a limited licenseto use the SOFTWARE. This LICENSE AGREEMENT ("LICENSE") defines what the USER may

Page 15: Data Export 2010 for MySQL

Data Export 2010 for MySQL15

© 2010 EMS Database Management Solutions, Inc.

do with the SOFTWARE, and contains limitations on warranties, liabilities and remedies.This LICENSE may be revoked by EMS at any time without notice if the USER fails tocomply with the terms of this LICENSE. The copyright and all other rights in theSOFTWARE shall remain with EMS.

LICENSE OF SOFTWAREThis FREEWARE edition of SOFTWARE is free and may be used by the USER for any legalpurposes for an unlimited period on unlimited number of computers without anyrestrictions. The FREEWARE edition of SOFTWARE may have some functional restrictionsand does NOT contain any ADWARE or SPYWARE.

DISTRIBUTION OF SOFTWAREThe FREEWARE edition of SOFTWARE may be freely copied and distributed to other userswithout any restrictions.

TERM OF LICENSEThis LICENSE shall continue for as long as the USER uses the SOFTWARE and/ordistributes the SOFTWARE according to the terms of this agreement. However, thisLICENSE will terminate if the USER fails to comply with any of its terms or conditions. Thelimitations of warranties and liability set forth in this LICENSE shall continue in force evenafter termination.

ACCEPTANCE OF THIS LICENSE AGREEMENTBy downloading and/or installing this SOFTWARE, the USER agrees to the terms of thisLICENSE.

DISCLAIMER OF WARRANTY AND LIABILITYTHE SOFTWARE AND THE ACCOMPANYING FILES ARE PROVIDED "AS IS" WITHOUTWARRANTY OF ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,EMS DISCLAIMS ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITEDTO, ANY IMPLIED WARRANTIES OF PERFORMANCE, MERCHANTABILITY, FITNESS FOR APARTICULAR PURPOSE, AND NONINFRINGEMENT. TO THE MAXIMUM EXTENT PERMITTED BYAPPLICABLE LAW, IN NO EVENT SHALL EMS BE LIABLE FOR ANY DIRECT, INDIRECT,CONSEQUENTIAL OR INCIDENTAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, DAMAGESFOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION OR LOSS OF BUSINESSINFORMATION) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE.

OTHER RESTRICTIONSThe USER may not rent, lease, sublicense, translate, disassemble, reverse engineer, orde-compile the SOFTWARE, or modify or merge the SOFTWARE with any part of thesoftware in another program. This LICENSE may not be assigned or otherwise transferredwithout the prior written consent of EMS.

INVALID PROVISIONSIf any provision of this LICENSE shall be declared invalid or unenforceable, the remainingprovisions of this LICENSE shall remain in full force and effect to the fullest extentpermitted by law. In such event, each provision of this LICENSE which is invalid orunenforceable shall be replaced with a provision as similar in terms to such invalid orunenforceable provision as may be possible which is legal and enforceable.

ENTIRE AGREEMENTThis LICENSE is the entire agreement between EMS and the USER, and supersedes anyother agreement, oral or written, and may not be changed except by a written signed

Page 16: Data Export 2010 for MySQL

Data Export 2010 for MySQL16

© 2010 EMS Database Management Solutions, Inc.

agreement.

Page 17: Data Export 2010 for MySQL

Data Export 2010 for MySQL17

© 2010 EMS Database Management Solutions, Inc.

1.7 Version history

Product name Version Release date

Data Export 2007 for MySQL Version 3.2.0.1 February 25, 2009

Data Export 2007 for MySQL Version 3.1.0.1 May 22, 2008

Data Export 2007 for MySQL Version 3.0.0.1 August 21, 2007

Data Export 2005 for MySQL Version 2.3.0.1 October 30, 2006

Data Export 2005 for MySQL Version 2.2.0.1 May 4, 2006

Data Export 2005 for MySQL Version 2.1.0.1 August 18, 2005

Data Export 2005 for MySQL Version 2.0.0.1 April 20, 2005

MySQL Export Version 1.7.0.1 December 26,2004

MySQL Export Version 1.5.0.1(Linux)

November 3, 2004

MySQL Export Version 1.6.0.1 June 9, 2004

MySQL Export Version 1.5.0.1 January 28, 2004

MySQL Export Version 1.4.0.1 June 26, 2003

MySQL Export Version 1.3.0.1 March 5, 2003

MySQL Export Version 1.0.0.1 September 2, 2002

Full version history is available at http://www.sqlmanager.net/products/mysql/dataexport/news

Version 3.2

When exporting data to SQL Script, BLOB (MEMO, BLOB, CLOB, etc.) data is formattedaccording to the destination server syntaxAdded the possibility to set page orientation when exporting data to MS Word 2007When a template was used for export, tables weren't displayed at Step 5. FixednowSome other improvements and bugfixes

Version 3.1

Added the possibility to select file encoding when exporting to TXT (ANSI, OEM,MAC, UTF8, UTF16, UTF32)Export to SQL script : if the source DBMS is selected as the destination server, thesyntax of the CREATE TABLE statement completely complies with the source DBMSspecificationsExport to SQL script : added the possibility to generate the 'IDENTITY_INSERT' SQLstatement for export to MS SQL scriptNow the 'Destination Directory' value is saved to the template and is restored whenthe template is loadedThe DBF files created by the utility were larger in size than required, as the size of allcreated char fields was set to 254. Fixed nowZero date '0000-00-00' is exported correctly nowOther minor improvements and bug-fixes

17

17

18

18

18

19

19

19

19

20

20

20

21

21

86

94

75

76

76

94

Page 18: Data Export 2010 for MySQL

Data Export 2010 for MySQL18

© 2010 EMS Database Management Solutions, Inc.

Version 3.0

Basic features:Export to new formats is available now: MS Excel 2007 , MS Word 2007 , OpenDocument Format (Open Document Text and Open Document Spreadsheet ),Generic XML with XSD schemaUnicode support. Now you are able to export Unicode dataNow you can use parameters in data export queries. The parameters are promptedin interactive mode in the wizard. In the Console version query parameters can beset in the command line or prompted in interactive modeThe source code of the utility has been significantly optimized, running speedincreasedThe Wizard window is now resizableAn error used to occur when exporting tables containing VARCHAR fields with thelength of more than 255 symbols to MS Access. Fixed nowother minor improvements and bug-fixes

Scroll to top

Version 2.3

The amount of memory consumed is significantly decreased when exporting large filesNow the databases are sorted in listsWhen truncating source field names the fields with identical names could appear inDBF file. Fixed nowSome minor improvements and bug-fixes

Scroll to top

Version 2.2

Added the opportunity to connect through SSH tunnelAdded the opportunity to connect through HTTP tunnelThe "Interpret HTML Tags" option is added to allow replacement of all special symbols.The symbols <, >, ", & found in exported data (text) will be replaced with &lt; &gt;&quot; &amp; correspondinglyAdded the ability to set the template file in the command-line for the GUIversion; now the list of databases can be sortedSeveral improvements in the GUI interfaceFixed a problem with extra delimiter symbols at the end of the header lines whenexporting to CSV formatFixed a problem with extra delimiter symbols at the end of the record lines whenexporting to ClipboardFixed a bug concerned with incorrect loading of SQL queries from template filesFixed a bug that did not allow one to set the sheet height, scope and width whenexporting to PDF formatFixed a bug that did not allow one to save the Width and Align property values to the template file when exporting to PDF formatFixed a bug that caused the following: when exporting memo type fields to MSAccess, the data length after export always equaled the field length by adding

124 82 86

86 82

128

116

32

17

17

119

120

116 32

74

94

Page 19: Data Export 2010 for MySQL

Data Export 2010 for MySQL19

© 2010 EMS Database Management Solutions, Inc.

subsequent spaces, even though the actual data length was shorter. Due to this thedata from such fields could not be editedFixed the bug that caused the EOleSysError which often emerged during export to MSAccess when creating a new database file (*.mdb)

Scroll to top

Version 2.1

Fixed the bug with filling "Selected Tables" list after loading template filesThe bug with changing the width of fields during the export into PDF format hasbeen fixedNow the utility exports long text data into MS Access Database correctlyAdded a possibility to export data into MS Access Databases secured with a password"Allow Captions" checkbox has been moved from panel "Captions" to the uppercommon panelDecreased processor loading while executing long export operationsAdded Portuguese language support

Scroll to top

Version 2.0

Basic features:New user-friendly wizard interfaceSix languages available: English, French, German, Italian, Russian and SpanishExporting to 15 most popular formats : MS Excel , MS Access , MS Word ,RTF , HTML , PDF , XML , TXT , DBF, CSV , SYLK, DIF, LaTeX, SQLand ClipboardExporting data from several objects from different databases on one hostExporting data from tables , views and queriesSelecting fields to export and changing their orderAdjustable parameters for each exported table and specific parameters for exportto MS Excel, MS Word / RTF, MS Access, HTML, TXT, CSV, PDF, XML and SQLPossibility of saving all the export parameters specified within the current wizardsessionCommand-line utility to export data using the configuration filePowerful visual options moduleWindows and Linux versions available

and more...Scroll to top

Version 1.7

The problem related to the "Export Only" option has been solved. Now you can exportany required quantity of recordsWe have fixed the bug with exporting NULL values into DBF files and SQL scriptsThe bug with filling "Selected Tables" list on the second step of wizard is fixedSolved problems related with memory leaksSome minor visual improvements and bug-fixes

Scroll to top

Version 1.5 (Linux)

We have improved the compatibility with different Linux versions. Now the program is

17

94

72

101

17

32

101

124 47 61 63

63 67 72 78 74 74 76

37 37 38

41

42

116 94

103

17

17

Page 20: Data Export 2010 for MySQL

Data Export 2010 for MySQL20

© 2010 EMS Database Management Solutions, Inc.

supposed to work correctly since the Red Hat 7.0 version up to the latest LinuxdistributionsWe have added the possibility to enter a unix-socket instead of the port number like "/tmp/mysql.sock", "/var/lib/pgsql/.s.PGSQL.5435", i.e. to connect to the local serverwith disabled TCP/IPWe have implemented an installer. The program is distributed as a sh-script nowinstead of archivesSeveral bug-fixes in design: displaced fonts, wrong control sizes, invisible combo boxcaptions, etc.Closing the help file often caused the program hang-up. Fixed nowThe majority of open/save dialogs did not show files due to the incorrect filters. Theproblem is solvedThe registration of the program is performed via the "License.key" nowAfter pressing the "Cancel" button on the progress form you could not export anythinguntil the program was restarted. Now it is fixedClosing the progress form not via the "Cancel" button caused the program hang-up.The problem is solvedFixed the bug with returning the "Access violation" error after quick repeated pressingthe button "Next"After selecting "Select all" the program turned to export data of another type thanthat defined by the user. Fixed now

Scroll to top

Version 1.6

Implemented the major integration ability between our the Query and Data Exportproducts. Now you can export query results from any Database Query utility using thefunctionality of our Data Export utilities. All you need is to install version 1.6 of thecorresponding Data Export utility (i.e. you need to install MySQL Export 1.6 to exportquery results from MySQL Query 1.6). The Export Data button will appear on the maintoolbar of the Database Query utilityNow the Data Export utility displays description of all query errors when checkingquery correctnessWith this version the Data Export utility requires a confirmation when you try to abortthe export process. This feature can help you to avoid casual aborts of the exportprocessFixed a bug that caused an error when rolling back changes in a querySome small improvements and bug-fixes

Scroll to top

Version 1.5

Now you can add notes and hyperlinks to the Excel documents you createImplemented an ability to make your data reports more attractive by adding chartsbased on exported data to the Excel documents you createImplemented styles on export to Word/RTF . Now you can assign different styles tothe document header, footer, caption, and data areasNow you can use strip styles for data columns and rows on export to Word and RTFNow console applications report about the export processSome small improvements and bug-fixes

Scroll to top

Version 1.4

17

17

47

63

17

Page 21: Data Export 2010 for MySQL

Data Export 2010 for MySQL21

© 2010 EMS Database Management Solutions, Inc.

Implemented exporting queries in the wizard application . Now you can set a numberof queries for different databases and export their results as well as tablesAdded saving/loading configuration files for the whole wizard application. Thesefiles contain information about the connection properties, selected tables and queries,and all the export options. You can also use these files for working with the consoleapplication . Now you don't have to specify all the console parameters manually -you can make all the settings through the wizard, save the configuration, and get theconsole configuration file ready for useNow you can use the console application for exporting tables and query resultsfrom different databases. The new [Databases] section appeared in the console configuration file , where you can specify a separate database for each table orquery. Note that the format of the [Queries] section in the console configuration filehas also changedNow you can export empty tables or queries through the wizard application . Usethe Preferences -> Export Empty option for this purpose.We have implemented the interface localization (Windows version only). You cancreate your own localization files similar to 'English.lng' located in the Languages folderinside the program directoryWe have made considerable interface improvements for the wizard application(Windows version only)We have redesigned our help files - now it is much more convenient to use them(Linux version only)A bug with exporting strings with spaces to Access is fixedSeveral minor improvements and small bug-fixes

Scroll to top

Version 1.3

Export to PDF is implemented. Now you can export data from MySQL tables to oneof the most popular document formatsMulti-file export to HTML is greatly improved. Now you can customize navigationbetween the result HTML documentsPossibility of defining a CSV quote is addedExport to HTML : now you can define a background picture for tablesA lot of small improvements and minor bug-fixes

Scroll to topVersion 1.0

Basic features:Export to 12 most popular formats : MS Excel , MS Word (RTF ), HTML ,XML , TXT , DBF, CSV , SYLK, DIF, LaTeX, SQL and ClipboardAll MySQL data types supportedExport from tables selected from different databases on one hostAdjustable parameters for each exported table, including: type and name of theresult file, fields for export, data formats for all exported fields or for certain fieldsonly, header and footer of the result file, column captions, width and alignment, andspecific parameters for export to MS Excel, MS Word (RTF), HTML, XML, TXT, CSVand SQLPossibility of saving/restoring export parameters to/from a template fileCommand-line utility to export data using the configuration file, which containsconnection options, tables and queries, and template files with all the export options

and more...

32

94

116

116

126

32

96

101

61

17

72

67

74

67

17

124 47 63 63 67

78 74 74 76

37

42

94

116

Page 22: Data Export 2010 for MySQL

Data Export 2010 for MySQL22

© 2010 EMS Database Management Solutions, Inc.

Scroll to top

See also:

What's new

17

7

Page 23: Data Export 2010 for MySQL

Data Export 2010 for MySQL23

© 2010 EMS Database Management Solutions, Inc.

1.8 EMS Data Export FAQ

Please read this page attentively if you have questions about Data Export 2010 forMySQL.

Table of contents

What is EMS Data Export for MySQL?What do I need to start working with EMS Data Export for MySQL?What is the difference between the Export feature of SQL Manager for MySQL and theData Export for MySQL standalone utility?Are there any limitations implied in the trial version as compared with the full one?What is the easiest way to configure the template files for the Data Export consoleapplication?

Question/answer list

Q: What is EMS Data Export for MySQL?A: EMS Data Export for MySQL is a powerful program to export your data quickly from

MySQL databases to any of 19 available formats, including MS Access, MS Excel, MSWord (RTF), HTML, XML, PDF, TXT, CSV, DBF and others. Data Export for MySQLincludes a wizard which allows you to set export options for each table visually(destination file name, exported fields, data formats, and much more) and a command-line utility to export data from tables and queries in one-touch.

Q: What do I need to start working with EMS Data Export for MySQL?A: First of all, you must have a possibility to connect to some local or remote MySQL

server to work withData Export. You can download MySQL database server fromhttp://www.mysql.org/downloads/. Besides, you need your workstation to satisfy thesystem requirements for Data Export 2010 for MySQL.

Q: What is the difference between the Export feature of SQL Manager for MySQL and theData Export for MySQL standalone utility?

A: First of all, Data Export 2010 for MySQL works faster as it is a considerably lighterapplication. Besides, it provides additional features for query building, namely: export data from/to several tables simultaneously;export data from tables and queries selected from different databases;the command-line version of the utility to export data using the configuration (template ) file with all export settings.

Q: Are there any limitations implied in the trial version as compared with the full one?A: Actually the trial version of the utility only allows you to export 20% of records at a

time. In spite of this limitation, you can test all the features implemented in DataExport 2010 for MySQL within the 30-day trial period.

Q: What is the easiest way to configure the template files for the Data Export console

23

23

23

23

23

32

116

8

37 38

94

94

Page 24: Data Export 2010 for MySQL

Data Export 2010 for MySQL24

© 2010 EMS Database Management Solutions, Inc.

application?A: You can configure the template files for each table visually using the Data Export

Wizard application . Set the required export options and select the Tools | SaveTemplate menu item on Step 8 or Step 9 of the wizard. All the options will besaved to the template file which can be used by the console application .

Scroll to top

If you still have any questions, contact us at Support Center.

32

91 93

116

23

Page 25: Data Export 2010 for MySQL

Data Export 2010 for MySQL25

© 2010 EMS Database Management Solutions, Inc.

1.9 Other EMS Products

Quick navigation

MySQL Microsoft SQL PostgreSQL InterBase /FireBird

Oracle IBM DB2 DBISAM Tools &components

MySQL

SQL Management Studio for MySQLEMS SQL Management Studio for MySQL is a complete solution for database administration anddevelopment. SQL Studio unites the must-have tools in one powerful and easy-to-useenvironment that will make you more productive than ever before!

SQL Manager for MySQLSimplify and automate your database development process, design, explore and maintainexisting databases, build compound SQL query statements, manage database user rights andmanipulate data in different ways.

Data Export for MySQLExport your data to any of 15 most popular data formats, including MS Access, MS Excel, MSWord, PDF, HTML and more.

Data Import for MySQLImport your data from MS Access, MS Excel and other popular formats to database tables viauser-friendly wizard interface.

Data Pump for MySQLMigrate from most popular databases (MySQL, PostgreSQL, Oracle, DB2, InterBase/Firebird,etc.) to MySQL.

Data Generator for MySQLGenerate test data for database testing purposes in a simple and direct way. Wide range of datageneration parameters.

DB Comparer for MySQLCompare and synchronize the structure of your databases. Move changes on your developmentdatabase to production with ease.

DB Extract for MySQLCreate database backups in the form of SQL scripts, save your database structure and tabledata as a whole or partially.

SQL Query for MySQLAnalyze and retrieve your data, build your queries visually, work with query plans, build chartsbased on retrieved data quickly and more.

Data Comparer for MySQLCompare and synchronize the contents of your databases. Automate your data migrations fromdevelopment to production database.

Scroll to top

25

26 26 27

28

29 30

30

25

Page 26: Data Export 2010 for MySQL

Data Export 2010 for MySQL26

© 2010 EMS Database Management Solutions, Inc.

Microsoft SQL

SQL Management Studio for SQL ServerEMS SQL Management Studio for SQL Server is a complete solution for database administrationand development. SQL Studio unites the must-have tools in one powerful and easy-to-useenvironment that will make you more productive than ever before!

SQL Manager for SQL ServerSimplify and automate your database development process, design, explore and maintainexisting databases, build compound SQL query statements, manage database user rights andmanipulate data in different ways.

Data Export for SQL ServerExport your data to any of 15 most popular data formats, including MS Access, MS Excel, MSWord, PDF, HTML and more

Data Import for SQL ServerImport your data from MS Access, MS Excel and other popular formats to database tables viauser-friendly wizard interface.

Data Pump for SQL ServerMigrate from most popular databases (MySQL, PostgreSQL, Oracle, DB2, InterBase/Firebird,etc.) to Microsoft® SQL Server™.

Data Generator for SQL ServerGenerate test data for database testing purposes in a simple and direct way. Wide range ofdata generation parameters.

DB Comparer for SQL ServerCompare and synchronize the structure of your databases. Move changes on your developmentdatabase to production with ease.

DB Extract for SQL ServerCreate database backups in the form of SQL scripts, save your database structure and tabledata as a whole or partially.

SQL Query for SQL ServerAnalyze and retrieve your data, build your queries visually, work with query plans, build chartsbased on retrieved data quickly and more.

Data Comparer for SQL ServerCompare and synchronize the contents of your databases. Automate your data migrations fromdevelopment to production database.

Scroll to top

PostgreSQL

SQL Management Studio for PostgreSQLEMS SQL Management Studio for PostgreSQL is a complete solution for database administrationand development. SQL Studio unites the must-have tools in one powerful and easy-to-useenvironment that will make you more productive than ever before!

SQL Manager for PostgreSQLSimplify and automate your database development process, design, explore and maintain

25

Page 27: Data Export 2010 for MySQL

Data Export 2010 for MySQL27

© 2010 EMS Database Management Solutions, Inc.

existing databases, build compound SQL query statements, manage database user rights andmanipulate data in different ways.

Data Export for PostgreSQLExport your data to any of 15 most popular data formats, including MS Access, MS Excel, MSWord, PDF, HTML and more

Data Import for PostgreSQLImport your data from MS Access, MS Excel and other popular formats to database tables viauser-friendly wizard interface.

Data Pump for PostgreSQLMigrate from most popular databases (MySQL, SQL Server, Oracle, DB2, InterBase/Firebird,etc.) to PostgreSQL.

Data Generator for PostgreSQLGenerate test data for database testing purposes in a simple and direct way. Wide range ofdata generation parameters.

DB Comparer for PostgreSQLCompare and synchronize the structure of your databases. Move changes on your developmentdatabase to production with ease.

DB Extract for PostgreSQLCreate database backups in the form of SQL scripts, save your database structure and tabledata as a whole or partially.

SQL Query for PostgreSQLAnalyze and retrieve your data, build your queries visually, work with query plans, build chartsbased on retrieved data quickly and more.

Data Comparer for PostgreSQLCompare and synchronize the contents of your databases. Automate your data migrations fromdevelopment to production database.

Scroll to top

InterBase / Firebird

SQL Management Studio for InterBase/FirebirdEMS SQL Management Studio for InterBase and Firebird is a complete solution for databaseadministration and development. SQL Studio unites the must-have tools in one powerful andeasy-to-use environment that will make you more productive than ever before!

SQL Manager for InterBase/FirebirdSimplify and automate your database development process, design, explore and maintainexisting databases, build compound SQL query statements, manage database user rights andmanipulate data in different ways.

Data Export for InterBase/FirebirdExport your data to any of 15 most popular data formats, including MS Access, MS Excel, MSWord, PDF, HTML and more

Data Import for InterBase/FirebirdImport your data from MS Access, MS Excel and other popular formats to database tables viauser-friendly wizard interface.

25

Page 28: Data Export 2010 for MySQL

Data Export 2010 for MySQL28

© 2010 EMS Database Management Solutions, Inc.

Data Pump for InterBase/FirebirdMigrate from most popular databases (MySQL, SQL Server, Oracle, DB2, PostgreSQL, etc.) toInterBase/Firebird.

Data Generator for InterBase/FirebirdGenerate test data for database testing purposes in a simple and direct way. Wide range ofdata generation parameters.

DB Comparer for InterBase/FirebirdCompare and synchronize the structure of your databases. Move changes on your developmentdatabase to production with ease.

DB Extract for InterBase/FirebirdCreate database backups in the form of SQL scripts, save your database structure and tabledata as a whole or partially.

SQL Query for InterBase/FirebirdAnalyze and retrieve your data, build your queries visually, work with query plans, build chartsbased on retrieved data quickly and more.

Data Comparer for InterBase/FirebirdCompare and synchronize the contents of your databases. Automate your data migrations fromdevelopment to production database.

Scroll to top

Oracle

SQL Management Studio for OracleEMS SQL Management Studio for Oracle is a complete solution for database administration anddevelopment. SQL Studio unites the must-have tools in one powerful and easy-to-useenvironment that will make you more productive than ever before!

SQL Manager for OracleSimplify and automate your database development process, design, explore and maintainexisting databases, build compound SQL query statements, manage database user rights andmanipulate data in different ways.

Data Export for OracleExport your data to any of 15 most popular data formats, including MS Access, MS Excel, MSWord, PDF, HTML and more.

Data Import for OracleImport your data from MS Access, MS Excel and other popular formats to database tables viauser-friendly wizard interface.

Data Pump for OracleMigrate from most popular databases (MySQL, PostgreSQL, MySQL, DB2, InterBase/Firebird,etc.) to Oracle

Data Generator for OracleGenerate test data for database testing purposes in a simple and direct way. Wide range of datageneration parameters.

DB Comparer for OracleCompare and synchronize the structure of your databases. Move changes on your developmentdatabase to production with ease.

25

Page 29: Data Export 2010 for MySQL

Data Export 2010 for MySQL29

© 2010 EMS Database Management Solutions, Inc.

DB Extract for OracleCreate database backups in the form of SQL scripts, save your database structure and tabledata as a whole or partially.

SQL Query for OracleAnalyze and retrieve your data, build your queries visually, work with query plans, build chartsbased on retrieved data quickly and more.

Data Comparer for OracleCompare and synchronize the contents of your databases. Automate your data migrations fromdevelopment to production database.

Scroll to top

DB2

SQL Management Studio for DB2EMS SQL Management Studio for DB2 is a complete solution for database administration anddevelopment. SQL Studio unites the must-have tools in one powerful and easy-to-useenvironment that will make you more productive than ever before!

SQL Manager for DB2Simplify and automate your database development process, design, explore and maintainexisting databases, build compound SQL query statements, manage database user rights andmanipulate data in different ways.

Data Export for DB2Export your data to any of 15 most popular data formats, including MS Access, MS Excel, MSWord, PDF, HTML and more.

Data Import for DB2Import your data from MS Access, MS Excel and other popular formats to database tables viauser-friendly wizard interface.

Data Pump for DB2Migrate from most popular databases (MySQL, PostgreSQL, Oracle, MySQL, InterBase/Firebird,etc.) to DB2

Data Generator for DB2Generate test data for database testing purposes in a simple and direct way. Wide range of datageneration parameters.

DB Comparer for DB2Compare and synchronize the structure of your databases. Move changes on your developmentdatabase to production with ease.

DB Extract for DB2Create database backups in the form of SQL scripts, save your database structure and tabledata as a whole or partially.

SQL Query for DB2Analyze and retrieve your data, build your queries visually, work with query plans, build chartsbased on retrieved data quickly and more.

Data Comparer for DB2Compare and synchronize the contents of your databases. Automate your data migrations from

25

Page 30: Data Export 2010 for MySQL

Data Export 2010 for MySQL30

© 2010 EMS Database Management Solutions, Inc.

development to production database.

Scroll to top

DBISAM

SQL Manager for DBISAMSimplify and automate your database development process, design, explore and maintainexisting databases, build compound SQL query statements, manage database user rights andmanipulate data in different ways.

Scroll to top

Tools & components

Advanced Data ExportAdvanced Data Export Component Suite (for Borland Delphi and .NET) will allow you to saveyour data in the most popular office programs formats.

Advanced Data ImportAdvanced Data Import™ Component Suite for Delphi® and C++ Builder® will allow you toimport your data to the database from files in the most popular data formats.

Advanced PDF GeneratorAdvanced PDF Generator for Delphi gives you an opportunity to create PDF documents withyour applications written on Delphi® or C++ Builder®.

Advanced Query BuilderAdvanced Query Builder is a powerful component suite for Borland® Delphi® and C++Builder® intended for visual building SQL statements for the SELECT, INSERT, UPDATE andDELETE clauses.

Advanced Excel ReportAdvanced Excel Report for Delphi is a powerful band-oriented generator of template-basedreports in MS Excel.

Advanced LocalizerAdvanced Localizer™ is an indispensable component suite for Delphi® for adding multilingualsupport to your applications.

Source RescuerEMS Source Rescuer™ is an easy-to-use wizard application for Borland Delphi® and C++Builder® which can help you to restore your lost source code.

Scroll to top

25

25

25

Page 31: Data Export 2010 for MySQL

Part

II

Page 32: Data Export 2010 for MySQL

Data Export 2010 for MySQL32

© 2010 EMS Database Management Solutions, Inc.

2 Wizard application

Data Export 2010 for MySQL wizard application provides easy-to-use wizard interface toset all data export parameters visually.

Working with wizard applicationUsing configuration filesSetting program preferences

See also:

Console application

33

94

96

116

Page 33: Data Export 2010 for MySQL

Data Export 2010 for MySQL33

© 2010 EMS Database Management Solutions, Inc.

2.1 Working with wizard application

Follow the steps of the wizard to export data from MySQL tables for your needs.

Getting startedStep 1 - Setting connection propertiesStep 2 - Selecting databases and tablesStep 3 - Specifying queriesStep 4 - Selecting export data formatStep 5 - Selecting fields to exportStep 6 - Setting export optionsStep 7 - Setting base data formatsStep 8 - Setting common optionsStep 9 - Start of data export process

See also:

Working with console application

34

35

37

38

40

41

42

90

91

93

117

Page 34: Data Export 2010 for MySQL

Data Export 2010 for MySQL34

© 2010 EMS Database Management Solutions, Inc.

2.1.1 Getting started

This is how Data Export 2010 for MySQL wizard application looks when you start it.

This page allows you to view registration information. If you have not registered DataExport 2010 for MySQL yet, you can do it by pressing the Enter Registration Code...button and entering your registration information.If the registration is correct, message with maintenance period ending date will appear.

Press the Next button to proceed to the next page .

See also:

How to buy Data Export

12

35

10

Page 35: Data Export 2010 for MySQL

Data Export 2010 for MySQL35

© 2010 EMS Database Management Solutions, Inc.

2.1.2 Step 1 - Setting connection options

At this step you should specify necessary settings to establish connection to the sourceMySQL database.

Connection settings

First select the connection type: local or remote. Local connection is used to connect to MySQL server launched on the same machinewhere Data Export 2010 for MySQL is running.The Remote mode allows you to connect to MySQL server launched on another computerin the network.

By default the program uses local connection. It is indicated by switch Local selected. Ifyou wish to establish remote connection, you should select the Remote switch. Forremote connection you should also enter MySQL host name in the Host field. The Hostdrop-down list contains the list of already registered hosts. For both types you shouldenter MySQL port to connect through in the Connection port field.

Afterwards you should specify authorization settings: Login and Password.The default superuser name is 'root' and the default password is empty.

If necessary, use the drop-down list to specify the preferable Client charset to be usedby the application.

Page 36: Data Export 2010 for MySQL

Data Export 2010 for MySQL36

© 2010 EMS Database Management Solutions, Inc.

Tunneling settings

To setup the connection via SSH tunnel, input the following values in the correspondingfields:

SSH host name is the name of the host where SSH server is runningSSH port indicates the port where SSH server is activatedSSH user name stands for the user on the machine where SSH server is running(Note: it is a Linux/Windows user, not a user of MySQL server)SSH password is the Linux/Windows user password

For details see SSH tunneling options .

To use HTTP tunneling, just upload the tunneling script to the webserver where MySQLserver is located, or to any other webserver from which direct connections to your MySQLserver are allowed. This script exposes the MySQL API as a set of web-services which isused by Data Export 2010 for MySQL.

Note that the emsproxy.php script file is included into the distribution package and canbe found in Data Export installation directory.

For details see HTTP tunneling options .

When you are done, press the Next button to proceed to the next step .

119

120

37

Page 37: Data Export 2010 for MySQL

Data Export 2010 for MySQL37

© 2010 EMS Database Management Solutions, Inc.

2.1.3 Step 2 - Selecting tables

This step of the wizard allows you to select tables of the specified database to beexported.

First you should select a database from the Select Database drop-down list at the topof the window.To select a table, you need to move it from the Available Tables list to the Selected

Tables list. Use the buttons or drag-and-drop operations to movethe tables from one list to another.l

You need to Select Destination Directory, where the exported file(s) will be stored.

Hint: To select multiple tables, hold down the Shift or Ctrl key while selecting the tablenames.

Note: You can repeat the steps above with other databases to export data from multipledatabases simultaneously.

When you are done, press the Next button to proceed to the next step .38

Page 38: Data Export 2010 for MySQL

Data Export 2010 for MySQL38

© 2010 EMS Database Management Solutions, Inc.

2.1.4 Step 3 - Specifying queries

This step allows you to add queries the results of which will be exported.

First you should select a database from the Select Database drop-down list at the topof the window.

To add a query, use the Add Query button, or right-click within the Queries listand select the Add Query context menu item. You can enter SQL text for each querydirectly using the Query Text editor area or load an existing query from an external *.sqlfile by pressing the Load Query button. While inputting query text, it is also possible tosave your queries by clicking the Save Query button or clear the content of the editorby clicking the Clear Query button.

To rename a query, right-click it in the Queries list and select the Rename Querycontext menu item.

To delete a query, select it in the Queries list and press the Remove Query button, or right-click the query and select the Remove Query context menu item.

To delete all queries (i.e. empty the Queries list), click the Clear All button, orright-click within the Queries list and select the Remove All Queries context menu item.

NOTE: If none of the tables was selected at the previous step, the Next button will be

Page 39: Data Export 2010 for MySQL

Data Export 2010 for MySQL39

© 2010 EMS Database Management Solutions, Inc.

enabled only when the query is added.

When you are done, press the Next button to proceed to the next step .40

Page 40: Data Export 2010 for MySQL

Data Export 2010 for MySQL40

© 2010 EMS Database Management Solutions, Inc.

2.1.5 Step 4 - Selecting export data format

At this step you should select the destination format for exporting data.

Select a table or query in the Exported Objects list and set the appropriate optionto select one of available output data formats: MS Excel, MS Access, MS Word, RTF,HTML, PDF, TXT, CSV, DIF, SYLK, LaTeX, XML, DBF, SQL, Clipboard, ODS, ODT, MS Excel2007, MS Word 2007. For details refer to Supported file formats .

Hint: If more convenient, you can check the Apply to all exported objects box toset the specified destination format for all exported objects.

When you are done, press the Next button to proceed to the next step .

37 38

124

41

Page 41: Data Export 2010 for MySQL

Data Export 2010 for MySQL41

© 2010 EMS Database Management Solutions, Inc.

2.1.6 Step 5 - Selecting fields to export

At this step you can select fields to export and reorder them, if necessary.

By default all table fields are exported. Look through the list of exported objects andmark/unmark the fields that should be / should not be exported: type in True or 1 (Falseor 0 (zero)) in the Is Exported column.

You may also click the Check all link below to export all fields of the table, or theUncheck all label to exclude all fields of the table from export. You can also change the

order of exported fields by selecting them and clicking the Move Up and Move

Down buttons.

Hint: If more convenient, you can check the Export all fields of all tables box toselect all fields of all specified tables and queries for export.

When you are done, press the Next button to proceed to the next step .42

Page 42: Data Export 2010 for MySQL

Data Export 2010 for MySQL42

© 2010 EMS Database Management Solutions, Inc.

2.1.7 Step 6 - Setting export options

At this step you should set specific options according to selected output file format at Step 4 .

Header & Footer OptionsCaption OptionsSetting format-specific options

Hint: If more convenient, you can check the Apply to all exported objects box toset the specified format for all exported objects.

When you are done, press the Next button to proceed to the next step .

40

43

45

46

90

Page 43: Data Export 2010 for MySQL

Data Export 2010 for MySQL43

© 2010 EMS Database Management Solutions, Inc.

2.1.7.1 Header & Footer options

The Header & Footer tab allows you to customize the header and footer areas of theresult file.

Set Header text and Footer text for the result file. This text will appear at thebeginning and at the end of the result file respectively.

Allow captionsIf this option is checked (default), the column captions are included into the result file.

Add query textWhen exporting from a query, its text can be added to header or footer. Use the AddQuery Text item to add current query text. If the Add Query Template item is usedthen query text will be collected after the Export button is pressed at the last step.

Hint: If more convenient, you can check the Apply to all exported objects box toset the specified captions for all exported objects.

See also:

93

Page 44: Data Export 2010 for MySQL

Data Export 2010 for MySQL44

© 2010 EMS Database Management Solutions, Inc.

Caption, width and align options

Setting format-specific options

45

46

Page 45: Data Export 2010 for MySQL

Data Export 2010 for MySQL45

© 2010 EMS Database Management Solutions, Inc.

2.1.7.2 Caption, width and align options

This tab allows you to customize fields of the result file: specify column captions, widthand/or align.

Allow captionsIf this option is checked (default), the column captions are included into the result file.

Use the grid to set the captions of the result table columns. Default column captionscorrespond to the database field names.For some of the export types columns Width and/or Align are also available. In the Aligncolumn you can select the text alignment for a certain column (Left, Right or Center). Inthe Width column you can set a numeric value defining the width of the result column.

Hint: If more convenient, you can check the Apply to all exported objects box toset the specified captions for all exported objects.

See also:

Header & Footer options

Setting format-specific options

43

46

Page 46: Data Export 2010 for MySQL

Data Export 2010 for MySQL46

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3 Setting format-specific options

This tab allows you to customize format-specific options:Excel OptionsAccess OptionsWord / RTF OptionsHTML OptionsPDF OptionsASCII Options (for TXT and CSV formats)SQL OptionsXML OptionsDBF optionsExcel 2007/ODS optionsWord 2007/ODT options

To get more information about the file formats, see the Supported file formats page.

See also:

Header & Footer options

Caption, width and align options

47

61

63

67

72

74

76

78

80

82

86

124

43

45

Page 47: Data Export 2010 for MySQL

Data Export 2010 for MySQL47

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.1 Excel options

This tab allows you to set options for the target MS Excel (*.xls) file.

You can customize Data format, Extensions and set Advanced options available withinthe corresponding sub-tabs:

Data formatExtensionsAdvanced

Note: For your convenience the previews illustrating the changes are displayed in theSample Cell area.

Hint: You can reset the changes any time using the Reset Item and the Reset Allbuttons.

See also:

Access options

Word / RTF options

HTML options

PDF options

ASCII options

48

54

59

61

63

67

72

74

Page 48: Data Export 2010 for MySQL

Data Export 2010 for MySQL48

© 2010 EMS Database Management Solutions, Inc.

SQL options

XML options

DBF options

Excel 2007/ODS options

Word 2007/ODT options

2.1.7.3.1.1 Data format

The Data Format tab contains general options which allow you to adjust the format foreach kind of Excel cells. This means that you can specify such parameters as font,borders, filling color and method, etc. for each entity (such as data field, header, footer,caption, data, hyperlink and so on) separately. Also it is possible to create styles to makethe target Excel file striped by columns or rows.

FieldsOptionsStyles

Note: For your convenience the previews illustrating the changes are displayed in theSample Cell area on each sub-tab of the Data Format tab.

Using the Fields tab you can set font options, border and fill options and select andaggregate functions for all the fields you want to export.

Hint: You can reset the changes any time using the Reset Item and the Reset Allbuttons.

76

78

80

82

86

48

50

52

Page 49: Data Export 2010 for MySQL

Data Export 2010 for MySQL49

© 2010 EMS Database Management Solutions, Inc.

The Font tab allows you to specify properties of the font that will be used in the outputExcel file cells.

Use the Font and Size drop-down lists to select the font and size to be applied to theoutput text.Use the buttons below to set font color, make text bold, italicized, strikethrough text,set underline effects, specify text horizontal and vertical align.

The Borders tab allows you to specify properties of the borders of the output Excel filecells.

Press the buttons on the left to show/hide the borders they indicate.

Use the drop-down list for each border to select the line type and the button on theright to select the line color for each border.

The Fill tab allows you to specify the fill pattern for the output Excel file cells.

Use the drop-down list to select the preferable fill pattern type.

Press the button on the left to set the background color for the fill pattern.

Press the button on the right to set the foreground color for the fill pattern.

Page 50: Data Export 2010 for MySQL

Data Export 2010 for MySQL50

© 2010 EMS Database Management Solutions, Inc.

At the Sample Cell section you can preview options changes.

Using the Options tab you can set font options, border and fill options for all elementsof the Excel sheet (header, caption, footer, aggregates and hyperlinks).

Hint: You can reset the changes any time using the Reset Item and the Reset Allbuttons.

The Font tab allows you to specify properties of the font that will be used in the outputExcel file cells.

Use the Font and Size drop-down lists to select the font and size to be applied to theoutput text.Use the buttons below to set font color, make text bold, italicized, strikethrough text,set underline effects, specify text horizontal and vertical align.

Page 51: Data Export 2010 for MySQL

Data Export 2010 for MySQL51

© 2010 EMS Database Management Solutions, Inc.

The Borders tab allows you to specify properties of the borders of the output Excel filecells.

Press the buttons on the left to show/hide the borders they indicate.

Use the drop-down list for each border to select the line type and the button on theright to select the line color for each border.

The Fill tab allows you to specify the fill pattern type and its color for the output Excelfile cells.

Use the drop-down list to select the preferable fill pattern type.

Press the button on the left to set the background color for the fill pattern.

Press the button on the right to set the foreground color for the fill pattern.

At the Sample Cell section you can preview options changes.

Page 52: Data Export 2010 for MySQL

Data Export 2010 for MySQL52

© 2010 EMS Database Management Solutions, Inc.

Using the Styles tab you can make a style template: set font options, border and filloptions and save them.

Use buttons to add/remove a style.

Use buttons to reorder the style's list.You can also save styles and load saved ones.

If you have created or loaded more than one style template, they can be ignored, orused column-by-column or row-by-row (it depends on the Strip style selection).

Hint: You can reset the changes any time using the Reset Item and the Reset Allbuttons.

The Font tab allows you to specify properties of the font that will be used in the outputExcel file cells.

Use the Font and Size drop-down lists to select the font and size to be applied to theoutput text.Use the buttons below to set font color, make text bold, italicized, strikethrough text,set underline effects, specify text horizontal and vertical align.

Page 53: Data Export 2010 for MySQL

Data Export 2010 for MySQL53

© 2010 EMS Database Management Solutions, Inc.

The Borders tab allows you to specify properties of the borders of the output Excel filecells.

Press the buttons on the left to show/hide the borders they indicate.

Use the drop-down list for each border to select the line type and the button on theright to select the line color for each border.

The Fill tab allows you to specify the fill pattern for the output Excel file cells.

Use the drop-down list to select the preferable fill pattern type.

Press the button on the left to set the background color for the fill pattern.

Press the button on the right to set the foreground color for the fill pattern.

At the Sample Cell section you can preview options changes.

Page 54: Data Export 2010 for MySQL

Data Export 2010 for MySQL54

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.1.2 Extensions

The Extensions tab provides an ability to add hyperlinks and notes and to any cell oftarget file, to specify a value of a cell and to create a chart.

Click the Plus button to add an element;

click the Minus button to delete an element.

HyperlinksNotesCharts

If you need to create a hyperlink:set the cell coordinates (Col and Row);specify whether this is a local link or URL;enter the title of the hyperlink;specify the target file location or address.

Note: Hyperlink title replaces the specified cell's data.

Notes are used to keep remarks or comments for a cell. Note's data are stored separatelyfrom ones of the cell. They are displayed as a triangle in the cell's upper right corner.Note appears as a hint when you point at the cell containing a note with a mouse.

If you need to create a note:set the cell coordinates (Col and Row);enter text of a note for the cell;set the font and fill properties using the corresponding tabs.

54

54

56

Page 55: Data Export 2010 for MySQL

Data Export 2010 for MySQL55

© 2010 EMS Database Management Solutions, Inc.

The Font tab allows you to specify properties of the font that will be used in the outputExcel file notes.

Use the Font and Size drop-down lists to select the font and size to be applied to theoutput text.Use the buttons below to set font color, make text bold, italicized, strikethrough text,set underline effects, specify text horizontal and vertical align.

Page 56: Data Export 2010 for MySQL

Data Export 2010 for MySQL56

© 2010 EMS Database Management Solutions, Inc.

You also can select preferable text Orientation.

Use the Fill tab to set the note fill type and color.

Select the fill type first: Solid or Gradient. The direction needs to be specified for gradientfill: horizontal, vertical, diagonal (down, down), from corner or from center.

Press the button on the left to set the background color for the fill pattern.

Press the button on the right to set the foreground color for the fill pattern.

Use Transparency slider to define visibility level of the note.

If you need to create a chart:enter the chart title;select the chart style (Column, Column 3D, Bar, Bar 3D, Line, Line Mark, Line 3D,etc.);set the legend position: Bottom, Top, Left, Corner or Right;specify if you want to show the legend;specify if you want to set the chart color automatically;define the chart position and category labels using the corresponding tabs.

Page 57: Data Export 2010 for MySQL

Data Export 2010 for MySQL57

© 2010 EMS Database Management Solutions, Inc.

Position tab allows you to define chart placement and its size.

Auto Position

Bottom The chart will be placed under the data.

RightThe chart will be placed to the right from the data.

Page 58: Data Export 2010 for MySQL

Data Export 2010 for MySQL58

© 2010 EMS Database Management Solutions, Inc.

You also need to specify the distance between the chart and the data at the Left andthe Top fields, and chart size at the Height and the Width.

Custom PositionSpecify absolute position by setting chart coordinates: X1, Y1, X2, Y2.

Use the appropriate tab to define Category labels.

ColumnUse column values as chart category labels.

CustomDefine category label values range manually. Use Col 1 and Row 1 fields to specify upperleft cell, and Col 2 and Row 2 fields to define the right bottom one. These cells form asquare array of values that will be used as category labels.

If you need to add series for the chart:

add one or more series using the button;enter the titles;set data ranges (select a column from the drop-down list or set the custom range);define colors for all the graphs.

Page 59: Data Export 2010 for MySQL

Data Export 2010 for MySQL59

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.1.3 Advanced

The Advanced tab allows you to set a number of advanced options to be applied to theresult MS Excel file.

Page headerIf necessary, enter some text for the page header.

Page footerIf necessary, enter some text for the page footer.

Hint: It is also possible to set macros in the Page header and Page footer fields:&N stands for the quantity of pages;&P - the number of the current page.

Sheet titleSpecify the sheet title for the target file.

Page 60: Data Export 2010 for MySQL

Data Export 2010 for MySQL60

© 2010 EMS Database Management Solutions, Inc.

Page 61: Data Export 2010 for MySQL

Data Export 2010 for MySQL61

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.2 Access options

This tab allows you to set options for the target MS Access (*.mdb) file.

Set the name for the target table and specify whether the wizard should create a newtable in the MS Access database if it does not exist yet, or use the existing table toexport data into.

PasswordSpecify the database password if you are exporting data to an existing MS Accessdatabase which is protected by a password.

Table NameThe name of the table within the target MS Access database.

Create table if it does not existAutomatically creates the target table if it does not exist in the target database yet.

Apply to all exported objectsEnable this option to make settings common for all objects.

Allow captionsUse this option to allow/disallow changing destination fields captions.

Use Caption tab to define titles for each of the result fields.

Page 62: Data Export 2010 for MySQL

Data Export 2010 for MySQL62

© 2010 EMS Database Management Solutions, Inc.

All source fields are shown in the Field Name list. Destination captions can be edited inthe Caption list.

See also:

Excel options

Word / RTF options

HTML options

PDF options

ASCII options

SQL options

XML options

DBF options

Excel 2007/ODS options

Word 2007/ODT options

47

63

67

72

74

76

78

80

82

86

Page 63: Data Export 2010 for MySQL

Data Export 2010 for MySQL63

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.3 Word / RTF options

This tab allows you to set options for the target MS Word (*.doc) and Rich Text Format(*.rtf) files.

You can customize Base data styles, Strip data styles and set Advanced optionsavailable within the corresponding sub-tabs:

Base StylesStrip StylesAdvanced

Note: For your convenience the previews illustrating the changes are displayed in theSample area within the Base Styles and the Strip Styles tabs.

Hint: You can reset the changes any time using the Reset Item and the Reset Allbuttons.

See also:

Excel options

Access options

HTML options

PDF options

ASCII options

64

65

66

47

61

67

72

74

Page 64: Data Export 2010 for MySQL

Data Export 2010 for MySQL64

© 2010 EMS Database Management Solutions, Inc.

SQL options

XML options

DBF options

Excel 2007/ODS options

Word 2007/ODT options

2.1.7.3.3.1 Base data styles

The Base Styles tab contains the list of target file entities: HEADER, CAPTION, DATA,FOOTER.

Use the Font and the Size drop-down lists to select the font and size to be applied tothe output text.Use the buttons below to set font color, make text bold, italicized, strikethrough text,set underline effects, specify text horizontal and vertical align.

Press the button on the left to set the background color.

Press the button on the right to set the highlight color.

Allow highlightEnable this option to use the specified color in the result file as text highlight.

Allow backgroundEnable this option to use the specified color in the result file as background.

Hint: You can reset the changes any time using the Reset Item and the Reset Allbuttons.

76

78

80

82

86

Page 65: Data Export 2010 for MySQL

Data Export 2010 for MySQL65

© 2010 EMS Database Management Solutions, Inc.

At the Sample Cell section you can preview options changes.

2.1.7.3.3.2 Strip data styles

Using the Strip Styles tab you can create a style template: set font, size, backgroundand foreground colors, text alignment, highlight and save them.

If you have created or loaded more than one style template, they can be ignored, orused column-by-column or row-by-row (it depends on the Strip Type selection).

Use buttons to add/remove a style.

Use buttons to reorder the style's list.You can also save styles and load saved ones.

Press the button on the left to set the background color.

Press the button on the right to set the highlight color.

Allow highlightEnable this option to use the specified color in the result file as text highlight.

Allow backgroundEnable this option to use the specified color in the result file as background.

Hint: You can reset the changes any time using the Reset Item and the Reset Allbuttons.

Page 66: Data Export 2010 for MySQL

Data Export 2010 for MySQL66

© 2010 EMS Database Management Solutions, Inc.

At the Sample Cell section you can preview options changes.

2.1.7.3.3.3 Advanced

The Advanced tab allows you to switch page orientation for the target Word/RTF file:

Portrait

Landscape

Page 67: Data Export 2010 for MySQL

Data Export 2010 for MySQL67

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.4 HTML options

This tab allows you to set options for the target HTML (*.html) file.

You can customize the output HTML file using the following sub-tabs:PreviewBasicMulti-fileAdvanced

See also:

Excel options

Access options

Word / RTF options

PDF options

ASCII options

SQL options

XML options

DBF options

Excel 2007/ODS options

Word 2007/ODT options

68

68

69

70

47

61

63

72

74

76

78

80

82

86

Page 68: Data Export 2010 for MySQL

Data Export 2010 for MySQL68

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.4.1 Preview

The Preview tab allows you to customize the style that will be applied to the targetHTML file using a number of built-in templates provided in the Templates combo-box. Youcan select any of these templates and customize it by clicking objects in the previewpanel, and save the settings as a custom template using the Save as template...button. Use the Load template... button to load a previously saved custom templatefrom your hard disk. Click on an element of the table to select its color.

See also:

Basic

Multi-file

Advanced

2.1.7.3.4.2 Basic

The Basic tab allows you to specify the basic parameters of target HTML file:specify the title of the result file;select whether the cascade style sheet (CSS) should be internal (CSS is stored in the

result file) or external (CSS is be stored in a separate file; click the ellipsis buttonto define the location of the *.css file; use the corresponding option to definewhether to Overwrite CSS file if exists);determine whether HTML tags should be interpreted.

68

69

70

Page 69: Data Export 2010 for MySQL

Data Export 2010 for MySQL69

© 2010 EMS Database Management Solutions, Inc.

See also:

Preview

Multi-file

Advanced

2.1.7.3.4.3 Multi-f ile

The Multi-file tab provides you with an ability to split the target HTML file into severalseparated files.

Multi-file export

Set Maximum record(s) in single file value.

Enable the Generate index option to create the content page.

Index Link Template field allows you to specify the template name for the link to thepage, that will be placed to the content page close to that page's number.

NavigationUse this section to define navigation link titles.

On Top and On Bottom options allow you to set the navigation links placement.

68

69

70

Page 70: Data Export 2010 for MySQL

Data Export 2010 for MySQL70

© 2010 EMS Database Management Solutions, Inc.

See also:

Preview

Basic

Advanced

2.1.7.3.4.4 Advanced

The Advanced tab allows you to set a number of advanced options to be applied to theresult HTML file.

Font nameUse the drop-down menu to select the font that will be used in the result file by default.

Background

If necessary, use the ellipsis button to browse for a graphical file to be applied as thepage background.

You can also set a number of common Table options: cell padding, cell spacing, border,background.

68

68

70

Page 71: Data Export 2010 for MySQL

Data Export 2010 for MySQL71

© 2010 EMS Database Management Solutions, Inc.

It is also possible to define advanced attributes for both the HTML body and table.

See also:

Preview

Basic

Multi-file

68

68

69

Page 72: Data Export 2010 for MySQL

Data Export 2010 for MySQL72

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.5 PDF options

This tab allows you to set options for the target PDF (*.pdf) file.

Fonts section allows you to define the selected item's font.Specify the needed Font Name and Font Encoding from the appropriate drop-down lists.You can also define the Font Size.

You can change the font color by pressing the Font Color button.

Additionally you can customize Page Options:

Page SizeDefine the page size by choosing one of the standard page sizes from the drop-down list,or set the custom size by changing Width and Height. By default standard "A4" page size is set.

UnitsUse this drop-down list to set the units of measurement for the page size and margins. Inches, millimeters and dots are available.

OrientationSelect needed page orientation from this drop-down list.

Margins

Page 73: Data Export 2010 for MySQL

Data Export 2010 for MySQL73

© 2010 EMS Database Management Solutions, Inc.

Use this section to define page margins for the exported file.

Grid Options

At this tab you can define Col spacing, Row Spacing and Grid Line Width.

Note: For your convenience the previews illustrating the changes are displayed in theSample area.

See also:

Excel options

Access options

Word / RTF options

HTML options

ASCII options

SQL options

XML options

DBF options

Excel 2007/ODS options

Word 2007/ODT options

47

61

63

67

74

76

78

80

82

86

Page 74: Data Export 2010 for MySQL

Data Export 2010 for MySQL74

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.6 ASCII options

This tab allows you to set options for the target ASCII (*.txt and *.csv) files.

TXT optionsCSV options

See also:

Excel options

Access options

Word / RTF options

HTML options

PDF options

SQL options

XML options

DBF options

Excel 2007/ODS options

Word 2007/ODT options

75

75

47

61

63

67

72

76

78

80

82

86

Page 75: Data Export 2010 for MySQL

Data Export 2010 for MySQL75

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.6.1 TXT options

This group allows you to set options for the target text (*.txt) file.

Set the Calculate column width option on if you want each column of the target fileto be adjusted to the maximum number of characters in it. The Spacing option specifiesthe number of spaces between columns in the target file.

EncodingUse the drop-down list to specify the preferable output file encoding. Possible values are: ANSI, OEM, MAC, UTF-8, UTF-16, UTF-32.

2.1.7.3.6.2 CSV options

This group allows you to set options for the target CSV (*.csv) file.

Quote stringsCheck this option to apply quoting for string values in the target file.

Specify the column separator using the Comma drop-down list and the preferable quotecharacter using the Quote edit-box.

Any of the following symbols can be used as a column separator:, (comma); (semicolon)' (apostrophe)TAB (Tab symbol)SPACE (Space symbol)

Page 76: Data Export 2010 for MySQL

Data Export 2010 for MySQL76

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.7 SQL options

The SQL Options tab allows you to set options for SQL as the output format (as a set ofINSERT statements).

Destination server

Select the ANSI SQL-92 standard or define the type of DBMS you need to export datafor (to achieve maximum compatibility). The result script will be generated in compliancewith the specifications of the selected server type:

DB2

InterBase/Firebird

Microsoft® SQL Server™

MySQL

Oracle

PostgreSQL

Table options This group allows you to add the CREATE TABLE statement to the result script and definethe name for the table being exported.

Commit optionsThis group allows you to add the COMMIT statement after a defined number of records orat the end of the script. You can also define the commit statement (COMMIT; by default)in the corresponding edit-box.

Other optionsThis group allows you to customize representation of the NULL values in the result script (NULL by default) and define the character denoting the end of each SQL statement(semicolon by default).

Page 77: Data Export 2010 for MySQL

Data Export 2010 for MySQL77

© 2010 EMS Database Management Solutions, Inc.

See also:

Excel options

Access options

Word / RTF options

HTML options

PDF options

ASCII options

XML options

DBF options

Excel 2007/ODS options

Word 2007/ODT options

47

61

63

67

72

74

78

80

82

86

Page 78: Data Export 2010 for MySQL

Data Export 2010 for MySQL78

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.8 XML options

This tab allows you to set options for the target XML (*.xml) file.

Specify XML document encoding in the Encoding edit box and set the Standaloneoption on if you intend to create a standalone document. Disable the option if any markupdeclarations, that can affect the content of the document, as passed from XML processorto the application are present or can appear.

XML typeSelect the type of the result XML document: Datapacket 2.0 or Access. For the Accesstype you can optionally select to export XSD schema. XSD schema defines the way inwhich elements and attributes will be represented in a XML document. It also advocatesthat the given XML document should be of a specific format and specific data type.

Note: Conversion between generic XML documents and documents of the XML-Datapacket (CDS) format can be performed with the help of XML Mapper by Borland®.

See also:

Excel options

Access options

Word / RTF options

HTML options

47

61

63

67

Page 79: Data Export 2010 for MySQL

Data Export 2010 for MySQL79

© 2010 EMS Database Management Solutions, Inc.

PDF options

ASCII options

SQL options

DBF options

Excel 2007/ODS options

Word 2007/ODT options

72

74

76

80

82

86

Page 80: Data Export 2010 for MySQL

Data Export 2010 for MySQL80

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.9 DBF options

This tab allows you to set options for the target DBF (*.dbf) file.

At the DBF Options tab you can define the precision for float fields. Use the Float Sizeand Float Decimal fields for this purpose.

Hint: If more convenient, you can check the Apply to all exported objects box toapply changes made at this tab for all exported objects.

The Caption tab allows you to change captions in the target file if needed.

Page 81: Data Export 2010 for MySQL

Data Export 2010 for MySQL81

© 2010 EMS Database Management Solutions, Inc.

See also:

Excel options

Access options

Word / RTF options

HTML options

PDF options

ASCII options

SQL options

XML options

Excel 2007/ODS options

Word 2007/ODT options

47

61

63

67

72

74

76

78

82

86

Page 82: Data Export 2010 for MySQL

Data Export 2010 for MySQL82

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.10 Excel 2007/ODS options

The Excel 2007 (ODS) Options tab allows you to set options for the target MS Excel2007 (ODF Spreadsheets) (*.xlsx, *.ods) file.

You can customize options and strip styles using the corresponding sub-tabs:OptionsStyles

Note: For your convenience the previews illustrating the changes are displayed in theSample Cell area.

Hint: You can reset the changes any time using the Reset Item and the Reset Allbuttons.

See also:

Excel options

Access options

Word / RTF options

HTML options

PDF options

83

84

47

61

63

67

72

Page 83: Data Export 2010 for MySQL

Data Export 2010 for MySQL83

© 2010 EMS Database Management Solutions, Inc.

ASCII options

SQL options

XML options

DBF options

Word 2007/ODT options

2.1.7.3.10.1 Options

Using the Options tab you can set font and border options for all elements of the Excel2007 / ODF sheet (HEADER, CAPTION, DATA, FOOTER).

If necessary, you can also specify the sheet name for the target Excel 2007 / ODFSpreadsheet file.

Use the Font and the Size drop-down lists to select the font and size to be applied tothe output text.Use the buttons below to set font color, make text bold, italicized, strikethrough text,set underline effects, specify text horizontal and vertical align.

Use backgroundEnable this option to be able to change result file background color.

Press the button on the left to set the background color.

You can reset the changes any time using the Reset Item and the Reset All buttons.

Note: For your convenience the previews illustrating the changes are displayed in theSample Cell area.

74

76

78

80

86

Page 84: Data Export 2010 for MySQL

Data Export 2010 for MySQL84

© 2010 EMS Database Management Solutions, Inc.

Enable the Use Border option at the Border tab if it is needed.

Then define its color and style.

2.1.7.3.10.2 Styles

Using the Styles tab you can create and save a style template: set font, size,background color, text alignment, wrap text options.

Use buttons to add/remove a style.

Use buttons to reorder the style's list.You can also save styles and load saved ones.

If you have created or loaded more than one style template, they can be ignored, orused column-by-column or row-by-row (it depends on the Strip Type selection).

Page 85: Data Export 2010 for MySQL

Data Export 2010 for MySQL85

© 2010 EMS Database Management Solutions, Inc.

Use backgroundEnable this option to be able to change result file background color.

Press the button on the left to set the background color.

You can reset the changes any time using the Reset Item and the Reset All buttons.

Note: For your convenience the previews illustrating the changes are displayed in theSample Cell area.

Enable the Use Border option at the Border tab if it is needed.

Then define its color and style.

Page 86: Data Export 2010 for MySQL

Data Export 2010 for MySQL86

© 2010 EMS Database Management Solutions, Inc.

2.1.7.3.11 Word 2007/ODT options

The Word 2007 (ODT) Options tab allows you to set options for the target MS Word2007 (ODF text) (*.docx, *.odt) file.

You can customize options, strip styles and border using the corresponding sub-tabs:OptionsStylesAdvanced

Note: For your convenience the previews illustrating the changes are displayed in theSample Cell area.

Hint: You can reset the changes any time using the Reset Item and the Reset Allbuttons.

See also:

Excel options

Access options

Word / RTF options

HTML options

87

87

88

47

61

63

67

Page 87: Data Export 2010 for MySQL

Data Export 2010 for MySQL87

© 2010 EMS Database Management Solutions, Inc.

PDF options

ASCII options

SQL options

XML options

DBF options

Excel 2007/ODS options

2.1.7.3.11.1 Options

The Options sub-tab contains the list of target file entities, such as table header, data,etc. Using the Options tab you can set font options for all elements of the Word 2007 /ODF text document (HEADER, CAPTION, DATA, FOOTER). You can customize style options,such as font and size, background and foreground colors, text alignment, text highlight,etc. for each of them by clicking the corresponding item in the list and setting the optionsin the right-side panel.

Note: For your convenience the previews illustrating the changes are displayed in theSample Cell area.

2.1.7.3.11.2 Styles

Using the Styles tab you can create and save a style template: set font, size,background color, text alignment, highlight options.

Use buttons to add/remove a style.

Use buttons to reorder the style's list.

72

74

76

78

80

82

Page 88: Data Export 2010 for MySQL

Data Export 2010 for MySQL88

© 2010 EMS Database Management Solutions, Inc.

You can also save styles and load saved ones.

If you have created or loaded more than one style template, they can be ignored, orused column-by-column or row-by-row (it depends on the Strip Type selection).

Press the button on the left to set the background color.

Press the button on the right to set the highlight color.

Use highlightEnable this option to be able to select highlight color from the drop-down list.

Use backgroundEnable this option to use the specified color in the result file as background.

Note: For your convenience the previews illustrating the changes are displayed in theSample Cell area.

2.1.7.3.11.3 Advanced

Using the Advance tab you can enable borders in the result Word 2007 / ODF textdocument and customize them.

Click the Border Color icon to select a color using the Color dialog where you canspecify the required color from the palette.

Border StyleUse the drop-down list to select the preferable style to applied to the border: single, thick

Page 89: Data Export 2010 for MySQL

Data Export 2010 for MySQL89

© 2010 EMS Database Management Solutions, Inc.

, double, hairline, dot, etc.

You can also define page orientation for the target Word/RTF file:

Portrait

Landscape

Note: For your convenience the previews illustrating the changes are displayed in theSample Cell area.

Page 90: Data Export 2010 for MySQL

Data Export 2010 for MySQL90

© 2010 EMS Database Management Solutions, Inc.

2.1.8 Step 7 - Setting base data formats

At this step you should define data formats of the exported fields.

Data type formats

Use this group to define formats for the exported fields. You can keep the default formatvalues or edit some of them, if necessary.See Format specifiers for more details.

User

Using this group you can also define your own formats for numeric and Date/Time fields.These fields (if there are any in your source table) are available in the drop-down list atthe top of the User group. Select a field from the Field Name drop-down list, then selectits format from the Field Format drop-down list and click the Add button. The field andits format will be added to the list box below. To edit a field format, select the field in thelist box and click the Edit button. To delete a format, click the Delete button. To clearthe list box, click the Clear button.

Hint: If more convenient, you can check the Apply to all exported objects box toset the specified format for all exported objects.

When you are done, press the Next button to proceed to the next step .

121

91

Page 91: Data Export 2010 for MySQL

Data Export 2010 for MySQL91

© 2010 EMS Database Management Solutions, Inc.

2.1.9 Step 8 - Setting common options

Use this step of the wizard to set common export options. The detailed description ofthese options is given below.

Destination fileUse this edit field to set the name of the output file. You can click the Select... button todefine it using the Save As dialog.

Open file after export If this option is checked, the result file will be opened with the currently associatedprogram after the export operation is completed.

Print file after export If this option is checked, the result file will be sent to the default printer after the exportoperation is completed.

Constraints

Skip ... record(s)Specifies the number of records to be skipped before export starts.

Export all recordsSpecifies that all records of the selected table will be exported.

Page 92: Data Export 2010 for MySQL

Data Export 2010 for MySQL92

© 2010 EMS Database Management Solutions, Inc.

Export only ... record(s)Specifies the number of records to be exported.

Save Export Options... / Load Export Options..Use these buttons to save / load all export settings to/from an external configurationfile. For details refer to Configuration file format .

Hint: If more convenient, you can check the Apply to all exported objects box toset the specified options for all exported objects.

When you are done, press the Next button to proceed to the last step of the wizard.

94

126

93

Page 93: Data Export 2010 for MySQL

Data Export 2010 for MySQL93

© 2010 EMS Database Management Solutions, Inc.

2.1.10 Step 9 - Start of data export process

This step of the wizard is intended to inform you that all export options have been set,and you can start the export process.

If everything is correct, press the Export button to start the process. If you want tochange something, you can return to any of the wizard steps using the Back button.

If necessary, you can save a template for future use.94

Page 94: Data Export 2010 for MySQL

Data Export 2010 for MySQL94

© 2010 EMS Database Management Solutions, Inc.

2.2 Using configuration files (templates)

Data Export 2010 for MySQL allows you to store its configuration settings in external *.cfg files if you need to perform the data export process repeatedly.

You can load previously saved configuration settings to the application wizard if youneed to make some changes before data export, or you can run it with the consoleapplication for quicker export.

Data Export templates are saved within the Save template options dialog. To open thisdialog, press the Tools button and select the Save Template popup menu item.

File name

Specify the template file name and select its location using the button which calls theSave As... dialog.

If you need to repeat data exporting process with the same or similar settings later, it isreasonable to save all the settings you entered on the Start of data export processstep of the Wizard.

Data Export templates are loaded within the Open template dialog. To open this dialog,press the Tools button and select the Load template popup menu item.

Please note that loading a template is only available at the Getting started and theSetting connection properties steps of the Wizard.

33

116

93

34

35

Page 95: Data Export 2010 for MySQL

Data Export 2010 for MySQL95

© 2010 EMS Database Management Solutions, Inc.

If necessary, you can reload a template using the Reopen configuration popup menuitem of the Tools menu.

When the configuration file is loaded, you can browse (or change the settings, ifnecessary) in all steps of the wizard.

See also:

Working with wizard application

Setting program preferences

33

96

Page 96: Data Export 2010 for MySQL

Data Export 2010 for MySQL96

© 2010 EMS Database Management Solutions, Inc.

2.3 Setting program preferences

Data Export 2010 for MySQL provides full customization of the program by settingvarious options within the Preferences dialog. This chapter is intended to inform you howto use all these options.

General optionsThese options define general behavior of Data Export 2010 for MySQL.

Default data formatsThis page allows you to set default data formats.

Default queryThis page allows you to input a template for a new query that will appear at Step 3 ofWizard Application .

LocalizationThis page allows you to select a language to be applied for your copy of Data Export2010 for MySQL.

InterfaceThis branch contains several pages with a number of options allowing you to customizethe application interface style according to your liking.

See also:

Working with wizard application

Using configuration files

97

99

100

38

32

101

103

33

94

Page 97: Data Export 2010 for MySQL

Data Export 2010 for MySQL97

© 2010 EMS Database Management Solutions, Inc.

2.3.1 Setting general options

Confirmation on exitEnables/disables confirmation upon exiting the program.

Skip intermediate stepsThis option determines the behavior of the Next and Back buttons. When this option isdisabled, clicking the Next button leads to sequential passing through the list of exportedobjects. When this option is enabled, the steps checked in the Skipped steps group willbe skipped.

Export emptySet this option to export empty objects as well. If disabled, objects that contain no datawill be skipped.

Format SQL valuesThe option determines whether SQL values (e.g. integer, float, currency, datetime, etc.)should be formatted according to the settings specified on the Default formats page.

Show viewsBy setting this option on you can export data from views - they will appear in the list ofavailable tables at Step 2 of the Wizard application .

Save passwordSetting this option allows you to save passwords used for access to the databasesautomatically upon closing the application. Please note that checking this option savesthe latest password used for connection to the database (including the SSH serverpassword).

Show DBThis option enables/disables the 'Select Database' drop-down list in 'Select Table' dialogat Step 2 of the wizard. If you check this option, you can select the database fromthe list, otherwise you must type the database name manually.

99

37 32

37

Page 98: Data Export 2010 for MySQL

Data Export 2010 for MySQL98

© 2010 EMS Database Management Solutions, Inc.

Skipped stepsUse this option group to define the Wizard application steps to be skipped.

See also:

Setting default formats

Setting default query template

Selecting program language

Defining interface style

32

99

100

101

103

Page 99: Data Export 2010 for MySQL

Data Export 2010 for MySQL99

© 2010 EMS Database Management Solutions, Inc.

2.3.2 Setting default formats

This page allows you to customize formats applied to exported data. Edit the formatmasks to adjust the result format in the way you need, or click the Reset button if youwish to apply default data formats.

The current format settings will be used if the Format SQL values option is enabled (Preferences | General ).

See Format specifiers for details.

See also:

Setting general options

Setting default query template

Selecting program language

Defining interface style

97

121

97

100

101

103

Page 100: Data Export 2010 for MySQL

Data Export 2010 for MySQL100

© 2010 EMS Database Management Solutions, Inc.

2.3.3 Setting default query template

This page allows you to define the default query text that is used on adding a new queryat Step 3 of the Wizard application .

See also:

Setting general options

Setting default formats

Selecting program language

Defining interface style

38 32

97

99

101

103

Page 101: Data Export 2010 for MySQL

Data Export 2010 for MySQL101

© 2010 EMS Database Management Solutions, Inc.

2.3.4 Selecting program language

The Localization page is provided for managing Data Export localization files.

You can create your own *.lng files similar to those available in the %program_directory%\Languages folder, add them to the list of available languages and set the new languageas the program interface language.

Available LanguagesLists all the languages available for localization and the corresponding *.lng files. Double-click a language in the list to edit its name or the *.lng file.

Language Directory

Use the ellipsis button to specify the directory where the *.lng files are stored bydefault.

Load LanguagesThis button is used for searching for *.lng files in the Language directory and adding allthem to the Available Languages list.

See also:

Setting general options 97

Page 102: Data Export 2010 for MySQL

Data Export 2010 for MySQL102

© 2010 EMS Database Management Solutions, Inc.

Setting default formats

Setting default query template

Defining interface style

99

100

103

Page 103: Data Export 2010 for MySQL

Data Export 2010 for MySQL103

© 2010 EMS Database Management Solutions, Inc.

2.3.5 Defining interface style

The Interface section of the Preferences dialog allows you to customize the applicationinterface style to your liking.

Trees and listsEdit controlsCheck boxesButtonsGroup boxes

Use the Scheme name drop-down list to select an interface scheme according to yourliking: Classic, Office XP style, Windows XP native style, etc.

It is also possible to create one's own interface scheme, if necessary:set your preferences within the available branches of the Interface node (Trees andLists, Edit Controls, Check Boxes, Buttons, Group Boxes);return to the Interface page and click the Save As button;specify the scheme name in the Input scheme name dialog.

105

107

109

111

113

Page 104: Data Export 2010 for MySQL

Data Export 2010 for MySQL104

© 2010 EMS Database Management Solutions, Inc.

Note: For your convenience the previews illustrating the changes are displayed in theSample area of each branch of the Interface node.

See also:

Setting general options

Setting default formats

Setting default query template

Selecting program language

97

99

100

101

Page 105: Data Export 2010 for MySQL

Data Export 2010 for MySQL105

© 2010 EMS Database Management Solutions, Inc.

2.3.5.1 Trees and lists

Use the Trees and lists section to view and edit the corresponding options.

Look & feelThis setting determines the manner in which tree and list elements are painted. Use thedrop-down list to select the painting style that will be applied to the trees and lists:StandardFlatUltraFlat

Hide selectionThis option specifies how selected tree nodes and list items are displayed when focusleaves the tree or list control.If this option is enabled, selected nodes look like other nodes. Otherwise, selected nodes/items are highlighted within the tree/list.

Hide focus rectangleThis option determines whether a focus rectangle is displayed around the focused treenode or list item within the tree or list control.If this option is disabled, the focused node/item is not highlighted but the focus rectangleis displayed around it.

Native styleThis option determines whether the native Windows style will be applied to the trees and

Page 106: Data Export 2010 for MySQL

Data Export 2010 for MySQL106

© 2010 EMS Database Management Solutions, Inc.

lists.The option has the highest priority for trees and lists. If this option is selected, the treenodes and list items are painted according to the native Windows style, regardless ofother painting settings.

Note: The Native style option is currently supported for the Windows® XP operatingsystem only.

See also:

Edit controls

Check boxes

Buttons

Group boxes

107

109

111

113

Page 107: Data Export 2010 for MySQL

Data Export 2010 for MySQL107

© 2010 EMS Database Management Solutions, Inc.

2.3.5.2 Edit controls

Use the Edit controls section to customize the appearance of various Data Export 2010for MySQL edit controls: Border style, Button style, Button transparency, etc.

Border style / Button styleUse these drop-down lists to specify the style around an editor (the edit control borders)and select the painting style that will be applied to the edit control buttons (ellipsisbutton, arrow-down combo-box button, etc.) respectively:NoneSingleThickFlat3DUltraFlat

Button transparencyRepresents the button transparency mode within an editor. Use the drop-down list tospecify the transparency that will be applied to the edit control buttons (ellipsis button,arrow-down combo-box button, etc.):None (a button is always displayed in a non-transparent fashion)Inactive (a button is drawn when the editor has focus or when the mouse cursor ispositioned over the button; otherwise, the button is transparent)Always (a button is always transparent)Hide inactive (a button is drawn only when the editor has focus; otherwise, the button is

Page 108: Data Export 2010 for MySQL

Data Export 2010 for MySQL108

© 2010 EMS Database Management Solutions, Inc.

invisible)Hide unselected (a button is drawn when the editor has focus or when the mouse cursoris positioned over the editor region; otherwise, the button is invisible).

EdgesThis group defines which edges are displayed within an editor. Check/uncheck the boxesto hide/show individual edges of the edit controls:

Left (if unchecked, the left border edge is invisible) Right (if unchecked, the right border edge is invisible) Top (if unchecked, the top border edge is invisible) Bottom (if unchecked, the bottom border edge is invisible)

Hot trackThis option specifies whether editor items are highlighted when the mouse cursor ispositioned over an edit control. Select this option to highlight an edit control in responseto mouse movements.

ShadowIf this option is selected, a shadow is displayed for the edit controls.

Native styleThis option determines whether the native Windows style will be applied to the editcontrols.The option has the highest priority for edit controls. If this option is selected, the editcontrols are painted according to the native Windows style, regardless of other paintingsettings.

Note: The Native style option is currently supported for the Windows® XP operatingsystem only.

See also:

Trees and lists

Check boxes

Buttons

Group boxes

105

109

111

113

Page 109: Data Export 2010 for MySQL

Data Export 2010 for MySQL109

© 2010 EMS Database Management Solutions, Inc.

2.3.5.3 Check boxes

Use the Check boxes section to customize the border style and the appearance ofcheck boxes and radio buttons.

Border styleThis setting determines the manner in which check box and radio group borders arepainted. Use the drop-down list to select the painting style that will be applied to thecheck boxes and radio groups:NoneSingleThickFlat3DUltraFlat

Hot trackThis option specifies whether check boxes are highlighted when the mouse cursor ispositioned over the check box controls. Select this option to highlight check boxes inresponse to mouse movements.

ShadowIf this option is selected, a shadow is displayed for the check boxes and radio groups.

Native style

Page 110: Data Export 2010 for MySQL

Data Export 2010 for MySQL110

© 2010 EMS Database Management Solutions, Inc.

This option determines whether the native Windows style will be applied to the checkboxes and radio buttons.The option has the highest priority for check boxes and radio buttons. If this option isselected, the check boxes and radio buttons are painted according to the native Windowsstyle, regardless of other painting settings.

Note: The Native style option is currently supported for the Windows® XP operatingsystem only.

See also:

Trees and lists

Edit controls

Buttons

Group boxes

105

107

111

113

Page 111: Data Export 2010 for MySQL

Data Export 2010 for MySQL111

© 2010 EMS Database Management Solutions, Inc.

2.3.5.4 Buttons

Use the Buttons section to customize Data Export buttons.

Button kindThis setting determines the manner in which a button is painted. Use the drop-down listto select the painting style that will be applied to buttons:StandardFlatUltraFlat

Native styleThis option determines whether the native Windows style will be applied to the buttons.The option has a higher priority than the Button kind setting. If this option is selected,the buttons are painted according to the native Windows style, otherwise the Buttonkind selection is applied.

Note: The Native style option is currently supported for the Windows® XP operatingsystem only.

See also:

Trees and lists

Edit controls

105

107

Page 112: Data Export 2010 for MySQL

Data Export 2010 for MySQL112

© 2010 EMS Database Management Solutions, Inc.

Check boxes

Group boxes

109

113

Page 113: Data Export 2010 for MySQL

Data Export 2010 for MySQL113

© 2010 EMS Database Management Solutions, Inc.

2.3.5.5 Group boxes

Use the Group boxes section to customize all Data Export group boxes to your liking.

Border styleThis setting determines the manner in which group box borders are painted. Use the drop-down list to select the painting style that will be applied to the group boxes:NoneSingleThickFlat3DUltraFlat

ShadowIf this option is selected, a shadow is displayed for the group boxes.

Native styleThis option determines whether the native Windows style will be applied to the groupboxes.The option has the highest priority for the group boxes. If this option is selected, thegroup boxes are painted according to the native Windows style, regardless of otherpainting settings.

Note: The Native style option is currently supported for the Windows® XP operating

Page 114: Data Export 2010 for MySQL

Data Export 2010 for MySQL114

© 2010 EMS Database Management Solutions, Inc.

system only.

See also:

Trees and lists

Edit controls

Check boxes

Buttons

105

107

109

111

Page 115: Data Export 2010 for MySQL

Part

III

Page 116: Data Export 2010 for MySQL

Data Export 2010 for MySQL116

© 2010 EMS Database Management Solutions, Inc.

3 Console application

Additionally to the GUI version which is implemented in the form of a wizard application, the installation package of Data Export 2010 for MySQL includes the console

version which is intended for running from Windows command line with a template filename used as the execution parameter.

Data Export 2010 for MySQL command line utility is intended for quick and powerful dataexport from MySQL tables.

Working with console applicationConfiguration file format

See also:

Wizard application

32

94

117

126

32

Page 117: Data Export 2010 for MySQL

Data Export 2010 for MySQL117

© 2010 EMS Database Management Solutions, Inc.

3.1 Working with console application

All the export options are set in configuration (*.cfg) files. A configuration (template) filecan be also used in the Console version of Data Export 2010 for MySQL.

To create a configuration (template) file, follow the instructions below:start Data Export Application wizard ;set all the required options in all steps of the wizard;test the export process at the last step;save all export options in the template .

The easiest way to start Data Export 2010 for MySQL console application is to double-click the generated *.cfg template. The other way is to enter the command line and typethe appropriate command.

Usage:

<path to Data Export 2010 for MySQL console application>\MyExportC.exe TemplateFile[-B]

TemplateFileStands for the path and the name of *.cfg template file to be used as the console versionexecution parameter

[-B]Use this parameter in the command line to run the console version of Data Export 2010for MySQL in the background mode

Example:

"C:\Program Files\EMS\Data Export for MySQL\MyExportC.exe" "C:\EMS\DataImport\Example.cfg" -B

Using parameters in queries

MyExportC.exe [Template file] -[Query name]:[Parameter name]=[Value] -[Queryname]:[Parameter name]=[Value] etc.(see Using query parameters )

Note: The result of the latest task performed by Data Export 2010 for MySQL can befound in the system variable '%ERRORLEVEL%'.0 - successful completion;1 - error(s) occurred during task performing;2 - fatal error occurred. The task was not performed.

See also:

Working with wizard application

32

94

128

33

Page 118: Data Export 2010 for MySQL

Part

IV

Page 119: Data Export 2010 for MySQL

Data Export 2010 for MySQL119

© 2010 EMS Database Management Solutions, Inc.

4 Appendix

4.1 SSH tunneling options

To setup the connection via SSH tunnel, input the following values in the correspondingfields:

SSH host name is the name of the host where SSH server is running SSH port indicates the port where SSH server is activated SSH user name stands for the user on the machine where SSH server is running (Note: it is a Linux/Windows user, not a user of MySQL server)SSH password is the Linux/Windows user password

Please note that MySQL host name should be set relatively to the SSH server in thiscase. For example, if both MySQL and SSH servers are located on the same computer,you should specify localhost as host name instead of the server external host name or IPaddress.

Use Private Key for authenticationIf the SSH encryption is enabled on the SSH server, a user can generate a pair ofcryptographic keys (the Private key and the Public key). The Public key is placed onthe SSH server, and the Private key is the part you keep secret inside a secure box thatcan only be opened with the correct passphrase (or an empty string as the passphrase).When you wish to access the remote system, you open the secure box with yourpassphrase (if any), and use the private key to authenticate yourself with the Public keyon the remote Linux computer.

SSH Key file Specify the location (the secure box) of the Private key file on your local machine.Supported Private Key file formats are:OpenSSHPuttySSH.comNote that you need to trust your local machine not to scrape your passphrase or a copyof your Private key file while it is out of its secure box.

Page 120: Data Export 2010 for MySQL

Data Export 2010 for MySQL120

© 2010 EMS Database Management Solutions, Inc.

4.2 HTTP tunneling options

To use HTTP tunneling, just upload the tunneling script to the webserver where MySQLserver is located, or to any other webserver from which direct connections to your MySQLserver are allowed. This script exposes the MySQL API as a set of web-services used by Data Export 2010 for MySQL.

In case of using this connection method the response will be slower as compared to thedirect connection or the SSH Tunneling method, since the data are XML encoded andHTTP is stateless by nature. However, all the features of Data Export 2010 for MySQLare available.

Note that the emsproxy.php script file is included into the distribution package and canbe found in Data Export installation directory.

Page 121: Data Export 2010 for MySQL

Data Export 2010 for MySQL121

© 2010 EMS Database Management Solutions, Inc.

4.3 Format specifiers

The following format specifiers are supported in the format string:

Float/Integer format

0Digit place holder. If the value being formatted has a digit in the position where the '0'appears in the format string, then that digit is copied to the output string. Otherwise, a'0' is stored in that position in the output string.

#Digit placeholder. If the value being formatted has a digit in the position where the '#'appears in the format string, then that digit is copied to the output string. Otherwise,nothing is stored in that position in the output string.

.Decimal point. The first '.' character in the format string determines the location of thedecimal separator in the formatted value; any additional '.' characters are ignored.

,Thousand separator. If the format string contains one or more ',' characters, the outputwill have thousand separators inserted between each group of three digits to the left ofthe decimal point. The placement and number of ',' characters in the format string doesnot affect the output, except to indicate that thousand separators are wanted.

E+Scientific notation. If any of the strings 'E+', 'E-', 'e+', or 'e-' are contained in the formatstring, the number is formatted using scientific notation. A group of up to four '0'characters can immediately follow the 'E+', 'E-', 'e+', or 'e-' to determine the minimumnumber of digits in the exponent. The 'E+' and 'e+' formats cause a plus sign to be outputfor positive exponents and a minus sign to be output for negative exponents. The 'E-' and'e-' formats output a sign character only for negative exponents.

Date/Time format

cDisplays the date using the format using the Short Date Format, followed by the timeusing the Long Time Format. The time is not displayed if the date-time value indicatesmidnight precisely.

dDisplays the day as a number without a leading zero (1-31).

ddDisplays the day as a number with a leading zero (01-31).

dddDisplays the day as an abbreviation (Sun-Sat) using the strings of the Short Day Names.

dddd

Page 122: Data Export 2010 for MySQL

Data Export 2010 for MySQL122

© 2010 EMS Database Management Solutions, Inc.

Displays the day as a full name (Sunday-Saturday) using the strings of the Long DayNames.

dddddDisplays the date using the Short Date Format.

ddddddDisplays the date using the Long Date Format.

eDisplays the year in the current period/era as a number without a leading zero (Japanese,Korean and Taiwanese locales only).

eeDisplays the year in the current period/era as a number with a leading zero (Japanese,Korean and Taiwanese locales only).

gDisplays the period/era as an abbreviation (Japanese and Taiwanese locales only).

ggDisplays the period/era as a full name. (Japanese and Taiwanese locales only).

mDisplays the month as a number without a leading zero (1-12). If the m specifierimmediately follows an h or hh specifier, the minute rather than the month is displayed.

mmDisplays the month as a number with a leading zero (01-12). If the mm specifierimmediately follows an h or hh specifier, the minute rather than the month is displayed.

mmmDisplays the month as an abbreviation (Jan-Dec) using the strings given of the ShortMonth Names.

mmmmDisplays the month as a full name (January-December) using the strings of the LongMonth Names.

yyDisplays the year as a two-digit number (00-99).

yyyyDisplays the year as a four-digit number (0000-9999).

hDisplays the hour without a leading zero (0-23).

hhDisplays the hour with a leading zero (00-23).

nDisplays the minute without a leading zero (0-59).

Page 123: Data Export 2010 for MySQL

Data Export 2010 for MySQL123

© 2010 EMS Database Management Solutions, Inc.

nnDisplays the minute with a leading zero (00-59).

sDisplays the second without a leading zero (0-59).

ssDisplays the second with a leading zero (00-59).

zDisplays the millisecond without a leading zero (0-999).

zzzDisplays the millisecond with a leading zero (000-999).

tDisplays the time using the Short Time Format.

ttDisplays the time using the Long Time Format.

am/pmUses the 12-hour clock for the preceding h or hh specifier, and displays 'am' for any hourbefore noon, and 'pm' for any hour after noon. The am/pm specifier can use lower, upper,or mixed case, and the result is displayed accordingly.

a/pUses the 12-hour clock for the preceding h or hh specifier, and displays 'a' for any hourbefore noon, and 'p' for any hour after noon. The a/p specifier can use lower, upper, ormixed case, and the result is displayed accordingly.

ampmUses the 12-hour clock for the preceding h or hh specifier, and displays the contents ofthe TimeAMString global variable for any hour before noon, and the contents of theTimePMString global variable for any hour after noon.

/Displays the date separator character using the Date Separator.

:Displays the time separator character using the Time Separator.

'xx'/"xx"Characters enclosed in single or double quotes are displayed as-is, and do not affectformatting.

Page 124: Data Export 2010 for MySQL

Data Export 2010 for MySQL124

© 2010 EMS Database Management Solutions, Inc.

4.4 Supported file formats

MS ExcelThe most popular e-table format used by Microsoft® Excel (*.xls). The result files arefully compatible with Microsoft® Excel versions 97-2000, 2003 and XP.

MS AccessFile of Microsoft® Access format (*.mdb) with an ADO connection used.

MS WordOne of the most popular text processing formats used by Microsoft® Word (*.doc). Theresult files are fully compatible with Microsoft® Word versions 97-2000, 2003 and XP.

RTFRich Text Format (*.rtf) supported by many text processing programs (e.g. WordPad).

HTMLHyper Text Markup Language file format (*.html, *.htm), complete compatibility withHTML 4.0 specification.

PDFA standard format in electronic publishing (*.pdf).

Text filePlain text file format (*.txt).

CSV fileComma-Separated Value file format (*.csv).

DIF fileData Interchange File (*.dif) format.

SYLKSymbolic Links (*.slk) file format.

Note: all the text formats including Text file, CSV, DIF, SYLK are usually used as workingor interchange formats.

LaTeXA specific file format (*.tex) which is a popular (especially among mathematicians andphysicists) macroextension of TeX pack developed by D.Knut.

XMLA markup language for documents containing structured information (*.xml).

DBFDatabase file format (*.dbf)used by dBASE and a number of xBASE applications.

MS Excel 2007The contemporary e-table format used by Microsoft® Excel 2007 (*.xlsx). The result filesare fully compatible with Microsoft® Excel 2007.

Page 125: Data Export 2010 for MySQL

Data Export 2010 for MySQL125

© 2010 EMS Database Management Solutions, Inc.

MS Word 2007The contemporary text processing format used by Microsoft® Word 2007 (*.docx). Theresult files are fully compatible with Microsoft® Word 2007.

ODF SpreadsheetsOASIS Open Document Format for Office Applications - open document file format forspreadsheets (*.ods) used by a number of applications including OpenOffice.org andKOffice.

ODF textOASIS Open Document Format for Office Applications - open document file format forword processing (*.odt) documents used by a number of applications includingOpenOffice.org and KOffice.

Page 126: Data Export 2010 for MySQL

Data Export 2010 for MySQL126

© 2010 EMS Database Management Solutions, Inc.

4.5 Configuration file format

The configuration file is divided into several sections.

[#General#]This section stores information about the product name and its major version .

[Connection]This section contains parameters for connecting to the server: Host, Port, Charset,tunneling settings, Login, Password (encrypted). These parameters are obligatory.

Note that parameter DBName used in previous versions is no more obligatory. You can setdatabases for each table and query separately in the [Databases] section.

[Tables]This section contains the list of database tables to export in the following format:<table key>=<table name>e.g.table1=Countrytable2=Employee

This section may be empty.

[Queries]This section contains the list of queries and their identifiers (used while loading queriesinto the wizard application) in the following format:<query key>=<query identifier>e.g.query1=CountryQ

[SQL_<query key>]Sections of this type contain query text for each query. The lines must be specified in thefollowing format:Item_0=<query line 1>Item_1=<query line2>etc.

See the example below:[Queries]query0=Query_0[SQL_query0]Item_0=select name, capitalItem_1=from countriesItem_2=where continent = 'South America'

This section may also be empty, but remember that if you do not specify any table orquery, no data are exported.

17

35

37

38

Page 127: Data Export 2010 for MySQL

Data Export 2010 for MySQL127

© 2010 EMS Database Management Solutions, Inc.

[Files]This section lists files for data export in the following format:<table key>=<filename><query key>=<filename>etc.

You can specify either full paths or relative paths, e.g.table1=table1.xlsorquery1=C:\Exported data\query1.docx

Note that you must specify the file extension properly to receive data in the requiredformat. Otherwise, extension .xls is taken by default.

[Databases]This section allows you to specify a database for each table and query in the followingformat:<table key>=<database name><query key>=<database name>

If you do not specify a database for a table or a query, the database name for this tableor query is taken from the DBName parameter value of the [Connection] section.

[Templates]This section specifies template files for each table or query. This template (*.exp) file isgenerated by the utility with the configuration (*.cfg) file and contains various exportsettings: export type, result filename, fields for export, number of records to export,specific Excel, RTF, HTML, or other options and more.

The section has the following format:<table key>=<template filename><query key>=<template filename>etc.

You can specify either full or relative file paths, e.g.table1=template1_xls.exporquery_clients=D:\Templates\template2_rtf.exp

If you do not specify any file name in the [Files] section, it is taken from the template. Ifyou specify neither file name, nortemplate for table or query, then the <table name>.xls filename is taken by default fortables, or <query key>.xls for queries.

You can set arbitrary table or query keys in the [Tables], [Queries], [Files],[Databases] and [Templates] sections, but they MUST NOT contain spaces and theyMUST be identical in different sections.

Page 128: Data Export 2010 for MySQL

Data Export 2010 for MySQL128

© 2010 EMS Database Management Solutions, Inc.

4.6 Using query parameters

Both the GUI Wizard and the console version of Data Export 2010 for MySQLsupport parameters in a query.

For example, you export data from a table named table1 and at Step 3 of the GUIversion of the utility you specify the following query, e.g. Query_0:

SELECT * FROM table1 WHERE field1 > :param0

Then you need to save the template file which will be used in the console version ofthe utility. To set the parameter value when using the console version , you need tospecify the following command in the command line (if you run the console version fromthe program installation directory and the template file is also located in thisdirectory):

MyExportC.exe TemplateFile -Query_0:param0=5where 5 is the query parameter value

If you export data from multiple queries, you need to specify the following command in thecommand line:

MyExportC.exe TemplateFile -Query_0:param0=5 -Query_1:param1=10 -Query_2:param2=15where 5, 10, 15 are the query parameter values

See also:

Working with console application

32 116

38 32

94 116

116

94

117

Page 129: Data Export 2010 for MySQL

Data Export 2010 for MySQL129

© 2010 EMS Database Management Solutions, Inc.

Credits

Technical Writers:

Cover Designer:

Semyon Slobodenyuk

Dmitry Doni

Tatyana Makurova

Team Coordinators:

Roman Tkachenko

Software Developers:

Alex Paclin

Alexey Butalov

Michael Kuzevanov

Alexey Saybel

Olga Ryabova

Translators:

Anna Shulk ina

Serge Fominikh

Alexander Chelyadin

Alexey Butalov