EMS logo

Products Navigation

SQL Studio for MySQL

Our Partnership Status

Microsoft Certified Partner
Oracle Certified Partner
Embarcadero Technology Partner

EMS SQL Management Studio for MySQL

Product FAQs

About STUDIO

DB registration and connection

Object manipulation

Query

Report Designer

Data manipulation

Data analysis

BackUP/Restore

Template management

Scheduler

Log management

Localization

 
Q:
What is EMS SQL Management STUDIO for MySQL (STUDIO)?
 
A:
EMS SQL Management Studio is a complete solution for database administration and development. The STUDIO is an integrated suite of powerful database management tools united in one easy-to-use work environment. Developers will appreciate its ability to create/edit/drop any database objects and will find DB comparison, data export/import and test data generation tools extremely helpful. Database migration, BackUp and Restore tools will be of great help to DBAs. As will be the Scheduler that will automate a sizeable part of DBA's work.
 
 
Q:
The STUDIO embraces rich capabilities, but will I need them all? Is there a simpler product?
 
A:
This question naturally comes if you are new to database administration and development. It might not be immediately obvious why you would need so many different tools. We would like to point out that your experience will build up day in and day out, you will face new, more complicated tasks and you will need more tools to solve them. The STUDIO embraces ALL must-have tools for DBAs and developers. And it will be in line with your growing expertise! Besides, once you familiarize yourself with the STUDIO tools you'll be able to find the simplest, most suitable and reliable solutions to your tasks! We do realise that our product is used not only by experts, that is why we included plenty of Wizards that will make the job easy and enjoyable even for a newbie. The STUDIO interface is designed so that the component tools are called only when needed in order not to hinder your work. Our experience shows that the majority of our customers get used to our products really fast and we have never received any downgrade requests.
 
 
Q:
What do I need to start working with the STUDIO?
 
A:
In order to start working with the STUDIO you need to download the installation package here. Then run the installaton file on a MS Windows workstation. When the installation is finished, the program is ready to be used in the trial mode. You can evaluate the trial version for 30 days.This is the time for you to make a purchasing decision. You can purchase the STUDIO here. After the payment is complete your will receive your registration information by e-mail. On entering this information (Main Menu/Help/Register) your copy of the STUDIO will become a registered one.
 
 
Q:
Many utilities that are included in the STUDIO are also sold as stand-alone products. What are the advantages of purchasing them within the STUDIO?
 
A:
Indeed, in order to perform some simple task you can purchase a separate EMS utility or a few of them.Yet, if you purchase these utilities within the STUDIO, you receive additional functionalities. First of all, you'll be able to launch the STUDIO components from Task Scheduler. That is, you can set the order to run the tools in, set the parameters to be used, the time and/or time intervals for the task to be performed and go to play a bowling game:) The Task Scheduler will fulfill all your tasks, save the logs for the performed operations and will notify you by e-mail about the successfull/unsuccessful task completion. The Task Scheduler will help you to really automate the majority of your DB service tasks. Secondly, you'll be able to store all registered Databases in one repository. Thus, you will need to register your data source once and will be able to use it in all STUDIO tools. This will save your time and reduce an error chance to the minimum. The third equally important benefit is the pricing. Purchasing the tools within the STUDIO, you pay a lot less, compared to purchasing them as separate products. You will receive up to 40% off the original price!
 
 
Q:
How do I receive updates and upgrades of SQL Studio components?
 
A:
Basically, there are two upgrading options:
1) You should either download the complete Studio package anew and install it on the same workstation as your original version, which will be overwritten. All settings will be saved.
2) Or, you should update SQL Studio components through SQL Studio Direct service (Navigate/SQL Studio Direct main menu item). A pop-up window will tell you about available updates. Click Yes to download these updates (Internet connection is a must). The Refresh icon on SQL Studio Direct toolbar serves the same purpose. You can also set the interval for Automatic polling of the network in search of updates (see the corresponding icon).
The update procedure performed either way will not require any additional registration.
There is a third possibility for updating SQL Manager component only. You can download the Studio edition of the tool from the corresponding SQL Manager download page. You would then need to unpack the archive in the SQL Manager subfolder within SQL Studio installation directory (e.g. C:\Program Files\EMS\SQL Studio for MySQL\SQL Manager).
 
 
Q:
Can I work with a number of databases simultaneously?
 
A:
Yes, the STUDIO allows to work with an unlimited number of databases at the same time. You can also operate with any number of databases via SSH and HTTP tunneling. Once the database is registered at the database source repository correctly, you are ready to use it.
 
 
Q:
I use Windows OS, but my remote MySQL server operates on Linux OS. Will I be able to use the STUDIO to work with this server?
 
A:
Yes, that is possible. It doesn't matter what OS the MySQL Server is under, the STUDIO works only in the Windows environment.
 
 
Q:
Why does the STUDIO use a single registered database repository?
 
A:
The single registered database repository allows one database to be accessed with any STUDIO tools. If you earlier purchased our product suites (bundles) you had to enter the database information in every tool you used. That eventually led to massive time wasting and typing errors. Now the problem is solved in the STUDIO with the help of a single registered database repository.
 
 
Q:
What databases the STUDIO can work with?
 
A:
Using our products you can work with MySQL servers located through the named pipes or remotely on any platform (Linux, Unix, Windows, etc.). You can also connect to remote MySQL servers using SSH and HTTP tunneling.
 
 
Q:
What is HTTP tunneling?
 
A:
HTTP tunneling is a method that allows one to connect and transmit data between the program and a MySQL server through the HTTP/HTTPS protocols using the 80 port, which is used by a regular internet browser. This method is used to connect to the remote MySQL server of a hosting company when the direct connection is not available because of the security reasons. The HTTP tunnel works the following way: All outgoing queries and commands sent by the client's software are encoded and transmitted through the HTTP\HTTPS protocol using the 80 port to the special script that decodes the received data and sends is to processing MySQL server and sends the result back. This method requires the HTTP server (Apache) and PHP with MySQL to be installed on the remote server. Normally this software is provided by a hosting company that offers the Linux hosting solutions. Also you need to upload the special emsproxy.php script to your web-server to access it remotely (you can place it to the folder with your other PHP scripts). If your web-server complies with the requirements and the script is installed correctly, you'll see the message "EmsProxy v 1.31" (version number can be different) in your browser when opening the http://<yourwebservername>/emsproxy.php page. To register a remote database that will be accessed through the HTTP tunnel you have to enter the following parameters in the Database Registration Wizard of SQL Manager for MySQL:
The First step of the Wizard:
Host is a host where MySQL server is located in point of view HTTP server. Usually HTTP and MySQL server are on the same machine, and it is 'localhost'.
Port is a port of MySQL server on Remote Host, by default it is 3306.
User Name is a MySQL user name.
Password is password of the MySQL user.
Check "Use tunneling" and "HTTP tunneling".
The Second step of the Wizard:
URL is a address of emsproxy.php script (e.g. http://mywebserver /emsproxy.php).
 
 
Q:
What is SSH tunneling?
 
A:
SSH (Secure Shell Host) protocol is used to heighten the computer security when working with Unix systems in Internet. SSH uses several encryption algorithms of different reliability. The spread of the SSH is also connected with the fact that a number of Linux-like OS's (for example FreeBSD) include SSH server in their standard integration. To get more information about this issue, please, visit http://openssh.org. SSH tunneling feature of SQL Manager is a means for secure connection to MySQL servers when working over insecure connection channels. You can also use SSH tunnel to get access to the remote MySQL servers, when port 3306 is closed for external connections due to some reasons. The connection over SSH tunnel works in the following way. First a connection is established and authentication between SSH client built in SQL Manager and remote MySQL server is performed. Then all in and outgoing information between the program and MySQL server is transmitted through SSH server with the help of communication port (usually it is 22), and SSH server transfers this information directly to MySQL server. To register a database to which one connects through SSH tunnel, you should set the following parameters in Database Registration Wizard of SQL Manager for MySQL:
On the first step:
Host is a host where MySQL server is located in point of view SSH server. If SSH and MySQL server are on the same machine, it is equal to SSH Host, or may be 'localhost'.
Port is a port of MySQL server on Remote Host, by default it is 3306.
User Name is a MySQL user name.
Password is password of the MySQL user.
Please, note that MySQL host name should be set relatively to the SSH server in this case. For example, if both of MySQL and SSH servers are located on the same computer, you should specify localhost as Host name instead of server's external host name or IP address.
Please, do not forget to choose Use tunneling and SSH tunneling
On the second step:
SSH host name is a host where SSH server is activated.
SSH port is a port where SSH server is activated.
SSH user name is a user on Linux machine. (It is a Linux user. It is not a user of MySQL server.)
SSH password is a Linux user password.
 
 
Q:
I work behind a firewall (router). Can I use Studio to manage a remote MySQL server?
 
A:
If due to the security policy accepted in your corporate network or by your host provider you cannot connect to your MySQL server directly through TCP/IP (for example a firewall prevents this), you can use SSH or HTTP tunneling feature of SQL Manager to fulfill your task.
 
 
Q:
Why cannot I connect to the local MySQL Server?
 
A:
There are several reasons why you cannot connect to the local database. If during connection you get the error "Can't connect to MySQL server on 'localhost' (10061)", then probably MySQL server is installed incorrectly or the service (usually with the name mysql) is not running. To check if the service is launched, open Control Panel->Administrative Tools->Services and find service MySQL. If you cannot find this service, you should try to reinstall MySQL. In case you find it, run it with the Start button or use Start item in the context menu. If you get the error "Access denied for user 'root'@'localhost' (using password: YES)", then check if you enter the password for the root user correctly in case you change it during installation. If you installed MySQL with default values, you should use the user name root with the blank password and port 3306 to connect to the server.
(more info at: http://dev.mysql.com/doc/refman/5.1/en/can-not-connect-to-server.html)
 
 
Q:
Why cannot I connect to a remote MySQL server?
 
A:
There could be several possible reasons that prevent you from successful connection to remote database. If the error message says "Can't connect to MySQL server on ‘some host' (10061)" then probably you should check the correctness of port and host name you've entered and also if the remote server is run. It often happens that the port through which the connection is set with MySQL server (normally, it's 3306) is closed for the security reasons by local firewall, corporate firewall or remote server firewall. The remote server port can also be closed by ISP, or TCP/IP protocol support is disabled on MySQL server. Please check this with your system administrator or ISP. In order to avoid this limitation you can use SSH and HTTP tunnels (50, 55).
If the error message says “Access denied for user: root@somehost.somedomain” or "Host not allowed to connect to server", then the reason is that the user doesn't have permission to access the database.
 
 
Q:
I can't tune the connection to MySQL server by SSH. What values do I need to input to the fields on SSH tab of Database Registration dialog?
 
A:
To setup SSH connection correctly, input the following values to the corresponding fields:
On SSH page/tab:
SSH host name is a host where SSH server is activated.
SSH port is a port where SSH server is activated.
SSH user name is a user on Linux machine. (It is a Linux user. It is not a user of MySQL server.)
SSH password is a Linux user password.
On Connection properties/General page/tab:
Host is a host where MySQL server is located from the point of view of SSH server. If SSH and MySQL server are on the same machine, it is equal to SSH Host, or may be 'localhost'.
Port is a port of MySQL server on Remote Host, by default it is 3306.
User Name is a MySQL user name.
Password is a password of the MySQL user.
Please note that MySQL host name should be set relatively to the SSH server in this case. For example, if both MySQL and SSH servers are located on the same computer, you should specify localhost as Host name instead of server's external host name or IP address.
 
 

 

Q:
When I try to register a database, I get the following message: Access denied for user: myuser@myhost.mydomain. Why does it happen?
 
A:
MySQL server uses client's login ('myuser' in your case) and the name of the host which it tries to set the connection from ('myhost.mydomain' in your case) for the client authentication. In your case the reason is that your ‘myuser’ user from the ‘myhost.mydomain’ host doesn't have permissions to access your MySQL server. It's quite possible that you successfully connected to your database with the same login and password in your PHP scripts or with the help of phpMyAdmin, but in this case MySQL server recognizes you as the ‘myuser’ user from the ‘localhost’ host who has the necessary permissions and allows you the access.
To solve this problem you should grant the necessary permissions to user myuser@ myhost.mydomain. You can do this with the help of phpMyAdmin or with sql commands:
/*!50003 CREATE USER ‘myuser’@ ‘myhost.mydomain’*/;
GRANT ALL PRIVILEGES ON *.* TO ‘myuser’@ ‘myhost.mydomain’ IDENTIFIED BY 'user_password';
Or, you can apply to your system administrator.
(http://dev.mysql.com/doc/refman/5.5/en/access-denied.html)  
 
 
Q:
I'm trying to connect to a remote MySQL host, but I receive only the "Host not allowed to connect to server" message. What can the reason be?
 
A:
This error occurs because you don't have a permission to connect to remote MySQL server from your host. Please contact your database administrator or, if you have access to MySQL server with grant privilege, you can use the GRANT statement to add a new user. For example, the following command will give full access from your host to the user:
/*!50003 CREATE USER 'user'@'user_host'*/;
GRANT ALL PRIVILEGES ON *.* TO 'user'@'user_host' IDENTIFIED BY ' user_password ';
(http://dev.mysql.com/doc/refman/5.5/en/access-denied.html)
 
 
Q:
I receive the following error message:“Server is gone away…..”.What am I doing wrong?
 
A:
The most probable reason of the problem is the connection timeout. In this case you need to increase the value of the wait_timeout variable when launching mysqld. The error also occurs in the following cases: - Somebody (your database administrator) used the KILL sql or mysqladmin kill command to interrupt your query thread. - You are trying to run a query after closing the connection with the server. - You are trying to send too large a query to the server, e.g. you are working with very big BLOB fields or the INSERT command tries to insert too many records. You can increase the maximum allowed packet size by setting the max_allowed_packet variable whose default value is 1Mb. If this error occurs during the data import or copy database process, you can lower the value of the "Record count per each data block" option.
 
 
Q:
I receive an error message no. 1251: "Client does not support authentication ...". What do I need to do?
 
A:
It looks as if our program is trying to use some old version of libmysql.dll client library. Please use the libmysql.dll file from the Studio installation package only. In order to solve the problem you need to reinstall the Studio (all your settings will be saved).
 
 
Q:
I’ve registered the DB, but on trying to open it the “dynamic library libmysql.dll not found” message appears.
 
A:
You receive this error message because the program can not find the libmysql.dll client library that is essential to work with MySQL server. The libmysql.dll file is included in the Studio installation package. You might have deleted this file accidentally or moved the exe file to another folder. In order to solve the problem you need to reinstall the Studio (all your settings will be saved) or copy the libmysql.dll file from the installation folder to the folder with the exe file.
 
 
Q:
Every time I try to connect to a MySQL database on remote Linux server, I get the 'Lost connection to MySQL server during query' error. What's wrong?
 
A:
There are two most common reasons of this problem. - If you use SSH tunnel to connect to your database, then most likely you indicated wrong MySQL host. Upon establishing a connection with the SSH server the connection attempt to MySQL server initiated by SSH server fails. Please check the MySQL host name. Remember that it should be specified relative to SSH host and if these are installed on the same workstation then you should use "localhost" as MySQL host name. - This error can occur if your Linux glibc requires greater than 128K of stack size to resolve a hostname. It happens primarily on RedHat 8.0 system with MySQL version lower than 4.0.10, but also can happen with another configuration. To solve such issue, add/edit the following line to the [mysqld] section of MySQL configuration file: set-variable = thread_stack=192k # value must be 192K or higher.
 
 
Q:
I'm trying to register a MySQL database located on a web-server, but I receive an error. I can access this database from my PHP scripts and the same login and password work perfectly. How can I receive access to my website database with the help of the STUDIO?
 
A:
The most probable reason of the problem is one of the following: port 3306 used by MySQL could be blocked by Firewall installed in your network or by your hosting provider; or the TCP protocol is disabled on the remote MySQL server; or your user and host do not have the permission to connect to the server.
 
 
Q:
Which database objects will be accessible through the STUDIO?
 
A:
You can work with any objects in MySQL databases such as tables, fields, indices, views, stored procedures and functions, triggers, UDFs and events.
 
 
Q:
I have over a million records in the table, yet the data grid displays only 1,000 of them. What is the problem?
 
A:
Please select the option "Select all records from a table" on the Grid tab of Options/Environment Options dialog. Please, be aware that selecting all records from the table may require considerable time.
 
 
Q:
How can I speed up my work with large tables?
 
A:
For your convenience and to speed up your work Data Grid allows to customise many data display parameters. Here are the most important of them (accessible through "Options/Environment Options"): At the Grid page:
- Limit options in table and view editors. The “Select all records of a table” option will enable you to see all table records without extra references to the server, yet in case of large tables or low speed connection channel the data may be fetched with huge delays and the incoming traffic might grow considerably. This mode is recommended when working with local databases or in a private network. The “Select only” mode restricts the maximum number of records returned after the query. Man can't process a massive amount of information at once. Hence, we came up with this mode. To request and display the next portion of data use the Next button in the Data Grid toolbar. This mode speeds up table data viewing considerably, prevents hanging and connection timeout. It is recommended to work with large tables, in case of low speed connection channels and when the traffic volume is of importance. This is a default mode. With this mode on the “Use SQL sorting” and “Use SQL filter” options come really helpful. At the "Grid/Data Options" tab:
- Default Grid Mode. This option defines whether the requested rows will be loaded in the Grid all at once ("Load all rows"), or in parts ("Load visible rows") as the user scrolls down table data. The first mode increases the query opening time but speeds up scrolling. In the second mode the query opens very fast but there might be delays when navigating the grid.
- Use SQL sorting in data view. With this option enabled, when the user sets data sorting a new request is sent to the server, and the result is shown anew in the Grid. This option is very helpful with the “Select only” mode enabled, but it increases the traffic. When this option is disabled, the sorting is made on the client computer without any references to the server but only loaded data are sorted. That is, if you set "Select only 1000 records", then only these records will be sorted.
- Use SQL filer in data view. With this option enabled, the data will be sorted on the server to which a new request is sent, and the result will be shown anew in the Grid.
This option is also helpful when the “Select only” mode is on, but it insreases the traffic. When this option is disabled, the sorting is made on the client computer without any references to the server but only loaded data are sorted. That is, if you set "Select only 1000 records", then only these records will be sorted.

We recommend to set the following option values to achieve maximum efficiency when working with large tables:
- Select only – On
- Load visible rows – On
- Use SQL sorting – On
- Use SQL filter – On
 
 
Q:
What can I do with database objects?
 
A:
You can create new objects, drop and edit the existing ones. You can also copy the objects from/to databases located on one or several hosts.
 
 
Q:
I have tried to create a foreign key for InnoDB table, but received the "Can‘t create table ... (error: 150)" error. What‘s wrong?
 
A:
That means a foreign key definition would be formed incorrectly for the altered table. For instance, referenced column doesn’t appear as the first column in some index, both in parent and child tables, or the types of corresponding fields in parent and child tables do not coincide.
You can use SHOW ENGINE INNODB STATUS to display a detailed explanation of the most recent InnoDB foreign key error in the server.
 
 
Q:
When creating a table like `TestTable` it will get stored as `testtable`. This is wrong!
 
A:
It seems that the value of the “lower_case_table_names” variable is 1. Please visit http://dev.mysql.com/doc/refman/5.5/en/identifier-case-sensitivity.html for additional information about this variable.
 
 
Q:
How can I customize data formats in a grid?
 
A:
You can customize all display formats: integer, float, date, time and date/time in the Environment Options window. You can do it from the Main Menu Options/Environment Options/Grid/Color&Formats.
 
 
Q:
My database uses a "Greek" codepage. In data grid view all information is displayed at "??????". What is wrong?
 
A:
Data is often displayed in such way, if the actual data encoding does not match the encoding of the database fields. For example, Greek characters are stored in the Latin1 encoded field. If so, set the 'Windows charset' value in the 'Client charset' field of the 'Database Registration Info' dialogue. If in this case data is displayed correctly, this mode can be used as a temporary solution. However, you should remember that this is the incorrect database configuration, therefore the server-side comparisons and data sorting will work incorrectly. We recommend you to contact our technical support team in this case.
 
 
Q:
I can‘t modify DDL. Why?
 
A:
The ‘DDL‘ tabs of the Table Editor and UDF Editor are read-only. They display the SQL text of the operations you carry over the table on the tabs ‘Fields‘, ‘Indices‘, etc, or over the UDF. To modify this text you can copy it to the clipboard and modify it using SQL Script Editor.
 
 
Q:
I have a table with ~ 1000 records only and a large number of fields. Opening this table on Data tab takes too much time.
 
A:
You probably have the "Autofit column widths" option enabled in the Grid tab of Options/Environment Options dialog. Try to disable it.
 
 
Q:
I'm new to MySQL and can hardly compose the SQL-statements by hand. Does the STUDIO have a visual query builder like MS ACCESS?
 
A:
Yes, the STUDIO has a powerful visual query builder that allows a newbie build a complex queries while drasticly save time for advanced users. All you need to do is to specify the tables that will be used in the query, their relations and the data you want to get. The visual query builder will create a text of the query for you. You will only need to run it. You can see the result of your query and make corrections if nesessary. The changes can be made from the visual builder or from the text editor. As changes made in visual query builder, the text editor will display them too and vice versa.
 
 
Q:
Can I use the visual query builder in STUDIO to build the complex queries with unions and subqueries?
 
A:
Yes, the visual query builder can build complex queries including UNION operator and subqueries.
 
 
Q:
Can I save a created query for future use?
 
A:
Yes, sure. The STUDIO can save the needed query to following ways:
1. ALL executed queries are automatically saved in the History. You can view the History and execute or edit any query you need.
2. You can add the frequently used queries to the list of favorite queries.
3. You can save any query as an SQL-script into file on your hard drive and load it when needed or execute it with a command line SQL script tool.
4. You can save your query with the chart. In this case after the query is loaded into STUDIO, the chart will be displayed the way it has been created.
5. the STUDIO allows to save the query chart as a bitmap image.
 
 
Q:
Can I run the query from the command line?
 
A:
Yes, the STUDIO has a SQL Script tool for that. It can also run a script from a file saved on your hard drive. This feature allows you to create a queries and schedule their execution with STUDIO Task Sheduler. The Task Scheduler allows to run your query when you need it and reports you when done.
 
 
Q:
Can I save a query result into the CVS- or XLS-file?
 
A:
Yes, sure. The STUDIO has a powerful tool for exporting your data (including the query results). STUDIO can export info MS Access, MS Word, CVS, XLS, HTML, RTF, DBF, XML and others. To ease the exporting procedure the STUDIO has the Export Data Wizard.
 
 
Q:
How can I create a report?
 
A:
To create a report you can use the Create Report Wizard ("Create-->Report") or Report Designer Tool ("Tools/Report Designer"). To create a simple report based on the query you need to choose "Master Data band" on the second step of the wizard, double-click on it or click the Edit button and specify the query for your report. After that you need to tune the non-nesessary options in other steps of the wizard and press Finish.
 
 
Q:
How can I create a report based on the query?
 
A:
To create a report based no the query you can use the Create Report Wizard. You need to choose the Create-->Report, then choose Master Data band on the second step of the wizard, doubleclick on it or click the Edit button and specify the query for your report. After that you need to tune the non-nesessary options in other steps of the wizard and press Finish
 
 
Q:
Can I save my report in HTML, EXCEL or WORD?
 
A:
Yes, open the report by double-clicking on it in the DB Explorer window and choose "Save report as" in the navbar or toolbar and specify the format you want to save to in the "Save as type" field.
 
 
Q:
I am trying to create a report in Report Designer, I have added Master Data Band but can't get access to the table data: 'Band data source' list is empty.
 
A:
To get data source in a report you need to add a dialog form to the report (menu Edit/Add dialog form of Report Designer), then place database and query components from the left designer panel on it and set connection and query properties. Then the query appears in data source lists.
 
 
Q:
What is the difference between the Export/Import functions in STUDIO and SQL Manager for MySQL?
 
A:
The Export/Import tools in STUDIO includes additional features, which are not available in SQL Manager for MySQL.
1. Export/Import data from/to several tables at once.
2. Export/import data from/to tables selected from different databases on one host.
3. Command line utility to automatically export/import data using the STUDIO scheduler.
4. A single registered database repository.
 
 
Q:
I need to import data from CSV file. How can I do it with the help of STUDIO?
 
A:
You can use Import Data Wizard for this purpose. It will help you to set all the necessary import parameters. Moreover, you can save these settings as a template and use them in the future. Besides CSV file you can also import from MS Excel, MS Access, DBF, XML and TXT files.
 
 
Q:
I’m trying to export table, but LONGTEXT fields are not exported.
 
A:
Fields of TEXT, LONGTEXT types are not exported by default. You should select these fields manually on the Fields tab.
 
 
Q:
How do I change the default directory where exported data will be saved?
 
A:
Follow the steps below to change directory.
Right click on the database you need in DB Explorer and click on "Database Registration Info..." item in popup menu (you can also find this item in main menu "Database"). The Database Properties form will be opened.
Click on the Directories tab.
In the "Default Directory for Export Data" section you can choose the default directory for export file.
 
 
Q:
For which purpose are console versions of the utilities for manipulating data included in STUDIO?
 
A:
The main function of the console versions of STUDIO tools is execution of some service operations with the database without a user involved. All console tools support configurative files (templates) that are created in the corresponding GUI versions. The template file contains all information necessary for working with the tool's console version. With the help of console version and a template file you can create a task in the Task Planer and set the necessary time and/or period for execution. Of course, you can use the console versions of STUDIO tools in your own automatic applications.
 
 
Q:
I have a database in MS Access. I want to migrate to the remote MySQL server. How can I do it with the help of STUDIO?
 
A:
You can use Data Pump for MySQL tool for this purpose. To launch Data Pump from STUDIO, please, choose Data Manipulation tab and click on Data Pump for MySQL, or choose Start->Programs->EMS->SQL Studio for MySQL->Data Pump for MySQL->Data Pump for MySQL.
We recommend that you use Microsoft Jet 4.0 OLE DB Provider to connect to your MS Access database.
 
 
Q:
I have a ODBC data source. Can I migrate from it to MySQL?
 
A:
ODBC (Open DataBase Connectivity) is an open standard interface to access databases developed by Microsoft. The most database management systems have their own ODBC driver or the one developed by other software producers.
To migrate from ODBC data source you need to use Data Pump for MySQL tool. You can start Data Pump from STUDIO by choosing Data Manipulation tab and then clicking on Data Pump for MySQL. Or go to Start->Programs->EMS->SQL Studio for MySQL->Data Pump for MySQL->Data Pump for MySQL.
When working with the utility you should use OLE DB Provider for ODBC Drivers to connect to your ODBC data source.
 
 
Q:
From which databases can I migrate to MySQL with the help of STUDIO?
 
A:
With the help of Data Pump for MySQL you can migrate from any databases to which you can connect over OLE DB Provider (for example SQL Server, Oracle, MS Access, DB2, etc.) and ODBC Driver (MySQL, PostgreSQL, Interbase, Firebird, dbase files, etc.)
 
 
Q:
I am working on the application. The database structure is already created. How can STUDIO help me to fill the database with test data?
 
A:
STUDIO has a powerful instrument for generating test data - Data Generator. The Wizard will help you to set such parameters as the amount of lines to be generated, range value for each field, the quantity of lines with NULL value and others. Data Generator performs various algorithms including random or increment data generation as well as the one according to the given list of values and many others. And of course, it is possible to save all these settings as a template for future use.
 
 
Q:
My database contains many relations between tables and other restrictions. Will STUDIO consider this while generating test data?
 
A:
Yes, of course. When generating test data, STUDIO takes into consideration all relations and restrictions that already exist in your database.
 
 
Q:
I'm performing Copy Database, everything goes all right, but when copying data for one of the tables the error appears “MySQL server has gone away”. This table differs from others as having a greate number of BLOB fields. Why does this error occur and how to avoid it?
 
A:
Probably, you try to send to the server the INSERT command with too many values and this causes such error. To solve this problem, you can reduce the value of the option “Record count per each data block” or increase the acceptable ammount of packages by setting the value max_allowed_packet to the variable whose value is 1Mb by default.
 
 
Q:
I need to find the differences in the metadata of two databases and then synchronise them. How can STUDIO help me with this task?
 
A:
There is a Database Comparer (DB Comparer) tool in STUDIO that can be used for this purpose. Its interface is simple and user-friendly, but the results of its work are quite impressive! You need only to choose two databases, whose metadata you would like to compare and set some additional parameters, such as database objects to compare, direction of synchronization and others. The result of DB Comparer's work will be a list of differences in the metadata of these two databases and a script, with the help of which you can synchronize the databases. Besides, you can synchronize each difference separately, using only the needed changes in the required order. Do you remember how much time you spent searching for the single field added to the table two months ago? :)
 
 
Q:
I need to find the differences in the data between the existing database and its yesterday's backup. What shall I do?
 
A:
You shoulld start Data Comparer Wizard and specify the existing working database as a source database. Then specify database of the yesterday's backup as a target database (you should first restore it on any available MySQL server). Now choose data in which tables you would like to compare and follow the other steps of the wizard. Mind, that Data Comparer allows comparing data in tables with non-identical metadata. After the comparison is complete you will see the list of differences between your databases and will be asked if you would like to synchronize data from source to target or from target to source. You can save SQL script that performs synchronization in a separate file and run it later with the help of SQL Script tool (probably using the STUDIO Task Planer).
 
 
Q:
Can I synchronize metadata and data between different MySQL versions?
 
A:
You can use DB Comparer for MySQL tool to synchronize the structure of your databases.
To launch DB Comparer from STUDIO, please, choose Data Analysis tab and click on DB Comparer for MySQL, or go to Start->Programs->EMS->SQL Studio for MySQL-> DB Comparer for MySQL-> DB Comparer for MySQL.
To synchronize the data, you can use Data Comparer for MySQL tool.
To launch Data Comparer from STUDIO, choose Data Analysis tab and click on Data Comparer for MySQL, or go to Start->Programs->EMS->SQL Studio for MySQL-> Data Comparer for MySQL-> Data Comparer for MySQL.
 
 
Q:
Can I start the synchronization of metadata or data from the command line?
 
A:
Yes, for this purpose there are console versions of our utilities - DB Comparer for MySQL Console Application and Data Comparer for MySQL Console Application. All console tools support configuration files (templates) that are created in GUI versions of the programs. The template file contains all the infomation necessary for working with the console version of the tool. With the help of console version and the template file you can easily perform synchronization from a command line without setting a greate number of parameters manually.
 
 
Q:
Can STUDIO synchronize MySQL database with PostgreSQL database?
 
A:
This possibility is not supported by our utilities as they allow synchronizing data and metadata only between one server type, that is between MySQL and MySQL.
 
 
Q:
What BackUp capabilities does STUDIO provide?
 
A:
STUDIO supports several methods of creating database backups.
1) Using Backup Tables Service. This method can be used for creating backups of MyISAM tables. It is characterized by high speed and reliability. When creating a backup in this way, MyISAM tables chosen by a user are blocked (LOCK TABLES SQL command) and then the files, where structure (.frm) and data (.MYD) are physically kept, are copied according to the chosen path (BACKUP TABLES command). The last can be either a local directory on the server or a shared folder in the network. This path is defined from the server side where MySQL is installed. To call Backup Tables Service, please, open Database Management tab in STUDIO and choose Backup Tables. To call this service from SQL Manager for MySQL open Services/Backup Tables. In order to restore tables from backups created by this method, please, use Restore Tables Service that restores MyISAM tables (RESTORE TABLES SQL command) previously saved by Backup Tables Service. Restore Tables Service does not overwrite the existing tables.
2) Using DB Extract for MySQL or Extract Database Wizard of SQL Manager for MySQL. These tools create backups of databases or user-defined objects in a form of SQL script. The generated script can contain SQL Utility statements, Data Definition statements and Insert Data commands. The main advantage of creating backups with DB Extract for MySQL is the possibility of saving database structure and data as a whole as well as partially. The weak point of this method is much time and traffic that are required for creating backups of large databases. To call DB Extract open Data Analysis tab in STUDIO and choose DB Extract for MySQL. In order to call Extract Database Wizard, please, open SQL Manager for MySQL and choose Tools/Extract Database. To restore a database from a script, created in this way, you can just execute this script on MySQL server. You can use SQL Script for MySQL or SQL Script tool in SQL Manager for MySQL.
3) Using Data Export for MySQL or Data Export Wizard. This method can be used for creating backups of data from any table type. It is useful when you want to save only data without the structure. We recommend that you use CSV format to create data backups. To call Data Export utility, please, open Data Manipulation tab in STUDIO and choose Data Export for MySQL. In order to call Data Export Wizard from SQL Manager for MySQL, open your table on Data tab and choose Export Data. To restore data from created in this way file you can use Data Import for MySQL or Data Import Wizard of SQL Manager for MySQL. You can learn about the differences between Data Import for MySQL and Data Import Wizard of SQL Manager for MySQL here
4) Using Save Data Wizard of SQL Manager for MySQL. It is almost the same as method 3. The only difference is that data are saved in the directory on the server or in the shared folder in the local network with the help of SELECT INTO … OUTFILE SQL command. The data are saved in CSV format, but the speed of creating backups and their restoring is much higher then in the case of using Data Export. However, this method does not allow saving files in any client folder. To call Save Data Wizard from SQL Manager for MySQL, please, open your table on Data tab and choose "Save Data to File on Server". You can easily restore data using Load Data Wizard.
 
 
Q:
What database objects are saved in the backup file?
 
A:
For the chosen users of MyISAM tables Backup Tables Service copies the databases where the structure (.frm) and data (.MYD) are physically kept. It does this according to the chosen path that can be either a local directory on the server or a shared folder in the network.
 
 
Q:
Is it possible to restore the backup on one server while it was created on another one?
 
A:
1) You can restore a backup file, created by Backup Tables Service on the server if its version (major and minor part) coinsides with the server version where this backup was done. In other cases some problems may appear due to the differences in MyISAM file formats in different MySQL server versions.
2) You can restore a backup file created by DB Extract for MySQL or with the help of Extract Database Wizard of SQL Manager for MySQL on any server that has the same or higher version than the one where this backup was created.
3) You can restore the data saved with the help of Data Export for MySQL or Save Data Wizard of SQL Manager for MySQL to a table of any MySQL server version.
 
 
Q:
Where can the backup file be located?
 
A:
A backup file created by Backup Tables Service can be found in the local directory on the server or in the shared folder in the network.
 
 
Q:
What is the difference between Extract and BackUp functions in STUDIO?
 
A:
Backup Tables Service can be used only for creating backups of MyISAM tables. When creating a backup in this way, MyISAM tables chosen by a user are blocked (LOCK TABLES SQL command) and then the files, where structure (.frm) and data (.MYD) are physically kept, are copied according to the chosen path (BACKUP TABLES command). The last can be either a local directory on the server or a shared folder in the network. This path is defined from the server side where MySQL is installed. Extract Database Wizard of SQL Manager for MySQL or DB Extract for MySQL creates backups of databases or user-defined objects in a form of SQL script. The generated script can contain SQL Utility statements, Data Definition statements and Insert Data commands. Thus, Backup Tables Service uses MySQL server possibilities to create backups of only structure and data of MyISAM tables. This service is characterized by high speed and reliability, but it cannot place backup files in any client folder. This method can be used for creating backups of a whole database, that contain only MyISAM tables and no other objects, or of database parts (only MyISAM tables). The main advantage of creating backups with DB Extract for MySQL is the possibility of saving database structure and data as a whole as well as partially. The weak point of this method is much time and traffic that are required for creating backups of large databases.
 
 
Q:
What are the templates used for example in export/import functions? What are they for?
 
A:
Templates in STUDIO are intended for storage of the parameters necessary for running STUDIO tools. With the templates you will be able to repeatedly perform one and the same operation using STUDIO tool without need to enter each time 10-20 wizard parameters. The parameters stored in a template can be easily modified or you can create a new template based on the existing one.
 
 
Q:
Where are the STUDIO templates located?
 
A:
Template is a file that can store necessary parameters in certain format. Template files can be located anywhere in your PC if only you remember their location :) To simplify the task of template storage and search in STUDIO there is function Template Manager. The Manager allows you to register the necessary templates in STUDIO and not to worry anymore about the place where you saved them to. When you create a new template in STUDIO the Template Manager automatically remembers its location on the disk. All the registered templates are grouped by the tools they are intended for and will be at your disposal at any time. To run a tool with the selected template you will just need to double-click the template.
 
 
Q:
When I delete a template from the list in STUDIO will it be deleted from the disk?
 
A:
The Template Manager allows you to perform both operations: you can either delete a template from the registered template list only, or delete it also from the computer disk.
 
 
Q:
How can I create a new template for the Import?
 
A:
To create a template for the Import tool you should run the Import tool (Main Menu/Run/Data Import). Then you will need to fill in all the necessary import parameters using the Next button. A the last wizard step you should indicate where and under what name you would like to save the newly created template using button Tools/Save Template.
 
 
Q:
I need to perform certain functions on database management (export from one database, import of those data to another one, backup of both databases) outside business hours (at night). Does STUDIO provide any solution for this?
 
A:
Yes, sure. The STUDIO Scheduler is intended exactly for such situations. The Scheduler can run for execution the tasks previously created by you. You can set the time and periodicity for the task execution. Each Task can include unlimited number of Steps (elementary operations). A Task must include at least one step. In your case you should perform the following: 1. Create new Task 2. Create 4 steps in the Task (Export, Import, BackUp, BackUp). When creating these steps you will need to indicate in what template files are the necessary tool parameters saved. 3. Create Scheduled Task in the Scheduler that will use the Task you've just created (1).
 
 
Q:
How do I configure a task so that I receive an e-mail at the indicated address in case of the task failure?
 
A:
In the Task editor there is a tab Alerts. By switching to this Tab you will be able to indicate the most suitable notification method to be aware both of successful task execution and of the task failure. The current version of STUDIO support the following notification types: NetSend, System App Log (WIN), e-mail.
 
 
Q:
Can the task process be changed depending on the results of the task steps?
 
A:
Yes. When creating/editing each Task Step you can define which step should go next. Moreover, for each of the three processed events (successful step termination, erroneous step termination, step termination by time-out) you can indicate a separate variant of next Task operations.
 
 
Q:
How can I view the information on the performed tasks?
 
A:
All the information on the Task execution is fixed in the log. You can find there not only the information on the Task, but also on the Steps it includes. Moreover, you can view the log file of the attachment excuted at a certain step. It is very convenient while analyzing the reasons of the Task/Step failure. The powerful log filters will allow you to display only selected records.
 
 
Q:
What will happen if during the task execution the application run cannot terminate (critical error, does not respond)? Will the task execution stop?
 
A:
To solve such conflicts in every Task Step you can define its time-out. If a Step is being executed longer than it's defined in the time-out, the Step will terminate with the "by time-out" event, and the Task execution goes on according to the algorithm you set.
 
 
Q:
What do I need to work with the Task Scheduler?
 
A:
To work with the Task Scheduler you need to run the STUDIO Agent (a shortcut in the task bar). And also your computer should be running during all the time when the tasks will be launched.
 
 
Q:
What will happen if after running the computer the Task Scheduler will find the tasks that schould have been executed in the past, but it did not happen?
 
A:
Those tasks won't be performed.
 
 
Q:
It is important for me to get the information from log files of applications executed by the Task Scheduler. Does STUDIO save these log files?
 
A:
Yes. STUDIO has a convenient tool to work with log files. While creating a Step in the Task you can specify the location of the log file of application to be executed. When choosing the tools from STUDIO the location of the log file is filled automatically. Log files of the performed steps are saved in the internal STUDIO database and are availbale in the Navigation/Logs menu.
 
 
Q:
The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen?
 
A:
If a utility doesn't have a log file and only types information on the screen (in the text mode), then STUDIO can save these data as a log. To do this, please, check the box near "Save screen to log" when creating a task.
 
 
Q:
How long are log files kept in STUDIO?
 
A:
Log files are kept in STUDIO during an unlimited period. You can delete the unnecessary log files manually in STUDIO (Logs tab).
 
 
Q:
What interface localizatons are available in STUDIO?
 
A:
In the current version STUDIO interface supports the following localizations: English, German, French and Russian.