~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

Viewing changes to man/mysql_config_editor.1

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-07-21 07:09:29 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20150721070929-mg4dpqkgg3it1ajf
Tags: upstream-5.6.25
ImportĀ upstreamĀ versionĀ 5.6.25

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
.\"     Title: \fBmysql_config_editor\fR
3
3
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4
4
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5
 
.\"      Date: 03/25/2015
 
5
.\"      Date: 05/05/2015
6
6
.\"    Manual: MySQL Database System
7
7
.\"    Source: MySQL 5.6
8
8
.\"  Language: English
9
9
.\"
10
 
.TH "\FBMYSQL_CONFIG_EDIT" "1" "03/25/2015" "MySQL 5\&.6" "MySQL Database System"
 
10
.TH "\FBMYSQL_CONFIG_EDIT" "1" "05/05/2015" "MySQL 5\&.6" "MySQL Database System"
11
11
.\" -----------------------------------------------------------------
12
12
.\" * Define some portability stuff
13
13
.\" -----------------------------------------------------------------
38
38
.PP
39
39
The
40
40
\fBmysql_config_editor\fR
41
 
utility (available as of MySQL 5\&.6\&.6) enables you to store authentication credentials in an encrypted login file named
 
41
utility (available as of MySQL 5\&.6\&.6) enables you to store authentication credentials in an encrypted login path file named
42
42
\&.mylogin\&.cnf\&. The file location is the
43
43
%APPDATA%\eMySQL
44
44
directory on Windows and the current user\*(Aqs home directory on non\-Windows systems\&. The file can be read later by MySQL client programs to obtain authentication credentials for connecting to MySQL Server\&.
45
45
.PP
46
 
To specify an alternate file name, set the
 
46
The unencrypted format of the
 
47
\&.mylogin\&.cnf
 
48
login path file consists of option groups, similar to other option files\&. Each option group in
 
49
\&.mylogin\&.cnf
 
50
is called a
 
51
\(lqlogin path,\(rq
 
52
which is a group that permits only certain options:
 
53
\fBhost\fR,
 
54
\fBuser\fR,
 
55
\fBpassword\fR,
 
56
\fBport\fR
 
57
and
 
58
\fBsocket\fR\&. Think of a login path option group as a set of values that indicate the server host and the options for connecting to the MySQL server there\&. Here is an unencrypted example:
 
59
.sp
 
60
.if n \{\
 
61
.RS 4
 
62
.\}
 
63
.nf
 
64
[client]
 
65
user = mydefaultname
 
66
password = mydefaultpass
 
67
host = 127\&.0\&.0\&.1
 
68
[mypath]
 
69
user = myothername
 
70
password = myotherpass
 
71
host = localhost
 
72
.fi
 
73
.if n \{\
 
74
.RE
 
75
.\}
 
76
.PP
 
77
When you invoke a client program to connect to the server, the client uses
 
78
\&.mylogin\&.cnf
 
79
in conjunction with other option files\&. Its precedence is higher than other option files, but less than options specified explicitly on the client command line\&. For information about the order in which option files are used, see
 
80
Section\ \&4.2.6, \(lqUsing Option Files\(rq\&.
 
81
.\" MYSQL_TEST_LOGIN_FILE environment variable
 
82
.\" environment variable: MYSQL_TEST_LOGIN_FILE
 
83
.PP
 
84
To specify an alternate login path file name, set the
47
85
MYSQL_TEST_LOGIN_FILE
48
 
environment variable\&. This variable is used by the
 
86
environment variable\&. This variable is recognized by
 
87
\fBmysql_config_editor\fR, by standard MySQL clients (\fBmysql\fR,
 
88
\fBmysqladmin\fR, and so forth), and by the
49
89
\fBmysql\-test\-run\&.pl\fR
50
 
testing utility, but also is recognized by
51
 
mysql_config_editor
52
 
and by MySQL clients such as
53
 
\fBmysql\fR,
54
 
\fBmysqladmin\fR, and so forth\&.
 
90
testing utility\&.
 
91
.PP
 
92
Programs use groups in the login path file as follows:
 
93
.sp
 
94
.RS 4
 
95
.ie n \{\
 
96
\h'-04'\(bu\h'+03'\c
 
97
.\}
 
98
.el \{\
 
99
.sp -1
 
100
.IP \(bu 2.3
 
101
.\}
 
102
\fBmysql_config_editor\fR
 
103
operates on the
 
104
client
 
105
login path by default if you specify no
 
106
\fB\-\-login\-path=\fR\fB\fIname\fR\fR
 
107
option to indicate explicitly which login path to use\&.
 
108
.RE
 
109
.sp
 
110
.RS 4
 
111
.ie n \{\
 
112
\h'-04'\(bu\h'+03'\c
 
113
.\}
 
114
.el \{\
 
115
.sp -1
 
116
.IP \(bu 2.3
 
117
.\}
 
118
Without a
 
119
\fB\-\-login\-path\fR
 
120
option, client programs read the same option groups from the login path file that they read from other option files\&. Consider this command:
 
121
.sp
 
122
.if n \{\
 
123
.RS 4
 
124
.\}
 
125
.nf
 
126
shell> \fBmysql\fR
 
127
.fi
 
128
.if n \{\
 
129
.RE
 
130
.\}
 
131
.sp
 
132
By default, the
 
133
\fBmysql\fR
 
134
client reads the
 
135
[client]
 
136
and
 
137
[mysql]
 
138
groups from other option files, so it reads them from the login path file as well\&.
 
139
.RE
 
140
.sp
 
141
.RS 4
 
142
.ie n \{\
 
143
\h'-04'\(bu\h'+03'\c
 
144
.\}
 
145
.el \{\
 
146
.sp -1
 
147
.IP \(bu 2.3
 
148
.\}
 
149
With a
 
150
\fB\-\-login\-path\fR
 
151
option, client programs additionally read the named login path from the login path ile\&. The option groups read from other option files remain the same\&. Consider this command:
 
152
.sp
 
153
.if n \{\
 
154
.RS 4
 
155
.\}
 
156
.nf
 
157
shell> \fBmysql \-\-login\-path=mypath\fR
 
158
.fi
 
159
.if n \{\
 
160
.RE
 
161
.\}
 
162
.sp
 
163
The
 
164
\fBmysql\fR
 
165
client reads
 
166
[client]
 
167
and
 
168
[mysql]
 
169
from other option files, and
 
170
[client],
 
171
[mysql], and
 
172
[mypath]
 
173
from the login path file\&.
 
174
.RE
 
175
.sp
 
176
.RS 4
 
177
.ie n \{\
 
178
\h'-04'\(bu\h'+03'\c
 
179
.\}
 
180
.el \{\
 
181
.sp -1
 
182
.IP \(bu 2.3
 
183
.\}
 
184
Client programs read the login path file even when the
 
185
\fB\-\-no\-defaults\fR
 
186
option is used\&. This permits passwords to be specified in a safer way than on the command line even if
 
187
\fB\-\-no\-defaults\fR
 
188
is present\&.
 
189
.RE
55
190
.PP
56
191
\fBmysql_config_editor\fR
57
192
encrypts the
58
193
\&.mylogin\&.cnf
59
 
file so it cannot be read as clear text, and its contents when decrypted by client programs are used only in memory\&. In this way, passwords can be stored in a file in non\-cleartext format and used later without ever needing to be exposed on the command line or in an environment variable\&.
 
194
file so it cannot be read as cleartext, and its contents when decrypted by client programs are used only in memory\&. In this way, passwords can be stored in a file in non\-cleartext format and used later without ever needing to be exposed on the command line or in an environment variable\&.
60
195
\fBmysql_config_editor\fR
61
196
provides a
62
197
print
63
 
command that enables the user to display the file contents, but even in this case, password values are masked so as never to appear in a way that other users can see them\&.
 
198
command for displaying the login path file contents, but even in this case, password values are masked so as never to appear in a way that other users can see them\&.
64
199
.PP
65
200
The encryption used by
66
201
\fBmysql_config_editor\fR
67
202
prevents passwords from appearing in
68
203
\&.mylogin\&.cnf
69
 
as clear text and provides a measure of security by preventing inadvertent password exposure\&. For example, if you display a regular unencrypted
 
204
as cleartext and provides a measure of security by preventing inadvertent password exposure\&. For example, if you display a regular unencrypted
70
205
my\&.cnf
71
206
option file on the screen, any passwords it contains are visible for anyone to see\&. With
72
207
\&.mylogin\&.cnf, that is not true\&. But the encryption used will not deter a determined attacker and you should not consider it unbreakable\&. A user who can gain system administration privileges on your machine to access your files could decrypt the
73
208
\&.mylogin\&.cnf
74
209
file with some effort\&.
75
210
.PP
76
 
The login file must be readable and writable to the current user, and inaccessible to other users\&. Otherwise,
 
211
The login path file must be readable and writable to the current user, and inaccessible to other users\&. Otherwise,
77
212
\fBmysql_config_editor\fR
78
 
ignores it, and the file is not used by client programs, either\&. On Windows, this constraint does not apply; instead, the user must have access to the
 
213
ignores it, and client programs do not use it, either\&. On Windows, this constraint does not apply; instead, the user must have access to the
79
214
%APPDATA%\eMySQL
80
215
directory\&.
81
216
.PP
82
 
The unencrypted format of the
83
 
\&.mylogin\&.cnf
84
 
login file consists of option groups, similar to other option files\&. Each option group in
85
 
\&.mylogin\&.cnf
86
 
is called a
87
 
\(lqlogin path,\(rq
88
 
which is a group that permits only a limited set of options:
89
 
\fBhost\fR,
90
 
\fBuser\fR, and
91
 
\fBpassword\fR\&. Think of a login path as a set of values that indicate the server host and the credentials for authenticating with the server\&. Here is an example:
92
 
.sp
93
 
.if n \{\
94
 
.RS 4
95
 
.\}
96
 
.nf
97
 
[myloginpath]
98
 
user = myname
99
 
password = mypass
100
 
host = 127\&.0\&.0\&.1
101
 
.fi
102
 
.if n \{\
103
 
.RE
104
 
.\}
105
 
.PP
106
 
When you invoke a client program to connect to the server,
107
 
\&.mylogin\&.cnf
108
 
is used in conjunction with other option files\&. Its precedence is higher than other option files, but less than options specified explicitly on the client command line\&. For information about the order in which option files are used, see
109
 
Section\ \&4.2.6, \(lqUsing Option Files\(rq\&.
110
 
.PP
111
217
Invoke
112
 
mysql_config_editor
 
218
\fBmysql_config_editor\fR
113
219
like this:
114
220
.sp
115
221
.if n \{\
122
228
.RE
123
229
.\}
124
230
.PP
 
231
If the login path file does not exist,
 
232
\fBmysql_config_editor\fR
 
233
creates it\&.
 
234
.PP
 
235
Command arguments are given as follows:
 
236
.sp
 
237
.RS 4
 
238
.ie n \{\
 
239
\h'-04'\(bu\h'+03'\c
 
240
.\}
 
241
.el \{\
 
242
.sp -1
 
243
.IP \(bu 2.3
 
244
.\}
125
245
\fIprogram_options\fR
126
246
consists of general
127
247
\fBmysql_config_editor\fR
128
248
options\&.
 
249
.RE
 
250
.sp
 
251
.RS 4
 
252
.ie n \{\
 
253
\h'-04'\(bu\h'+03'\c
 
254
.\}
 
255
.el \{\
 
256
.sp -1
 
257
.IP \(bu 2.3
 
258
.\}
129
259
command
130
 
indicates what command to perform, and
131
 
\fIcommand_options\fR
132
 
indicates any additional options needed by the command\&.
133
 
.PP
134
 
The command indicates what action to perform on the
 
260
indicates what action to perform on the
135
261
\&.mylogin\&.cnf
136
 
login file\&. For example,
 
262
login path file\&. For example,
137
263
set
138
264
writes a login path to the file,
139
265
remove
140
266
removes a login path, and
141
267
print
142
 
displays login path contents\&. Any options given provide information to the command, such as the login path name and the values to use in the login path\&.
 
268
displays login path contents\&.
 
269
.RE
 
270
.sp
 
271
.RS 4
 
272
.ie n \{\
 
273
\h'-04'\(bu\h'+03'\c
 
274
.\}
 
275
.el \{\
 
276
.sp -1
 
277
.IP \(bu 2.3
 
278
.\}
 
279
\fIcommand_options\fR
 
280
indicates any additional options specific to the command, such as the login path name and the values to use in the login path\&.
 
281
.RE
143
282
.PP
144
283
The position of the command name within the set of program arguments is significant\&. For example, these command lines have the same arguments, but produce different results:
145
284
.sp
147
286
.RS 4
148
287
.\}
149
288
.nf
150
 
mysql_config_editor \-\-help set
151
 
mysql_config_editor set \-\-help
 
289
shell> \fBmysql_config_editor \-\-help set\fR
 
290
shell> \fBmysql_config_editor set \-\-help\fR
152
291
.fi
153
292
.if n \{\
154
293
.RE
155
294
.\}
156
295
.PP
157
 
The first command line displays general
 
296
The first command line displays a general
158
297
\fBmysql_config_editor\fR
159
 
help, and ignores the
 
298
help message, and ignores the
160
299
set
161
 
command\&. The second command line displays help for the
 
300
command\&. The second command line displays a help message specific to the
162
301
set
163
302
command\&.
164
303
.PP
165
 
Suppose that you want to establish two login paths named
166
 
local
167
 
and
 
304
Suppose that you want to establish a
 
305
client
 
306
login path that defines your default connection parameters, and an additional login path named
168
307
remote
169
 
for connecting to the local MySQL server and a server on the host
170
 
remote\&.example\&.com\&. You want to authenticate to the local server with a user name and password of
 
308
for connecting to the MySQL server the host
 
309
remote\&.example\&.com\&. You want to log in as follows:
 
310
.sp
 
311
.RS 4
 
312
.ie n \{\
 
313
\h'-04'\(bu\h'+03'\c
 
314
.\}
 
315
.el \{\
 
316
.sp -1
 
317
.IP \(bu 2.3
 
318
.\}
 
319
By default, to the local server with a user name and password of
171
320
localuser
172
321
and
173
 
localpass, and to the remote server with a user name and password of
 
322
localpass
 
323
.RE
 
324
.sp
 
325
.RS 4
 
326
.ie n \{\
 
327
\h'-04'\(bu\h'+03'\c
 
328
.\}
 
329
.el \{\
 
330
.sp -1
 
331
.IP \(bu 2.3
 
332
.\}
 
333
To the remote server with a user name and password of
174
334
remoteuser
175
335
and
176
 
remotepass\&. To set up the login paths in the
 
336
remotepass
 
337
.RE
 
338
.PP
 
339
To set up the login paths in the
177
340
\&.mylogin\&.cnf
178
341
file, use the following
179
342
set
180
 
commands\&. Enter each command on a single line, then enter the appropriate password when prompted\&.
 
343
commands\&. Enter each command on a single line, and enter the appropriate passwords when prompted:
181
344
.sp
182
345
.if n \{\
183
346
.RS 4
184
347
.\}
185
348
.nf
186
 
shell> \fBmysql_config_editor set \-\-login\-path=local
 
349
shell> \fBmysql_config_editor set \-\-login\-path=client
187
350
         \-\-host=localhost \-\-user=localuser \-\-password\fR
188
351
Enter password: \fIenter password "localpass" here\fR
189
352
shell> \fBmysql_config_editor set \-\-login\-path=remote
194
357
.RE
195
358
.\}
196
359
.PP
 
360
\fBmysql_config_editor\fR
 
361
uses the
 
362
client
 
363
login path by default, so the
 
364
\fB\-\-login\-path=client\fR
 
365
option can be omitted from the first command without changing its effect\&.
 
366
.PP
197
367
To see what
198
368
\fBmysql_config_editor\fR
199
 
wrote to the
 
369
writes to the
200
370
\&.mylogin\&.cnf
201
371
file, use the
202
372
print
207
377
.\}
208
378
.nf
209
379
shell> \fBmysql_config_editor print \-\-all\fR
210
 
[local]
 
380
[client]
211
381
user = localuser
212
382
password = *****
213
383
host = localhost
222
392
.PP
223
393
The
224
394
print
225
 
command displays each login path as a set of lines beginning with a group header indicating the login path name in square brackets, followed by the option values for the login path\&. Password values are masked and do not appear as clear text\&.
226
 
.PP
227
 
As shown by the preceding examples, the
228
 
\&.mylogin\&.cnf
229
 
file can contain multiple login paths\&. In this way,
 
395
command displays each login path as a set of lines beginning with a group header indicating the login path name in square brackets, followed by the option values for the login path\&. Password values are masked and do not appear as cleartext\&.
 
396
.PP
 
397
If you do not specify
 
398
\fB\-\-all\fR
 
399
to display all login paths or
 
400
\fB\-\-login\-path=\fR\fB\fIname\fR\fR
 
401
to display a named login path, the
 
402
print
 
403
command displays the
 
404
client
 
405
login path by default, if there is one\&.
 
406
.PP
 
407
As shown by the preceding example, the login path file can contain multiple login paths\&. In this way,
230
408
\fBmysql_config_editor\fR
231
409
makes it easy to set up multiple
232
410
\(lqpersonalities\(rq
233
 
for connecting to different MySQL servers\&. Any of these can be selected by name later using the
 
411
for connecting to different MySQL servers, or for connecting to a given server using different accounts\&. Any of these can be selected by name later using the
234
412
\fB\-\-login\-path\fR
235
 
option when you invoke a client program\&. For example, to connect to the local server, use this command:
236
 
.sp
237
 
.if n \{\
238
 
.RS 4
239
 
.\}
240
 
.nf
241
 
shell> \fBmysql \-\-login\-path=local\fR
242
 
.fi
243
 
.if n \{\
244
 
.RE
245
 
.\}
246
 
.PP
247
 
To connect to the remote server, use this command:
 
413
option when you invoke a client program\&. For example, to connect to the remote server, use this command:
248
414
.sp
249
415
.if n \{\
250
416
.RS 4
256
422
.RE
257
423
.\}
258
424
.PP
 
425
Here,
 
426
\fBmysql\fR
 
427
reads the
 
428
[client]
 
429
and
 
430
[mysql]
 
431
option groups from other option files, and the
 
432
[client],
 
433
[mysql], and
 
434
[remote]
 
435
groups from the login path file\&.
 
436
.PP
 
437
To connect to the local server, use this command:
 
438
.sp
 
439
.if n \{\
 
440
.RS 4
 
441
.\}
 
442
.nf
 
443
shell> \fBmysql \-\-login\-path=client\fR
 
444
.fi
 
445
.if n \{\
 
446
.RE
 
447
.\}
 
448
.PP
 
449
Because
 
450
\fBmysql\fR
 
451
reads the
 
452
client
 
453
and
 
454
mysql
 
455
login paths by default, the
 
456
\fB\-\-login\-path\fR
 
457
option does not add anything in this case\&. That command is equivalent to this one:
 
458
.sp
 
459
.if n \{\
 
460
.RS 4
 
461
.\}
 
462
.nf
 
463
shell> \fBmysql\fR
 
464
.fi
 
465
.if n \{\
 
466
.RE
 
467
.\}
 
468
.PP
 
469
Options read from the login path file take precedence over options read from other option files\&. Options read from login path groups appearing later in the login path file take precedence over options read from groups appearing earlier in the file\&.
 
470
.PP
 
471
\fBmysql_config_editor\fR
 
472
adds login paths to the login path file in the order you create them, so you should create more general login paths first and more specific paths later\&. If you need to move a login path within the file, you can remove it, then recreate it to add it to the end\&.
 
473
.PP
259
474
When you use the
260
475
set
261
476
command with
262
477
\fBmysql_config_editor\fR
263
 
to create a login path, you need not specify all three possible option values (host name, user name, and password)\&. Only those values given are written to the path\&. Any missing values required later can be specified when you invoke a client path to connect to the MySQL server, either in other option files or on the command line\&. Also, any options specified on the command line override those in option files, including the
264
 
\&.mylogin\&.cnf
265
 
file\&. For example, if the credentials in the
 
478
to create a login path, you need not specify all possible option values (host name, user name, password, port, socket)\&. Only those values given are written to the path\&. Any missing values required later can be specified when you invoke a client path to connect to the MySQL server, either in other option files or on the command line\&. Any options specified on the command line override those specified in the login path file or other option files\&. For example, if the credentials in the
266
479
remote
267
480
login path also apply for the host
268
 
remote2\&.example\&.com, you can connect to the server on that host like this:
 
481
remote2\&.example\&.com, connect to the server on that host like this:
269
482
.sp
270
483
.if n \{\
271
484
.RS 4
276
489
.if n \{\
277
490
.RE
278
491
.\}
279
 
.PP
280
 
The
281
 
\&.mylogin\&.cnf
282
 
file, if it exists, is read in all cases, even when the
283
 
\fB\-\-no\-defaults\fR
284
 
option is used\&. This permits passwords to be specified in a safer way than on the command line even if
285
 
\fB\-\-no\-defaults\fR
286
 
is present\&.
287
 
mysql_config_editor Commands.PP
 
492
.sp
 
493
mysql_config_editor General Options.PP
 
494
\fBmysql_config_editor\fR
 
495
supports the following general options, which may be used preceding any command named on the command line\&. For descriptions of command\-specific options, see
 
496
mysql_config_editor Commands and Command-Specific Options\&.
 
497
.sp
 
498
.RS 4
 
499
.ie n \{\
 
500
\h'-04'\(bu\h'+03'\c
 
501
.\}
 
502
.el \{\
 
503
.sp -1
 
504
.IP \(bu 2.3
 
505
.\}
 
506
.\" mysql_config_editor: help option
 
507
.\" help option: mysql_config_editor
 
508
\fB\-\-help\fR,
 
509
\fB\-?\fR
 
510
.sp
 
511
Display a general help message and exit\&.
 
512
.sp
 
513
To see a command\-specific help message, invoke
 
514
\fBmysql_config_editor\fR
 
515
as follows, where
 
516
\fIcommand\fR
 
517
is a command other than
 
518
help:
 
519
.sp
 
520
.if n \{\
 
521
.RS 4
 
522
.\}
 
523
.nf
 
524
shell> \fBmysql_config_editor \fR\fB\fIcommand\fR\fR\fB \-\-help\fR
 
525
.fi
 
526
.if n \{\
 
527
.RE
 
528
.\}
 
529
.RE
 
530
.sp
 
531
.RS 4
 
532
.ie n \{\
 
533
\h'-04'\(bu\h'+03'\c
 
534
.\}
 
535
.el \{\
 
536
.sp -1
 
537
.IP \(bu 2.3
 
538
.\}
 
539
.\" mysql_config_editor: debug option
 
540
.\" debug option: mysql_config_editor
 
541
\fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
 
542
\fB\-# \fR\fB\fIdebug_options\fR\fR
 
543
.sp
 
544
Write a debugging log\&. A typical
 
545
\fIdebug_options\fR
 
546
string is
 
547
d:t:o,\fIfile_name\fR\&. The default is
 
548
d:t:o,/tmp/mysql_config_editor\&.trace\&.
 
549
.RE
 
550
.sp
 
551
.RS 4
 
552
.ie n \{\
 
553
\h'-04'\(bu\h'+03'\c
 
554
.\}
 
555
.el \{\
 
556
.sp -1
 
557
.IP \(bu 2.3
 
558
.\}
 
559
.\" mysql_config_editor: verbose option
 
560
.\" verbose option: mysql_config_editor
 
561
\fB\-\-verbose\fR,
 
562
\fB\-v\fR
 
563
.sp
 
564
Verbose mode\&. Print more information about what the program does\&. This option may be helpful in diagnosing problems if an operation does not have the effect you expect\&.
 
565
.RE
 
566
.sp
 
567
.RS 4
 
568
.ie n \{\
 
569
\h'-04'\(bu\h'+03'\c
 
570
.\}
 
571
.el \{\
 
572
.sp -1
 
573
.IP \(bu 2.3
 
574
.\}
 
575
.\" mysql_config_editor: version option
 
576
.\" version option: mysql_config_editor
 
577
\fB\-\-version\fR,
 
578
\fB\-V\fR
 
579
.sp
 
580
Display version information and exit\&.
 
581
.RE
 
582
mysql_config_editor Commands and Command\-Specific Options.PP
288
583
This section describes the permitted
289
584
\fBmysql_config_editor\fR
290
 
commands, and the interpretation of options that have a command\-specific meaning\&. In addition,
291
 
\fBmysql_config_editor\fR
292
 
takes other options that can be used with any command, such as
293
 
\fB\-\-verbose\fR
294
 
to produce more information as
295
 
\fBmysql_config_editor\fR
296
 
executes\&. This option may be helpful in diagnosing problems if an operation does not have the effect you expect\&. For a list of supported options, see
297
 
\fBmysql_config_editor\fR Options\&.
 
585
commands, and, for each one, the command\-specific options permitted following the command name on the command line\&.
 
586
.PP
 
587
In addition,
 
588
\fBmysql_config_editor\fR
 
589
supports general options that can be used preceding any command\&. For descriptions of these options, see
 
590
mysql_config_editor General Options\&.
298
591
.PP
299
592
\fBmysql_config_editor\fR
300
593
supports these commands:
309
602
.\}
310
603
help
311
604
.sp
312
 
Display a help message and exit\&.
 
605
Display a general help message and exit\&. This command takes no following options\&.
 
606
.sp
 
607
To see a command\-specific help message, invoke
 
608
\fBmysql_config_editor\fR
 
609
as follows, where
 
610
\fIcommand\fR
 
611
is a command other than
 
612
help:
 
613
.sp
 
614
.if n \{\
 
615
.RS 4
 
616
.\}
 
617
.nf
 
618
shell> \fBmysql_config_editor \fR\fB\fIcommand\fR\fR\fB \-\-help\fR
 
619
.fi
 
620
.if n \{\
 
621
.RE
 
622
.\}
313
623
.RE
314
624
.sp
315
625
.RS 4
322
632
.\}
323
633
print [\fIoptions\fR]
324
634
.sp
325
 
Print the contents of
326
 
\&.mylogin\&.cnf
327
 
in unencrypted form\&. Passwords are displayed as
 
635
Print the contents of the login path file in unencrypted form, with the exception that passwords are displayed as
328
636
*****\&.
329
637
.sp
330
 
The
331
 
print
332
 
command takes these options:
333
 
.sp
334
 
.RS 4
335
 
.ie n \{\
336
 
\h'-04'\(bu\h'+03'\c
337
 
.\}
338
 
.el \{\
339
 
.sp -1
340
 
.IP \(bu 2.3
341
 
.\}
342
 
\fB\-\-all\fR
343
 
.sp
344
 
Print all login paths\&.
345
 
.RE
346
 
.sp
347
 
.RS 4
348
 
.ie n \{\
349
 
\h'-04'\(bu\h'+03'\c
350
 
.\}
351
 
.el \{\
352
 
.sp -1
353
 
.IP \(bu 2.3
354
 
.\}
355
 
\fB\-\-login\-path=\fR\fB\fIname\fR\fR
356
 
.sp
357
 
Print the named login path\&.
358
 
.RE
359
 
.sp
360
 
If no login path is specified, the default path name is
361
 
client\&. If both
 
638
The default login path name is
 
639
client
 
640
if no login path is named\&. If both
362
641
\fB\-\-all\fR
363
642
and
364
643
\fB\-\-login\-path\fR
365
644
are given,
366
645
\fB\-\-all\fR
367
646
takes precedence\&.
 
647
.sp
 
648
The
 
649
print
 
650
command permits these options following the command name:
 
651
.sp
 
652
.RS 4
 
653
.ie n \{\
 
654
\h'-04'\(bu\h'+03'\c
 
655
.\}
 
656
.el \{\
 
657
.sp -1
 
658
.IP \(bu 2.3
 
659
.\}
 
660
\fB\-\-help\fR,
 
661
\fB\-?\fR
 
662
.sp
 
663
Display a help message for the
 
664
print
 
665
command and exit\&.
 
666
.sp
 
667
To see a general help message, use
 
668
\fBmysql_config_editor \-\-help\fR\&.
 
669
.RE
 
670
.sp
 
671
.RS 4
 
672
.ie n \{\
 
673
\h'-04'\(bu\h'+03'\c
 
674
.\}
 
675
.el \{\
 
676
.sp -1
 
677
.IP \(bu 2.3
 
678
.\}
 
679
\fB\-\-all\fR
 
680
.sp
 
681
Print the contents of all login paths in the login path file\&.
 
682
.RE
 
683
.sp
 
684
.RS 4
 
685
.ie n \{\
 
686
\h'-04'\(bu\h'+03'\c
 
687
.\}
 
688
.el \{\
 
689
.sp -1
 
690
.IP \(bu 2.3
 
691
.\}
 
692
\fB\-\-login\-path=\fR\fB\fIname\fR\fR,
 
693
\fB\-G \fR\fB\fIname\fR\fR
 
694
.sp
 
695
Print the contents of the named login path\&.
 
696
.RE
368
697
.RE
369
698
.sp
370
699
.RS 4
377
706
.\}
378
707
remove [\fIoptions\fR]
379
708
.sp
380
 
Remove a login path from the
381
 
\&.mylogin\&.cnf
382
 
file\&.
383
 
.sp
384
 
The
385
 
remove
386
 
command takes these options:
387
 
.sp
388
 
.RS 4
389
 
.ie n \{\
390
 
\h'-04'\(bu\h'+03'\c
391
 
.\}
392
 
.el \{\
393
 
.sp -1
394
 
.IP \(bu 2.3
395
 
.\}
396
 
\fB\-\-host\fR
397
 
.sp
398
 
Remove the host name from the login path\&.
399
 
.RE
400
 
.sp
401
 
.RS 4
402
 
.ie n \{\
403
 
\h'-04'\(bu\h'+03'\c
404
 
.\}
405
 
.el \{\
406
 
.sp -1
407
 
.IP \(bu 2.3
408
 
.\}
409
 
\fB\-\-login\-path=\fR\fB\fIname\fR\fR
410
 
.sp
411
 
The login path to remove\&. If this option is not given, the default path name is
412
 
client\&.
413
 
.RE
414
 
.sp
415
 
.RS 4
416
 
.ie n \{\
417
 
\h'-04'\(bu\h'+03'\c
418
 
.\}
419
 
.el \{\
420
 
.sp -1
421
 
.IP \(bu 2.3
422
 
.\}
423
 
\fB\-\-password\fR
424
 
.sp
425
 
Remove the password from the login path\&.
426
 
.RE
427
 
.sp
428
 
.RS 4
429
 
.ie n \{\
430
 
\h'-04'\(bu\h'+03'\c
431
 
.\}
432
 
.el \{\
433
 
.sp -1
434
 
.IP \(bu 2.3
435
 
.\}
436
 
\fB\-\-port\fR
437
 
.sp
438
 
Remove the TCP/IP port number from the login path\&.
439
 
.RE
440
 
.sp
441
 
.RS 4
442
 
.ie n \{\
443
 
\h'-04'\(bu\h'+03'\c
444
 
.\}
445
 
.el \{\
446
 
.sp -1
447
 
.IP \(bu 2.3
448
 
.\}
449
 
\fB\-\-socket\fR
450
 
.sp
451
 
Remove the Unix socket file name from the login path\&.
452
 
.RE
453
 
.sp
454
 
.RS 4
455
 
.ie n \{\
456
 
\h'-04'\(bu\h'+03'\c
457
 
.\}
458
 
.el \{\
459
 
.sp -1
460
 
.IP \(bu 2.3
461
 
.\}
462
 
\fB\-\-user\fR
463
 
.sp
464
 
Remove the user name from the login path\&.
465
 
.RE
466
 
.sp
467
 
The
468
 
\fB\-\-host\fR,
469
 
\fB\-\-user\fR, and
470
 
\fB\-\-password\fR
471
 
options are supported for the
472
 
remove
473
 
command as of MySQL 5\&.6\&.9\&. The
474
 
\fB\-\-port\fR
475
 
and
476
 
\fB\-\-socket\fR
477
 
options are supported for the
478
 
remove
479
 
command as of MySQL 5\&.6\&.11
480
 
.sp
481
 
The
482
 
remove
483
 
command removes from the login path only such values as are specified with the
 
709
Remove a login path from the login path file, or modify a login path by removing options from it\&.
 
710
.sp
 
711
This command removes from the login path only such options as are specified with the
484
712
\fB\-\-host\fR,
485
713
\fB\-\-password\fR,
486
714
\fB\-\-port\fR,
487
715
\fB\-\-socket\fR, and
488
716
\fB\-\-user\fR
489
 
options\&. If none of them is given,
 
717
options\&. If none of those options are given,
490
718
remove
491
719
removes the entire login path\&. For example, this command removes only the
492
720
\fBuser\fR
493
 
value from the
494
 
client
 
721
option from the
 
722
mypath
495
723
login path rather than the entire
 
724
mypath
 
725
login path:
 
726
.sp
 
727
.if n \{\
 
728
.RS 4
 
729
.\}
 
730
.nf
 
731
shell> \fBmysql_config_editor remove \-\-login\-path=mypath \-\-user\fR
 
732
.fi
 
733
.if n \{\
 
734
.RE
 
735
.\}
 
736
.sp
 
737
This command removes the entire
 
738
mypath
 
739
login path:
 
740
.sp
 
741
.if n \{\
 
742
.RS 4
 
743
.\}
 
744
.nf
 
745
shell> \fBmysql_config_editor remove \-\-login\-path=mypath\fR
 
746
.fi
 
747
.if n \{\
 
748
.RE
 
749
.\}
 
750
.sp
 
751
The
 
752
remove
 
753
command permits these options following the command name:
 
754
.sp
 
755
.RS 4
 
756
.ie n \{\
 
757
\h'-04'\(bu\h'+03'\c
 
758
.\}
 
759
.el \{\
 
760
.sp -1
 
761
.IP \(bu 2.3
 
762
.\}
 
763
\fB\-\-help\fR,
 
764
\fB\-?\fR
 
765
.sp
 
766
Display a help message for the
 
767
remove
 
768
command and exit\&.
 
769
.sp
 
770
To see a general help message, use
 
771
\fBmysql_config_editor \-\-help\fR\&.
 
772
.RE
 
773
.sp
 
774
.RS 4
 
775
.ie n \{\
 
776
\h'-04'\(bu\h'+03'\c
 
777
.\}
 
778
.el \{\
 
779
.sp -1
 
780
.IP \(bu 2.3
 
781
.\}
 
782
\fB\-\-host\fR,
 
783
\fB\-h\fR
 
784
.sp
 
785
Remove the host name from the login path\&. This option was added in MySQL 5\&.6\&.9\&.
 
786
.RE
 
787
.sp
 
788
.RS 4
 
789
.ie n \{\
 
790
\h'-04'\(bu\h'+03'\c
 
791
.\}
 
792
.el \{\
 
793
.sp -1
 
794
.IP \(bu 2.3
 
795
.\}
 
796
\fB\-\-login\-path=\fR\fB\fIname\fR\fR,
 
797
\fB\-G \fR\fB\fIname\fR\fR
 
798
.sp
 
799
The login path to remove or modify\&. The default login path name is
496
800
client
497
 
login path:
498
 
.sp
499
 
.if n \{\
500
 
.RS 4
501
 
.\}
502
 
.nf
503
 
mysql_config_editor remove \-\-login\-path=client \-\-user
504
 
.fi
505
 
.if n \{\
506
 
.RE
507
 
.\}
508
 
.RE
509
 
.sp
510
 
.RS 4
511
 
.ie n \{\
512
 
\h'-04'\(bu\h'+03'\c
513
 
.\}
514
 
.el \{\
515
 
.sp -1
516
 
.IP \(bu 2.3
517
 
.\}
518
 
reset
519
 
.sp
520
 
Empty the contents of the
521
 
\&.mylogin\&.cnf
522
 
file\&. The file is created if it does not exist\&.
 
801
if this option is not given\&.
 
802
.RE
 
803
.sp
 
804
.RS 4
 
805
.ie n \{\
 
806
\h'-04'\(bu\h'+03'\c
 
807
.\}
 
808
.el \{\
 
809
.sp -1
 
810
.IP \(bu 2.3
 
811
.\}
 
812
\fB\-\-password\fR,
 
813
\fB\-p\fR
 
814
.sp
 
815
Remove the password from the login path\&. This option was added in MySQL 5\&.6\&.9\&.
 
816
.RE
 
817
.sp
 
818
.RS 4
 
819
.ie n \{\
 
820
\h'-04'\(bu\h'+03'\c
 
821
.\}
 
822
.el \{\
 
823
.sp -1
 
824
.IP \(bu 2.3
 
825
.\}
 
826
\fB\-\-port\fR,
 
827
\fB\-P\fR
 
828
.sp
 
829
Remove the TCP/IP port number from the login path\&. This option was added in MySQL 5\&.6\&.11\&.
 
830
.RE
 
831
.sp
 
832
.RS 4
 
833
.ie n \{\
 
834
\h'-04'\(bu\h'+03'\c
 
835
.\}
 
836
.el \{\
 
837
.sp -1
 
838
.IP \(bu 2.3
 
839
.\}
 
840
\fB\-\-socket\fR,
 
841
\fB\-S\fR
 
842
.sp
 
843
Remove the Unix socket file name from the login path\&. This option was added in MySQL 5\&.6\&.11\&.
 
844
.RE
 
845
.sp
 
846
.RS 4
 
847
.ie n \{\
 
848
\h'-04'\(bu\h'+03'\c
 
849
.\}
 
850
.el \{\
 
851
.sp -1
 
852
.IP \(bu 2.3
 
853
.\}
 
854
\fB\-\-user\fR,
 
855
\fB\-u\fR
 
856
.sp
 
857
Remove the user name from the login path\&. This option was added in MySQL 5\&.6\&.9\&.
 
858
.RE
 
859
.sp
 
860
.RS 4
 
861
.ie n \{\
 
862
\h'-04'\(bu\h'+03'\c
 
863
.\}
 
864
.el \{\
 
865
.sp -1
 
866
.IP \(bu 2.3
 
867
.\}
 
868
\fB\-\-warn\fR,
 
869
\fB\-w\fR
 
870
.sp
 
871
Warn and prompt the user for confirmation if the command attempts to remove the default login path (client) and
 
872
\fB\-\-login\-path=client\fR
 
873
was not specified\&. This option is enabled by default; use
 
874
\fB\-\-skip\-warn\fR
 
875
to disable it\&.
 
876
.RE
 
877
.RE
 
878
.sp
 
879
.RS 4
 
880
.ie n \{\
 
881
\h'-04'\(bu\h'+03'\c
 
882
.\}
 
883
.el \{\
 
884
.sp -1
 
885
.IP \(bu 2.3
 
886
.\}
 
887
reset [\fIoptions\fR]
 
888
.sp
 
889
Empty the contents of the login path file\&.
 
890
.sp
 
891
The
 
892
reset
 
893
command permits these options following the command name:
 
894
.sp
 
895
.RS 4
 
896
.ie n \{\
 
897
\h'-04'\(bu\h'+03'\c
 
898
.\}
 
899
.el \{\
 
900
.sp -1
 
901
.IP \(bu 2.3
 
902
.\}
 
903
\fB\-\-help\fR,
 
904
\fB\-?\fR
 
905
.sp
 
906
Display a help message for the
 
907
reset
 
908
command and exit\&.
 
909
.sp
 
910
To see a general help message, use
 
911
\fBmysql_config_editor \-\-help\fR\&.
 
912
.RE
523
913
.RE
524
914
.sp
525
915
.RS 4
532
922
.\}
533
923
set [\fIoptions\fR]
534
924
.sp
535
 
Write a login path to the
536
 
\&.mylogin\&.cnf
537
 
file\&.
538
 
.sp
539
 
The
540
 
set
541
 
command takes these options:
542
 
.sp
543
 
.RS 4
544
 
.ie n \{\
545
 
\h'-04'\(bu\h'+03'\c
546
 
.\}
547
 
.el \{\
548
 
.sp -1
549
 
.IP \(bu 2.3
550
 
.\}
551
 
\fB\-\-host=\fR\fB\fIhost_name\fR\fR
552
 
.sp
553
 
The host name to write to the login path\&.
554
 
.RE
555
 
.sp
556
 
.RS 4
557
 
.ie n \{\
558
 
\h'-04'\(bu\h'+03'\c
559
 
.\}
560
 
.el \{\
561
 
.sp -1
562
 
.IP \(bu 2.3
563
 
.\}
564
 
\fB\-\-login\-path=\fR\fB\fIname\fR\fR
565
 
.sp
566
 
The login path to create\&. If this option is not given, the default path name is
567
 
client\&.
568
 
.RE
569
 
.sp
570
 
.RS 4
571
 
.ie n \{\
572
 
\h'-04'\(bu\h'+03'\c
573
 
.\}
574
 
.el \{\
575
 
.sp -1
576
 
.IP \(bu 2.3
577
 
.\}
578
 
\fB\-\-password\fR
579
 
.sp
580
 
Prompt for a password to write to the login path\&.
581
 
.RE
582
 
.sp
583
 
.RS 4
584
 
.ie n \{\
585
 
\h'-04'\(bu\h'+03'\c
586
 
.\}
587
 
.el \{\
588
 
.sp -1
589
 
.IP \(bu 2.3
590
 
.\}
591
 
\fB\-\-port=\fR\fB\fIport_num\fR\fR
592
 
.sp
593
 
The TCP/IP port number to write to the login path\&.
594
 
.RE
595
 
.sp
596
 
.RS 4
597
 
.ie n \{\
598
 
\h'-04'\(bu\h'+03'\c
599
 
.\}
600
 
.el \{\
601
 
.sp -1
602
 
.IP \(bu 2.3
603
 
.\}
604
 
\fB\-\-socket=\fR\fB\fIfile_name\fR\fR
605
 
.sp
606
 
The Unix socket file to write to the login path\&.
607
 
.RE
608
 
.sp
609
 
.RS 4
610
 
.ie n \{\
611
 
\h'-04'\(bu\h'+03'\c
612
 
.\}
613
 
.el \{\
614
 
.sp -1
615
 
.IP \(bu 2.3
616
 
.\}
617
 
\fB\-\-user=\fR\fB\fIuser_name\fR\fR
618
 
.sp
619
 
The user name to write to the login path\&.
620
 
.RE
621
 
.sp
622
 
The
623
 
\fB\-\-port\fR
624
 
and
625
 
\fB\-\-socket\fR
626
 
options are supported for the
627
 
set
628
 
command as of MySQL 5\&.6\&.11
629
 
.sp
630
 
The
631
 
set
632
 
command writes to the login path only such values as are specified with the
 
925
Write a login path to the login path file\&.
 
926
.sp
 
927
This command writes to the login path only such options as are specified with the
633
928
\fB\-\-host\fR,
634
929
\fB\-\-password\fR,
635
930
\fB\-\-port\fR,
639
934
\fBmysql_config_editor\fR
640
935
writes the login path as an empty group\&.
641
936
.sp
642
 
To specify an empty password, use the
643
 
set
644
 
command with the
645
 
\fB\-\-password\fR
646
 
option, then press Enter at the password prompt\&. The resulting login path written to
647
 
\&.mylogin\&.cnf
648
 
will include a line like this:
649
 
.sp
650
 
.if n \{\
651
 
.RS 4
652
 
.\}
653
 
.nf
654
 
password =
655
 
.fi
656
 
.if n \{\
657
 
.RE
658
 
.\}
659
 
.sp
660
 
If the login path already exists in
661
 
\&.mylogin\&.cnf, the
662
 
set
663
 
command replaces it\&. To ensure that this is what the user wants,
664
 
\fBmysql_config_editor\fR
665
 
prints a warning and prompts for confirmation\&. To suppress the warning and prompt, use the
666
 
\fB\-\-skip\-warn\fR
667
 
option\&.
668
 
.RE
669
 
mysql_config_editor Options.PP
670
 
\fBmysql_config_editor\fR
671
 
supports the following options\&.
 
937
The
 
938
set
 
939
command permits these options following the command name:
672
940
.sp
673
941
.RS 4
674
942
.ie n \{\
678
946
.sp -1
679
947
.IP \(bu 2.3
680
948
.\}
681
 
.\" mysql_config_editor: help option
682
 
.\" help option: mysql_config_editor
683
949
\fB\-\-help\fR,
684
950
\fB\-?\fR
685
951
.sp
686
 
Display a help message and exit\&. If preceded by a command name such as
 
952
Display a help message for the
687
953
set
688
 
or
689
 
remove, displays information about that command\&.
690
 
.RE
691
 
.sp
692
 
.RS 4
693
 
.ie n \{\
694
 
\h'-04'\(bu\h'+03'\c
695
 
.\}
696
 
.el \{\
697
 
.sp -1
698
 
.IP \(bu 2.3
699
 
.\}
700
 
.\" mysql_config_editor: all option
701
 
.\" all option: mysql_config_editor
702
 
\fB\-\-all\fR
703
 
.sp
704
 
For the
705
 
print
706
 
command, print all login paths in the login file\&.
707
 
.RE
708
 
.sp
709
 
.RS 4
710
 
.ie n \{\
711
 
\h'-04'\(bu\h'+03'\c
712
 
.\}
713
 
.el \{\
714
 
.sp -1
715
 
.IP \(bu 2.3
716
 
.\}
717
 
.\" mysql_config_editor: debug option
718
 
.\" debug option: mysql_config_editor
719
 
\fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
720
 
\fB\-# \fR\fB\fIdebug_options\fR\fR
721
 
.sp
722
 
Write a debugging log\&. A typical
723
 
\fIdebug_options\fR
724
 
string is
725
 
d:t:o,\fIfile_name\fR\&. The default is
726
 
d:t:o\&.
727
 
.RE
728
 
.sp
729
 
.RS 4
730
 
.ie n \{\
731
 
\h'-04'\(bu\h'+03'\c
732
 
.\}
733
 
.el \{\
734
 
.sp -1
735
 
.IP \(bu 2.3
736
 
.\}
737
 
.\" mysql_config_editor: host option
738
 
.\" host option: mysql_config_editor
 
954
command and exit\&.
 
955
.sp
 
956
To see a general help message, use
 
957
\fBmysql_config_editor \-\-help\fR\&.
 
958
.RE
 
959
.sp
 
960
.RS 4
 
961
.ie n \{\
 
962
\h'-04'\(bu\h'+03'\c
 
963
.\}
 
964
.el \{\
 
965
.sp -1
 
966
.IP \(bu 2.3
 
967
.\}
739
968
\fB\-\-host=\fR\fB\fIhost_name\fR\fR,
740
969
\fB\-h \fR\fB\fIhost_name\fR\fR
741
970
.sp
742
 
For the
743
 
set
744
 
command, the host name to write to the login path\&. For the
745
 
remove
746
 
command, removes the host name from the login path\&.
 
971
The host name to write to the login path\&.
747
972
.RE
748
973
.sp
749
974
.RS 4
754
979
.sp -1
755
980
.IP \(bu 2.3
756
981
.\}
757
 
.\" mysql_config_editor: login-path option
758
 
.\" login-path option: mysql_config_editor
759
982
\fB\-\-login\-path=\fR\fB\fIname\fR\fR,
760
983
\fB\-G \fR\fB\fIname\fR\fR
761
984
.sp
762
 
For the
763
 
print,
764
 
remove, and
765
 
set
766
 
commands, the login path to use in the
767
 
\&.mylogin\&.cnf
768
 
login file\&.
769
 
.sp
770
 
Client programs also support the
771
 
\fB\-\-login\-path\fR
772
 
option, to enable users to specify which login path to use for connecting to a MySQL server\&. For client programs,
773
 
\fB\-\-login\-path\fR
774
 
must be the first option given, which is not true for
775
 
\fBmysql_config_editor\fR\&. See
776
 
Section\ \&4.2.7, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
 
985
The login path to create\&. The default login path name is
 
986
client
 
987
if this option is not given\&.
777
988
.RE
778
989
.sp
779
990
.RS 4
784
995
.sp -1
785
996
.IP \(bu 2.3
786
997
.\}
787
 
.\" mysql_config_editor: password option
788
 
.\" password option: mysql_config_editor
789
998
\fB\-\-password\fR,
790
999
\fB\-p\fR
791
1000
.sp
792
 
For the
793
 
set
794
 
command, cause
795
 
\fBmysql_config_editor\fR
796
 
to prompt for a password and write the value entered by the user to the login path\&. After
797
 
\fBmysql_config_editor\fR
798
 
starts and displays the prompt, the user should type the password and press Enter\&. To prevent other users from seeing the password,
 
1001
Prompt for a password to write to the login path\&. After
 
1002
\fBmysql_config_editor\fR
 
1003
displays the prompt, type the password and press Enter\&. To prevent other users from seeing the password,
799
1004
\fBmysql_config_editor\fR
800
1005
does not echo it\&.
801
1006
.sp
802
 
This option does not permit a password value following the option name\&. That is, with
803
 
\fBmysql_config_editor\fR, you never enter a password on the command line where it might be seen by other users\&. This differs from most other MySQL programs, which permit the password to be given on the command line as
804
 
\fB\-\-password=\fR\fB\fIpass_val\fR\fR
805
 
or
806
 
\fB\-p\fR\fB\fIpass_val\fR\fR\&. (That practice is insecure and should be avoided, however\&.)
 
1007
To specify an empty password, press Enter at the password prompt\&. The resulting login path written to the login path file will include a line like this:
807
1008
.sp
808
 
For the
809
 
remove
810
 
command, removes the password from the login path\&.
 
1009
.if n \{\
 
1010
.RS 4
 
1011
.\}
 
1012
.nf
 
1013
password =
 
1014
.fi
 
1015
.if n \{\
 
1016
.RE
 
1017
.\}
811
1018
.RE
812
1019
.sp
813
1020
.RS 4
818
1025
.sp -1
819
1026
.IP \(bu 2.3
820
1027
.\}
821
 
.\" mysql_config_editor: port option
822
 
.\" port option: mysql_config_editor
823
1028
\fB\-\-port=\fR\fB\fIport_num\fR\fR,
824
1029
\fB\-P \fR\fB\fIport_num\fR\fR
825
1030
.sp
826
 
For the
827
 
set
828
 
command, the TCP/IP port number to write to the login path\&. For the
829
 
remove
830
 
command, removes the port number from the login path\&.
 
1031
The TCP/IP port number to write to the login path\&. This option was added in MySQL 5\&.6\&.11\&.
831
1032
.RE
832
1033
.sp
833
1034
.RS 4
838
1039
.sp -1
839
1040
.IP \(bu 2.3
840
1041
.\}
841
 
.\" mysql_config_editor: socket option
842
 
.\" socket option: mysql_config_editor
843
1042
\fB\-\-socket=\fR\fB\fIfile_name\fR\fR,
844
1043
\fB\-S \fR\fB\fIfile_name\fR\fR
845
1044
.sp
846
 
For the
847
 
set
848
 
command, the Unix socket file name to write to the login path\&. For the
849
 
remove
850
 
command, removes the socket file from the login path\&.
 
1045
The Unix socket file name to write to the login path\&. This option was added in MySQL 5\&.6\&.11\&.
851
1046
.RE
852
1047
.sp
853
1048
.RS 4
858
1053
.sp -1
859
1054
.IP \(bu 2.3
860
1055
.\}
861
 
.\" mysql_config_editor: user option
862
 
.\" user option: mysql_config_editor
863
1056
\fB\-\-user=\fR\fB\fIuser_name\fR\fR,
864
1057
\fB\-u \fR\fB\fIuser_name\fR\fR
865
1058
.sp
866
 
For the
867
 
set
868
 
command, the user name to write to the login path\&. For the
869
 
remove
870
 
command, removes the user name from the login path\&.
871
 
.RE
872
 
.sp
873
 
.RS 4
874
 
.ie n \{\
875
 
\h'-04'\(bu\h'+03'\c
876
 
.\}
877
 
.el \{\
878
 
.sp -1
879
 
.IP \(bu 2.3
880
 
.\}
881
 
.\" mysql_config_editor: verbose option
882
 
.\" verbose option: mysql_config_editor
883
 
\fB\-\-verbose\fR,
884
 
\fB\-v\fR
885
 
.sp
886
 
Verbose mode\&. Print more information about what the program does\&.
887
 
.RE
888
 
.sp
889
 
.RS 4
890
 
.ie n \{\
891
 
\h'-04'\(bu\h'+03'\c
892
 
.\}
893
 
.el \{\
894
 
.sp -1
895
 
.IP \(bu 2.3
896
 
.\}
897
 
.\" mysql_config_editor: version option
898
 
.\" version option: mysql_config_editor
899
 
\fB\-\-version\fR,
900
 
\fB\-V\fR
901
 
.sp
902
 
Display version information and exit\&.
903
 
.RE
904
 
.sp
905
 
.RS 4
906
 
.ie n \{\
907
 
\h'-04'\(bu\h'+03'\c
908
 
.\}
909
 
.el \{\
910
 
.sp -1
911
 
.IP \(bu 2.3
912
 
.\}
913
 
.\" mysql_config_editor: warn option
914
 
.\" warn option: mysql_config_editor
 
1059
The user name to write to the login path\&.
 
1060
.RE
 
1061
.sp
 
1062
.RS 4
 
1063
.ie n \{\
 
1064
\h'-04'\(bu\h'+03'\c
 
1065
.\}
 
1066
.el \{\
 
1067
.sp -1
 
1068
.IP \(bu 2.3
 
1069
.\}
915
1070
\fB\-\-warn\fR,
916
1071
\fB\-w\fR
917
1072
.sp
918
 
For the
919
 
set
920
 
command, warn and prompt the user for confirmation if the command attempts to overwrite an existing login path\&. This option is enabled by default; use
 
1073
Warn and prompt the user for confirmation if the command attempts to overwrite an existing login path\&. This option is enabled by default; use
921
1074
\fB\-\-skip\-warn\fR
922
1075
to disable it\&.
923
1076
.RE
 
1077
.RE
924
1078
.SH "COPYRIGHT"
925
1079
.br
926
1080
.PP