EnglishFrenchSpanish

Ad


OnWorks favicon

dbf2mysql - Online in the Cloud

Run dbf2mysql in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command dbf2mysql that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


dbf2mysql, mysql2dbf - convert between xBase and MySQL databases

SYNOPSIS


dbf2mysql [-v[v]] [-f] [-u|-l] [-n] [-o field[,field]] [-e conversion-file] [-s old-
name=new-name[,old-name=new-name]] [-i field[,field]] [-d database] [-t table] [-c[c]] [-p
primary] [-h host] [-F] [-q] [-r] [-x] [-P password] [-U user] dbf-file

mysql2dbf [-v[v]] [-u|-l] -d database -t table [-h host] [-q query] [-P password] [-U
user] dbf-file

DESCRIPTION


dbf2mysql takes an xBase file and sends queries to an MySQL server to insert it into an
MySQL table.

mysql2dbf dumps a MySQL table to a dbf file.

OPTIONS


-v Produce some status output.

-vv More verbose.

-vvv Even more verbose: produce a progress report.

-f Translate all field names in the xBase file to lowercase.

-u Translate all text in the xBase file to uppercase.

-l Translate all text in the xBase file to lowercase.

-n Allow NULL fields: 'NOT NULL' will be not added in table creation statement.

-o field[,field[,...]]
List fields to insert into MySQL database. Primary use is to ease import of
complex dbf files where we want only few fields. NOTE: -o is processed before
substitution (-s), so you have to use dbf field names here.

-e conversion-file
Specify file for CHAR fields conversion. File format is: 1st line: number of
characters to convert (number of lines). Further lines: <char_to_convert>
<char_after_conversion>.

-s old-name=new-name[,old-name=new-name[,...]]
Takes a list of field name/new field name pairs. Primary use is to avoid conflicts
between field names and MySQL reserved keywords. When the new field name is empty,
the field is skipped in both the CREATE clause and the INSERT clauses, i.e. it will
not be present in the MySQL table. For example:

-s ORDER=HORDER,REMARKS=,STAT1=STATUS1

-i field[,field[,...]]
List fields to be indexed. MySQL field names should be used here.

-d database
Select the database to insert into. Default is 'test'.

-t table
Select the table to insert into. Default is 'test'.

-c[c] Create table if one doesn't exist already. If the table already exists, drop it
and build a new one. The default is to insert all data into the named table. If
-cc is specified, no records will be inserted.

-p primary
Select the primary key. You have to give the exact field name.

-h host
Select the host to insert into. Untested.

-F Fixed length records. (By default CHAR is saved as VARCHAR.)

-q dbf2mysql: "Quick" mode. Inserts data via temporary file using 'LOAD DATA INFILE'
MySQL statement. This increased insertion speed on my PC 2-2.5 times. Also note
that during whole 'LOAD DATA' affected table is locked.

mysql2dbf: Specify custom query to use.

-r Trim trailing and leading whitespace from CHAR type fields data.

-x Start each table with _rec and _timestamp fields.

-P password
Specify password on the MySQL server.

-U user
Specify user on the MySQL server.

Use dbf2mysql online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    turkdevops
    turkdevops
    TurkDevOps a?k kaynak yaz?l?m
    geli?tirici topluluklar? DevTurks-Team
    Taraf?ndan desteklenmektedir..
    Features:https://github.com/turkdevopshttps://turkdevops.g...
    Download turkdevops
  • 2
    Wine
    Wine
    Wine is an Open Source implementation
    of the Windows API on top of X and Unix.
    Wine provides both a development toolkit
    for porting Windows sources to Unix and...
    Download Wine
  • 3
    LAME (Lame Aint an MP3 Encoder)
    LAME (Lame Aint an MP3 Encoder)
    LAME is an educational tool to be used
    for learning about MP3 encoding. The
    goal of the LAME project is to improve
    the psycho acoustics, quality and speed
    of MP...
    Download LAME (Lame Aint an MP3 Encoder)
  • 4
    wxPython
    wxPython
    A set of Python extension modules that
    wrap the cross-platform GUI classes from
    wxWidgets.. Audience: Developers. User
    interface: X Window System (X11), Win32 ...
    Download wxPython
  • 5
    packfilemanager
    packfilemanager
    This is the Total War pack file manager
    project, starting from version 1.7. A
    short introduction into Warscape
    modding: ...
    Download packfilemanager
  • 6
    IPerf2
    IPerf2
    A network traffic tool for measuring
    TCP and UDP performance with metrics
    around both throughput and latency. The
    goals include maintaining an active
    iperf cod...
    Download IPerf2
  • 7
    fre:ac - free audio converter
    fre:ac - free audio converter
    fre:ac is a free audio converter and CD
    ripper for various formats and encoders.
    It features MP3, MP4/M4A, WMA, Ogg
    Vorbis, FLAC, AAC, and Bonk format
    support, ...
    Download fre:ac - free audio converter
  • More »

Linux commands

Ad