~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to man/mysqlimport.1

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'\" t
 
2
.\"     Title: \fBmysqlimport\fR
 
3
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
 
4
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
 
5
.\"      Date: 11/15/2013
 
6
.\"    Manual: MySQL Database System
 
7
.\"    Source: MySQL 5.6
 
8
.\"  Language: English
 
9
.\"
 
10
.TH "\FBMYSQLIMPORT\FR" "1" "11/15/2013" "MySQL 5\&.6" "MySQL Database System"
 
11
.\" -----------------------------------------------------------------
 
12
.\" * Define some portability stuff
 
13
.\" -----------------------------------------------------------------
 
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
15
.\" http://bugs.debian.org/507673
 
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
 
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
18
.ie \n(.g .ds Aq \(aq
 
19
.el       .ds Aq '
 
20
.\" -----------------------------------------------------------------
 
21
.\" * set default formatting
 
22
.\" -----------------------------------------------------------------
 
23
.\" disable hyphenation
 
24
.nh
 
25
.\" disable justification (adjust text to left margin only)
 
26
.ad l
 
27
.\" -----------------------------------------------------------------
 
28
.\" * MAIN CONTENT STARTS HERE *
 
29
.\" -----------------------------------------------------------------
 
30
.\" mysqlimport
 
31
.\" importing: data
 
32
.\" data: importing
 
33
.\" files: text
 
34
.\" text files: importing
 
35
.SH "NAME"
 
36
mysqlimport \- a data import program
 
37
.SH "SYNOPSIS"
 
38
.HP \w'\fBmysqlimport\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIdb_name\fR\fR\fB\ \fR\fB\fItextfile1\fR\fR\fB\ \&.\&.\&.\fR\ 'u
 
39
\fBmysqlimport [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIdb_name\fR\fR\fB \fR\fB\fItextfile1\fR\fR\fB \&.\&.\&.\fR
 
40
.SH "DESCRIPTION"
 
41
.PP
 
42
The
 
43
\fBmysqlimport\fR
 
44
client provides a command\-line interface to the
 
45
LOAD DATA INFILE
 
46
SQL statement\&. Most options to
 
47
\fBmysqlimport\fR
 
48
correspond directly to clauses of
 
49
LOAD DATA INFILE
 
50
syntax\&. See
 
51
Section\ \&13.2.6, \(lqLOAD DATA INFILE Syntax\(rq\&.
 
52
.PP
 
53
Invoke
 
54
\fBmysqlimport\fR
 
55
like this:
 
56
.sp
 
57
.if n \{\
 
58
.RS 4
 
59
.\}
 
60
.nf
 
61
shell> \fBmysqlimport [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIdb_name\fR\fR\fB \fR\fB\fItextfile1\fR\fR\fB [\fR\fB\fItextfile2\fR\fR\fB \&.\&.\&.]\fR
 
62
.fi
 
63
.if n \{\
 
64
.RE
 
65
.\}
 
66
.PP
 
67
For each text file named on the command line,
 
68
\fBmysqlimport\fR
 
69
strips any extension from the file name and uses the result to determine the name of the table into which to import the file\*(Aqs contents\&. For example, files named
 
70
patient\&.txt,
 
71
patient\&.text, and
 
72
patient
 
73
all would be imported into a table named
 
74
patient\&.
 
75
.PP
 
76
\fBmysqlimport\fR
 
77
supports the following options, which can be specified on the command line or in the
 
78
[mysqlimport]
 
79
and
 
80
[client]
 
81
groups of an option file\&.
 
82
\fBmysqlimport\fR
 
83
also supports the options for processing option files described at
 
84
Section\ \&4.2.3.4, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
 
85
.sp
 
86
.RS 4
 
87
.ie n \{\
 
88
\h'-04'\(bu\h'+03'\c
 
89
.\}
 
90
.el \{\
 
91
.sp -1
 
92
.IP \(bu 2.3
 
93
.\}
 
94
.\" mysqlimport: help option.\" help option: mysqlimport\fB\-\-help\fR,
 
95
\fB\-?\fR
 
96
.sp
 
97
Display a help message and exit\&.
 
98
.RE
 
99
.sp
 
100
.RS 4
 
101
.ie n \{\
 
102
\h'-04'\(bu\h'+03'\c
 
103
.\}
 
104
.el \{\
 
105
.sp -1
 
106
.IP \(bu 2.3
 
107
.\}
 
108
.\" mysqlimport: bind-address option.\" bind-address option: mysqlimport\fB\-\-bind\-address=\fR\fB\fIip_address\fR\fR
 
109
.sp
 
110
On a computer having multiple network interfaces, this option can be used to select which interface is employed when connecting to the MySQL server\&.
 
111
.sp
 
112
This option is supported beginning with MySQL 5\&.6\&.1\&.
 
113
.RE
 
114
.sp
 
115
.RS 4
 
116
.ie n \{\
 
117
\h'-04'\(bu\h'+03'\c
 
118
.\}
 
119
.el \{\
 
120
.sp -1
 
121
.IP \(bu 2.3
 
122
.\}
 
123
.\" mysqlimport: character-sets-dir option.\" character-sets-dir option: mysqlimport\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
 
124
.sp
 
125
The directory where character sets are installed\&. See
 
126
Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
 
127
.RE
 
128
.sp
 
129
.RS 4
 
130
.ie n \{\
 
131
\h'-04'\(bu\h'+03'\c
 
132
.\}
 
133
.el \{\
 
134
.sp -1
 
135
.IP \(bu 2.3
 
136
.\}
 
137
.\" mysqlimport: columns option.\" columns option: mysqlimport\fB\-\-columns=\fR\fB\fIcolumn_list\fR\fR,
 
138
\fB\-c \fR\fB\fIcolumn_list\fR\fR
 
139
.sp
 
140
This option takes a comma\-separated list of column names as its value\&. The order of the column names indicates how to match data file columns with table columns\&.
 
141
.RE
 
142
.sp
 
143
.RS 4
 
144
.ie n \{\
 
145
\h'-04'\(bu\h'+03'\c
 
146
.\}
 
147
.el \{\
 
148
.sp -1
 
149
.IP \(bu 2.3
 
150
.\}
 
151
.\" mysqlimport: compress option.\" compress option: mysqlimport\fB\-\-compress\fR,
 
152
\fB\-C\fR
 
153
.sp
 
154
Compress all information sent between the client and the server if both support compression\&.
 
155
.RE
 
156
.sp
 
157
.RS 4
 
158
.ie n \{\
 
159
\h'-04'\(bu\h'+03'\c
 
160
.\}
 
161
.el \{\
 
162
.sp -1
 
163
.IP \(bu 2.3
 
164
.\}
 
165
.\" mysqlimport: debug option.\" debug option: mysqlimport\fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
 
166
\fB\-# [\fR\fB\fIdebug_options\fR\fR\fB]\fR
 
167
.sp
 
168
Write a debugging log\&. A typical
 
169
\fIdebug_options\fR
 
170
string is
 
171
\*(Aqd:t:o,\fIfile_name\fR\*(Aq\&. The default is
 
172
\*(Aqd:t:o\*(Aq\&.
 
173
.RE
 
174
.sp
 
175
.RS 4
 
176
.ie n \{\
 
177
\h'-04'\(bu\h'+03'\c
 
178
.\}
 
179
.el \{\
 
180
.sp -1
 
181
.IP \(bu 2.3
 
182
.\}
 
183
.\" mysqlimport: debug-check option.\" debug-check option: mysqlimport\fB\-\-debug\-check\fR
 
184
.sp
 
185
Print some debugging information when the program exits\&.
 
186
.RE
 
187
.sp
 
188
.RS 4
 
189
.ie n \{\
 
190
\h'-04'\(bu\h'+03'\c
 
191
.\}
 
192
.el \{\
 
193
.sp -1
 
194
.IP \(bu 2.3
 
195
.\}
 
196
.\" mysqlimport: debug-info option.\" debug-info option: mysqlimport\fB\-\-debug\-info\fR
 
197
.sp
 
198
Print debugging information and memory and CPU usage statistics when the program exits\&.
 
199
.RE
 
200
.sp
 
201
.RS 4
 
202
.ie n \{\
 
203
\h'-04'\(bu\h'+03'\c
 
204
.\}
 
205
.el \{\
 
206
.sp -1
 
207
.IP \(bu 2.3
 
208
.\}
 
209
.\" mysqlimport: default-character-set option.\" default-character-set option: mysqlimport\fB\-\-default\-character\-set=\fR\fB\fIcharset_name\fR\fR
 
210
.sp
 
211
Use
 
212
\fIcharset_name\fR
 
213
as the default character set\&. See
 
214
Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
 
215
.RE
 
216
.sp
 
217
.RS 4
 
218
.ie n \{\
 
219
\h'-04'\(bu\h'+03'\c
 
220
.\}
 
221
.el \{\
 
222
.sp -1
 
223
.IP \(bu 2.3
 
224
.\}
 
225
.\" mysqlimport: default-auth option.\" default-auth option: mysqlimport\fB\-\-default\-auth=\fR\fB\fIplugin\fR\fR
 
226
.sp
 
227
The client\-side authentication plugin to use\&. See
 
228
Section\ \&6.3.7, \(lqPluggable Authentication\(rq\&.
 
229
.sp
 
230
This option was added in MySQL 5\&.6\&.2\&.
 
231
.RE
 
232
.sp
 
233
.RS 4
 
234
.ie n \{\
 
235
\h'-04'\(bu\h'+03'\c
 
236
.\}
 
237
.el \{\
 
238
.sp -1
 
239
.IP \(bu 2.3
 
240
.\}
 
241
.\" mysqlimport: delete option.\" delete option: mysqlimport\fB\-\-delete\fR,
 
242
\fB\-D\fR
 
243
.sp
 
244
Empty the table before importing the text file\&.
 
245
.RE
 
246
.sp
 
247
.RS 4
 
248
.ie n \{\
 
249
\h'-04'\(bu\h'+03'\c
 
250
.\}
 
251
.el \{\
 
252
.sp -1
 
253
.IP \(bu 2.3
 
254
.\}
 
255
.\" mysqldump: fields-terminated-by option.\" fields-terminated-by option: mysqldump\fB\-\-fields\-terminated\-by=\&.\&.\&.\fR,
 
256
.\" mysqldump: fields-enclosed-by option.\" fields-enclosed-by option: mysqldump\fB\-\-fields\-enclosed\-by=\&.\&.\&.\fR,
 
257
.\" mysqldump: fields-optionally-enclosed-by option.\" fields-optionally-enclosed-by option: mysqldump\fB\-\-fields\-optionally\-enclosed\-by=\&.\&.\&.\fR,
 
258
.\" mysqldump: fields-escaped-by option.\" fields-escaped-by option: mysqldump\fB\-\-fields\-escaped\-by=\&.\&.\&.\fR
 
259
.sp
 
260
These options have the same meaning as the corresponding clauses for
 
261
LOAD DATA INFILE\&. See
 
262
Section\ \&13.2.6, \(lqLOAD DATA INFILE Syntax\(rq\&.
 
263
.RE
 
264
.sp
 
265
.RS 4
 
266
.ie n \{\
 
267
\h'-04'\(bu\h'+03'\c
 
268
.\}
 
269
.el \{\
 
270
.sp -1
 
271
.IP \(bu 2.3
 
272
.\}
 
273
.\" mysqlimport: force option.\" force option: mysqlimport\fB\-\-force\fR,
 
274
\fB\-f\fR
 
275
.sp
 
276
Ignore errors\&. For example, if a table for a text file does not exist, continue processing any remaining files\&. Without
 
277
\fB\-\-force\fR,
 
278
\fBmysqlimport\fR
 
279
exits if a table does not exist\&.
 
280
.RE
 
281
.sp
 
282
.RS 4
 
283
.ie n \{\
 
284
\h'-04'\(bu\h'+03'\c
 
285
.\}
 
286
.el \{\
 
287
.sp -1
 
288
.IP \(bu 2.3
 
289
.\}
 
290
.\" mysqlimport: host option.\" host option: mysqlimport\fB\-\-host=\fR\fB\fIhost_name\fR\fR,
 
291
\fB\-h \fR\fB\fIhost_name\fR\fR
 
292
.sp
 
293
Import data to the MySQL server on the given host\&. The default host is
 
294
localhost\&.
 
295
.RE
 
296
.sp
 
297
.RS 4
 
298
.ie n \{\
 
299
\h'-04'\(bu\h'+03'\c
 
300
.\}
 
301
.el \{\
 
302
.sp -1
 
303
.IP \(bu 2.3
 
304
.\}
 
305
.\" mysqlimport: ignore option.\" ignore option: mysqlimport\fB\-\-ignore\fR,
 
306
\fB\-i\fR
 
307
.sp
 
308
See the description for the
 
309
\fB\-\-replace\fR
 
310
option\&.
 
311
.RE
 
312
.sp
 
313
.RS 4
 
314
.ie n \{\
 
315
\h'-04'\(bu\h'+03'\c
 
316
.\}
 
317
.el \{\
 
318
.sp -1
 
319
.IP \(bu 2.3
 
320
.\}
 
321
.\" mysqlimport: ignore-lines option.\" ignore-lines option: mysqlimport\fB\-\-ignore\-lines=\fR\fB\fIN\fR\fR
 
322
.sp
 
323
Ignore the first
 
324
\fIN\fR
 
325
lines of the data file\&.
 
326
.RE
 
327
.sp
 
328
.RS 4
 
329
.ie n \{\
 
330
\h'-04'\(bu\h'+03'\c
 
331
.\}
 
332
.el \{\
 
333
.sp -1
 
334
.IP \(bu 2.3
 
335
.\}
 
336
.\" mysqldump: lines-terminated-by option.\" lines-terminated-by option: mysqldump\fB\-\-lines\-terminated\-by=\&.\&.\&.\fR
 
337
.sp
 
338
This option has the same meaning as the corresponding clause for
 
339
LOAD DATA INFILE\&. For example, to import Windows files that have lines terminated with carriage return/linefeed pairs, use
 
340
\fB\-\-lines\-terminated\-by="\er\en"\fR\&. (You might have to double the backslashes, depending on the escaping conventions of your command interpreter\&.) See
 
341
Section\ \&13.2.6, \(lqLOAD DATA INFILE Syntax\(rq\&.
 
342
.RE
 
343
.sp
 
344
.RS 4
 
345
.ie n \{\
 
346
\h'-04'\(bu\h'+03'\c
 
347
.\}
 
348
.el \{\
 
349
.sp -1
 
350
.IP \(bu 2.3
 
351
.\}
 
352
.\" mysqlimport: local option.\" local option: mysqlimport\fB\-\-local\fR,
 
353
\fB\-L\fR
 
354
.sp
 
355
Read input files locally from the client host\&.
 
356
.RE
 
357
.sp
 
358
.RS 4
 
359
.ie n \{\
 
360
\h'-04'\(bu\h'+03'\c
 
361
.\}
 
362
.el \{\
 
363
.sp -1
 
364
.IP \(bu 2.3
 
365
.\}
 
366
.\" mysqlimport: lock-tables option.\" lock-tables option: mysqlimport\fB\-\-lock\-tables\fR,
 
367
\fB\-l\fR
 
368
.sp
 
369
Lock
 
370
\fIall\fR
 
371
tables for writing before processing any text files\&. This ensures that all tables are synchronized on the server\&.
 
372
.RE
 
373
.sp
 
374
.RS 4
 
375
.ie n \{\
 
376
\h'-04'\(bu\h'+03'\c
 
377
.\}
 
378
.el \{\
 
379
.sp -1
 
380
.IP \(bu 2.3
 
381
.\}
 
382
.\" mysqlimport: low-priority option.\" low-priority option: mysqlimport\fB\-\-low\-priority\fR
 
383
.sp
 
384
Use
 
385
LOW_PRIORITY
 
386
when loading the table\&. This affects only storage engines that use only table\-level locking (such as
 
387
MyISAM,
 
388
MEMORY, and
 
389
MERGE)\&.
 
390
.RE
 
391
.sp
 
392
.RS 4
 
393
.ie n \{\
 
394
\h'-04'\(bu\h'+03'\c
 
395
.\}
 
396
.el \{\
 
397
.sp -1
 
398
.IP \(bu 2.3
 
399
.\}
 
400
.\" mysqlimport: password option.\" password option: mysqlimport\fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR,
 
401
\fB\-p[\fR\fB\fIpassword\fR\fR\fB]\fR
 
402
.sp
 
403
The password to use when connecting to the server\&. If you use the short option form (\fB\-p\fR), you
 
404
\fIcannot\fR
 
405
have a space between the option and the password\&. If you omit the
 
406
\fIpassword\fR
 
407
value following the
 
408
\fB\-\-password\fR
 
409
or
 
410
\fB\-p\fR
 
411
option on the command line,
 
412
\fBmysqlimport\fR
 
413
prompts for one\&.
 
414
.sp
 
415
Specifying a password on the command line should be considered insecure\&. See
 
416
Section\ \&6.1.2.1, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
 
417
.RE
 
418
.sp
 
419
.RS 4
 
420
.ie n \{\
 
421
\h'-04'\(bu\h'+03'\c
 
422
.\}
 
423
.el \{\
 
424
.sp -1
 
425
.IP \(bu 2.3
 
426
.\}
 
427
.\" mysqlimport: pipe option.\" pipe option: mysqlimport\fB\-\-pipe\fR,
 
428
\fB\-W\fR
 
429
.sp
 
430
On Windows, connect to the server using a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
 
431
.RE
 
432
.sp
 
433
.RS 4
 
434
.ie n \{\
 
435
\h'-04'\(bu\h'+03'\c
 
436
.\}
 
437
.el \{\
 
438
.sp -1
 
439
.IP \(bu 2.3
 
440
.\}
 
441
.\" mysqlimport: plugin-dir option.\" plugin-dir option: mysqlimport\fB\-\-plugin\-dir=\fR\fB\fIpath\fR\fR
 
442
.sp
 
443
The directory in which to look for plugins\&. It may be necessary to specify this option if the
 
444
\fB\-\-default\-auth\fR
 
445
option is used to specify an authentication plugin but
 
446
\fBmysqlimport\fR
 
447
does not find it\&. See
 
448
Section\ \&6.3.7, \(lqPluggable Authentication\(rq\&.
 
449
.sp
 
450
This option was added in MySQL 5\&.6\&.2\&.
 
451
.RE
 
452
.sp
 
453
.RS 4
 
454
.ie n \{\
 
455
\h'-04'\(bu\h'+03'\c
 
456
.\}
 
457
.el \{\
 
458
.sp -1
 
459
.IP \(bu 2.3
 
460
.\}
 
461
.\" mysqlimport: port option.\" port option: mysqlimport\fB\-\-port=\fR\fB\fIport_num\fR\fR,
 
462
\fB\-P \fR\fB\fIport_num\fR\fR
 
463
.sp
 
464
The TCP/IP port number to use for the connection\&.
 
465
.RE
 
466
.sp
 
467
.RS 4
 
468
.ie n \{\
 
469
\h'-04'\(bu\h'+03'\c
 
470
.\}
 
471
.el \{\
 
472
.sp -1
 
473
.IP \(bu 2.3
 
474
.\}
 
475
.\" mysqlimport: protocol option.\" protocol option: mysqlimport\fB\-\-protocol={TCP|SOCKET|PIPE|MEMORY}\fR
 
476
.sp
 
477
The connection protocol to use for connecting to the server\&. It is useful when the other connection parameters normally would cause a protocol to be used other than the one you want\&. For details on the permissible values, see
 
478
Section\ \&4.2.2, \(lqConnecting to the MySQL Server\(rq\&.
 
479
.RE
 
480
.sp
 
481
.RS 4
 
482
.ie n \{\
 
483
\h'-04'\(bu\h'+03'\c
 
484
.\}
 
485
.el \{\
 
486
.sp -1
 
487
.IP \(bu 2.3
 
488
.\}
 
489
.\" mysqlimport: replace option.\" replace option: mysqlimport\fB\-\-replace\fR,
 
490
\fB\-r\fR
 
491
.sp
 
492
The
 
493
\fB\-\-replace\fR
 
494
and
 
495
\fB\-\-ignore\fR
 
496
options control handling of input rows that duplicate existing rows on unique key values\&. If you specify
 
497
\fB\-\-replace\fR, new rows replace existing rows that have the same unique key value\&. If you specify
 
498
\fB\-\-ignore\fR, input rows that duplicate an existing row on a unique key value are skipped\&. If you do not specify either option, an error occurs when a duplicate key value is found, and the rest of the text file is ignored\&.
 
499
.RE
 
500
.sp
 
501
.RS 4
 
502
.ie n \{\
 
503
\h'-04'\(bu\h'+03'\c
 
504
.\}
 
505
.el \{\
 
506
.sp -1
 
507
.IP \(bu 2.3
 
508
.\}
 
509
.\" mysqlimport: silent option.\" silent option: mysqlimport\fB\-\-silent\fR,
 
510
\fB\-s\fR
 
511
.sp
 
512
Silent mode\&. Produce output only when errors occur\&.
 
513
.RE
 
514
.sp
 
515
.RS 4
 
516
.ie n \{\
 
517
\h'-04'\(bu\h'+03'\c
 
518
.\}
 
519
.el \{\
 
520
.sp -1
 
521
.IP \(bu 2.3
 
522
.\}
 
523
.\" mysqlimport: socket option.\" socket option: mysqlimport\fB\-\-socket=\fR\fB\fIpath\fR\fR,
 
524
\fB\-S \fR\fB\fIpath\fR\fR
 
525
.sp
 
526
For connections to
 
527
localhost, the Unix socket file to use, or, on Windows, the name of the named pipe to use\&.
 
528
.RE
 
529
.sp
 
530
.RS 4
 
531
.ie n \{\
 
532
\h'-04'\(bu\h'+03'\c
 
533
.\}
 
534
.el \{\
 
535
.sp -1
 
536
.IP \(bu 2.3
 
537
.\}
 
538
.\" mysqlimport: SSL options.\" SSL options: mysqlimport\fB\-\-ssl*\fR
 
539
.sp
 
540
Options that begin with
 
541
\fB\-\-ssl\fR
 
542
specify whether to connect to the server using SSL and indicate where to find SSL keys and certificates\&. See
 
543
Section\ \&6.3.9.4, \(lqSSL Command Options\(rq\&.
 
544
.RE
 
545
.sp
 
546
.RS 4
 
547
.ie n \{\
 
548
\h'-04'\(bu\h'+03'\c
 
549
.\}
 
550
.el \{\
 
551
.sp -1
 
552
.IP \(bu 2.3
 
553
.\}
 
554
.\" mysqlimport: user option.\" user option: mysqlimport\fB\-\-user=\fR\fB\fIuser_name\fR\fR,
 
555
\fB\-u \fR\fB\fIuser_name\fR\fR
 
556
.sp
 
557
The MySQL user name to use when connecting to the server\&.
 
558
.RE
 
559
.sp
 
560
.RS 4
 
561
.ie n \{\
 
562
\h'-04'\(bu\h'+03'\c
 
563
.\}
 
564
.el \{\
 
565
.sp -1
 
566
.IP \(bu 2.3
 
567
.\}
 
568
.\" mysqlimport: use-threads option.\" use-threads option: mysqlimport\fB\-\-use\-threads=\fR\fB\fIN\fR\fR
 
569
.sp
 
570
Load files in parallel using
 
571
\fIN\fR
 
572
threads\&.
 
573
.RE
 
574
.sp
 
575
.RS 4
 
576
.ie n \{\
 
577
\h'-04'\(bu\h'+03'\c
 
578
.\}
 
579
.el \{\
 
580
.sp -1
 
581
.IP \(bu 2.3
 
582
.\}
 
583
.\" mysqlimport: verbose option.\" verbose option: mysqlimport\fB\-\-verbose\fR,
 
584
\fB\-v\fR
 
585
.sp
 
586
Verbose mode\&. Print more information about what the program does\&.
 
587
.RE
 
588
.sp
 
589
.RS 4
 
590
.ie n \{\
 
591
\h'-04'\(bu\h'+03'\c
 
592
.\}
 
593
.el \{\
 
594
.sp -1
 
595
.IP \(bu 2.3
 
596
.\}
 
597
.\" mysqlimport: version option.\" version option: mysqlimport\fB\-\-version\fR,
 
598
\fB\-V\fR
 
599
.sp
 
600
Display version information and exit\&.
 
601
.RE
 
602
.PP
 
603
Here is a sample session that demonstrates use of
 
604
\fBmysqlimport\fR:
 
605
.sp
 
606
.if n \{\
 
607
.RS 4
 
608
.\}
 
609
.nf
 
610
shell> \fBmysql \-e \*(AqCREATE TABLE imptest(id INT, n VARCHAR(30))\*(Aq test\fR
 
611
shell> \fBed\fR
 
612
a
 
613
100     Max Sydow
 
614
101     Count Dracula
 
615
\&.
 
616
w imptest\&.txt
 
617
32
 
618
q
 
619
shell> \fBod \-c imptest\&.txt\fR
 
620
0000000   1   0   0  \et   M   a   x       S   y   d   o   w  \en   1   0
 
621
0000020   1  \et   C   o   u   n   t       D   r   a   c   u   l   a  \en
 
622
0000040
 
623
shell> \fBmysqlimport \-\-local test imptest\&.txt\fR
 
624
test\&.imptest: Records: 2  Deleted: 0  Skipped: 0  Warnings: 0
 
625
shell> \fBmysql \-e \*(AqSELECT * FROM imptest\*(Aq test\fR
 
626
+\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
 
627
| id   | n             |
 
628
+\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
 
629
|  100 | Max Sydow     |
 
630
|  101 | Count Dracula |
 
631
+\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
 
632
.fi
 
633
.if n \{\
 
634
.RE
 
635
.\}
 
636
.SH "COPYRIGHT"
 
637
.br
 
638
.PP
 
639
Copyright \(co 1997, 2013, Oracle and/or its affiliates. All rights reserved.
 
640
.PP
 
641
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
 
642
.PP
 
643
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 
644
.PP
 
645
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
 
646
.sp
 
647
.SH "SEE ALSO"
 
648
For more information, please refer to the MySQL Reference Manual,
 
649
which may already be installed locally and which is also available
 
650
online at http://dev.mysql.com/doc/.
 
651
.SH AUTHOR
 
652
Oracle Corporation (http://dev.mysql.com/).