Revolving around the core of technology
Document ID: | 2060 |
---|---|
Subject: | Plugin for MySQL database |
Creation date: | 5/22/12 9:56 AM |
Last modified on: | 11/12/18 12:35 PM |
SELECT * INTO OUTFILE
commands against every table, which creates a local files containing a backup of the database.Field Definition
Friendly name: A name that identifies this backup entry. This name is used as part of the folder to store the backup on the server. Therefore, this name must conform to the rules used to specify file names. For example, you cannot have \ / : * ? " < > |
characters.SQL Server host: This MUST be localhost. You cannot backup a MySQL server running on a different machine. TCP/IP Port: Refers to the TCP/IP port where server is running. The default value is 3306. Login: A valid user in MySQL server that has permission to backup Password: User's password Database: Database name in MySQL server. Although you can backup any database, including mysql and test, you cannot use Syncrify to automatically restore a mysql database. See below to see what is an automatic restore Temp file path: This is the location where Syncrify creates a backup of the database on the local machine. Auto Restore Unintentional restores in a database can be dangerous. This checkbox provides a safeguard against such intentional restores. When this box is not checked, a restore will only cause the .BAK and .SQL files to get downloaded from the remote Syncrify server to client. An actual database restore won't occur. A DBA can then manually restore the database from the .BAK if needed.
When this box is checked, besides restoring the .BAK file, Syncrify will run execute commands in schema.sql and restoreDB.sql file, which does the following:When this box is not checked, Syncrify will restore necessary files to restore the database, but won't run the SQL statements, allowing more control to the administrator who can run SQL statements selectively. This is a useful option if you want to restore just one table rather than the entire database.
- Drops existing database
- Creates necessary tables, views, stored procedures and triggers
- Populates tables
Retain work files: Backing up MySQL Server is a two-step process. First, Syncrify runs a SELECT * INTO OUTFILE
command against MySQL Server. This creates a .BAK file on the client machine contain a backup. Syncrify then backs up this local file to the remote machine in the second step.
When this option is checked, Syncrify won't delete the .BAK file that is created in the first step. If you have enough hard-disk space to hold this temporary files, we recommend you leave this option checked.
Client to Server | This is the default backup direction. Syncrify create .BAK files, which are then transferred to the remote machine. |
---|---|
Server to Client | This is like a restore. Syncrify pulls the .BAK file from the server and if Auto Restore is checked, runs schema.sql and restoreDB.sql scripts against the database. |
Two-way sync | We discourage using two-way sync when using this plugin. Since a .BAK file is created on demand, Syncrify will always end-up pushing the local copy to the server. This can create unwanted results. |
Posted by James Arber on 6/10/12 7:15 AM
Do you have a helpful tip related to this document that you'd like to share with other users?