-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathoptions.txt
325 lines (231 loc) · 11.3 KB
/
options.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
The contents of this file have been copied to the README
so it is obsolete. It will be removed in a later release.
Some details about ocelotgui options.
An option is a named value which affects connecting and behavior.
Most [ocelot] options are very similar to options of the mysql client.
The places that an option might be specified are:
within the program for example the default port value is 3306,
in an environment variable for example "export MYSQL_TCP_PORT=3306",
in a configuration file for example "port=3306" in $HOME/.my.cnf,
on the command line for example "./ocelotgui --port=3306",
or on the File|Connect dialog box.
Environment Variables
The ocelotgui program will look at these variables:
HOME, LD_RUN_PATH, MYSQL_GROUP_SUFFIX, MYSQL_HISTFILE,
MYSQL_HISTIGNORE, MYSQL_HOST, MYSQL_PS1, MYSQL_PWD.
MYSQL_TCP_PORT, MYSQL_UNIX_PORT, MYSQL_TEST_LOGIN_FILE.
Option Files
The ocelotgui program will look in these option files:
/etc/my.cnf, /etc/mysql/my.cnf, [SYSCONFDIR]/my.cnf,
[defaults-extra-file], $HOME/.my.cnf, $HOME/.mylogin.cnf.
Within option files, the ocelotgui program will look
in these groups: [client] [mysql] [ocelot], as well
as groups specified by MYSQL_GROUP_SUFFIX.
On Windows, the order is different: %system, %windir,
[application-directory], %MYSQL_HOME%, [defaults-extra-file].
Command Line
The ocelotgui program will look at command-line arguments
which are specified in short form such as "-p 3306", or
which are specified in long form such as "--port=3306".
Dialog Box
A dialog box will appear if the user enters a user statement
"CONNECT;" or if the user chooses menu item File|Connect.
The user will be advised to do this at startup time if an
initial attempt to connect fails.
Example
The default value for "port" is 3306, this is
hard coded in the ocelotgui source.
The environment variable value for "port" is 3307, this is
set by "export MYSQL_TCP_PORT=3307" before starting ocelotgui.
The option file value for "port" is 3308, this is
set by putting "PORT=3308" in the [mysql] group in
the $HOME/.mysql.cnf file.
The command-line value for "port" is 3309, this is
set by putting "--port=3309" on the command line
when starting the ocelotgui program.
The dialog-box value for "port" is 3310, this is
set by choosing File|Connect, entering "3310" in
the widget labelled "Port", and clicking "OK".
The ocelotgui program reads the settings in the
above order, therefore the port number is 3310.
The Options
Options in the following list are in the same order that one sees
on the File|Connect dialog box: first come the 8 important connect
options (host, port, user, database, socket, password, protocol,
init_command), then all the other options in alphabetical order.
Unless otherwise stated, options are specifiable by saying
[option_name] = [value] in an option file or
--[option_name] = [value] on the command line
(sometimes --[option_name] alone is sufficient for true|false values),
or in the dialog box.
If an option value is irrelevant or invalid, the ocelotgui program
ignores it without displaying an error message.
host: Server address. Specifiable with MYSQL_HOST
environment variable, with host= in an option file, with
-h or --host on the command line, or in dialog box.
Example values: localhost 192.15.8.44 [email protected].
Warning: if host=localhost, ocelotgui tries to use a socket,
if this is not desirable then say localhost=127.0.0.1 instead.
port: Port that the server listens on, if the protocol is
TCP. Specifiable with
MYSQL_TCP_PORT environment variable, with port= in an option
file, with -P or --port on the command line, or in dialog box.
Example values: 3306 3307.
user: User name. Specifiable with user= in an option file,
with -u or --user on the command line, or in dialog box.
Example values: root guest jsmith.
database: Database name also known as schema name. Specifiable
with database= in an option file, with -D or --database on the
command line, or in dialog box. Example values: test account_data.
socket: Socket name that the server receives on, if the
protocol is SOCKET. Specifiable with socket= in an option file,
with -S or --socket= on the command line, or in dialog box.
Examples: var/lib/special.sock /home/user/x.sock.
password: Password associated with the user. Specifiable
with password= in an option file, with -p or --password= on
the command line, or in dialog box. If the password is
required but not specified, the dialog box will always appear.
Examples: sesame top_secret#1
protocol: How the connection to the server occurs. Possible
values are: blank or TCP or SOCKET. If host=localhost and
protocol is blank, then SOCKET is assumed. Specifiable with
protocol= in an option file, with --protocol= on the command
line, or in dialog box. Examples: tcp socket.
init_command: Initial statement that should be executed as
soon as connect is complete. Example: "select current_user()".
auto_rehash. If 1 (true), ocelotgui may try to
complete names.
auto_vertical_output. If 1 (true), ocelotgui will display
with one column per row.
batch. Mostly ignored, but if 1 (true), history is not written.
compress. If 1 (true), value is passed to the server.
connect_expired_password. If 1 (true), ocelotgui goes into
sandbox mode if a password has expired at connect time.
connect_timeout. Ignored.
debug. Ignored.
debug_check. Ignored.
debug_info. Ignored.
default_auth. Ignored.
default_character_set. Ignored, ocelotgui needs UTF-8.
defaults_extra_file. Name of an additional option file.
defaults_file. Ignored.
defaults_group_suffix. Suffix that is added to the regular group
names for option files. For example, if defaults_group_suffix=_X,
then ocelotgui will look at options in groups client_X and mysql_X and
ocelot_X in addition to options in groups client and mysql and ocelot.
delimiter. What ends a statement, usually semicolon ";".
enable_cleartext_plugin. Ignored.
execute. String to execute followed by program exit.
force. Ignored, ocelotgui always ignores errors in options.
help. Display a help message followed by program exit.
histfile. Name of file where statements are logged to, usually
".mysql_history". Ignored if batch=1. Ignored if
histfile=/dev/null.
histignore. Pattern to ignore when writing to histfile.
For example, if histignoreis "*select*", then statements
containing the string "select" will not be written.
html. If one starts ocelotgui with --html, the grid display
will be based on HTML rather than on widgets, making results
look quite different. If one starts ocelotgui with --html --raw,
the actual html markup code will appear.
ignore_spaces. Ignored.
ld_run_path. Where to look for libmysqlclient.so. Click help|libmysqlclient
for details.
line_numbers. Ignored.
local_infile. If 1 (true), passed to the server.
login_path. Where to find login file if it's not "~/.mylogin.cnf".
max_allowed_packet. Passed to the server. Default 16777216.
max_join_size. Passed to the server. Default 1000000.
named_commands. Ignored.
net_buffer_length. Passed to the server. Default 16384.
no_beep. Ignored, ocelotgui does not usually beep when errors occur.
no_defaults. If 1 (true), options in environment variables and option
files are read but not used.
ocelot_* ... Options that begin with "ocelot_" are only recognized
by the ocelotgui client. Everything on the Settings menu has an
associated option name. The intuitively-named settings options are:
ocelot_extra_rule_1_text_color ocelot_extra_rule_1_background_color
ocelot_extra_rule_1_condition ocelot_extra_rule_1_display_as
ocelot_grid_text_color ocelot_grid_background_color
ocelot_grid_border_color ocelot_grid_header_background_color
ocelot_grid_font_size ocelot_grid_font_style
ocelot_grid_font_weight ocelot_grid_cell_border_color
ocelot_grid_outer_color ocelot_grid_border_size
ocelot_grid_cell_border_size ocelot_grid_html_settings
ocelot_history_text_color ocelot_history_background_color
ocelot_history_border_color ocelot_history_font_family
ocelot_history_font_size ocelot_history_font_style
ocelot_history_font_weight ocelot_menu_text_color
ocelot_menu_background_color ocelot_menu_border_color
ocelot_menu_font_family ocelot_menu_font_size
ocelot_menu_font_style ocelot_menu_font_weight
ocelot_statement_text_color ocelot_statement_background_color
ocelot_statement_border_color ocelot_statement_font_family
ocelot_statement_font_size ocelot_statement_font_style
ocelot_statement_font_weight ocelot_statement_highlight_literal_color
ocelot_statement_highlight_identifier_color ocelot_statement_highlight_comment_color
ocelot_statement_highlight_operator_color ocelot_statement_highlight_keyword_color
ocelot_statement_prompt_background_color ocelot_statement_highlight_function_color
ocelot_statement_highlight_current_line_color.
See also: the ocelot_ options which aren't related to Settings, below.
ocelot_client_side_functions: ocelot_client_side_functions=0 turns off
the client-side functions, such as "select row_number() over ...".
This may be unnecessary with newer versions of MariaDB.
The default is 1.
ocelot_dbms: --ocelot_dbms=x means assume the server DBMS is x
until connection is made. The possible values are 'mysql',
'mariadb', and 'tarantool'. The default is 'mysql'.
ocelot_grid_tabs: ocelot_grid_tabs=5
means assume that a stored procedure can return up to 5 result sets.
The default is 16.
ocelot_language: --ocelot_language='english' means the menu and the
client error messages should be in English, --ocelot_language='french'
means the menu and the client error messages should be in French.
The default is 'english'.
ocelot_statement_syntax_checker: setting
ocelot_statement_syntax_checker=1 turns on the
syntax checker; setting ocelot_statement_syntax_checker=2
turns on the syntax checker and is insistent -- if ocelotgui
doesn't like the syntax checker, a confirmation dialog box
will appear. The default is 1.
ocelot_shortcut_connect, ocelotshortcut_exit, etc:
you can change what the shortcut is, for any menu
item, by specifying its name and a new keysequence.
For example: SET ocelot_shortcut_paste = 'Ctrl+Shift+K';
one_database. Ignored.
pager. Ignored.
pipe. Ignored.
plugin_dir. Ignored.
print_defaults. If 1 (true), ocelotgui displays defaults and exits.
prompt. What to display on left of statement lines.
Default is "mysql>".
The prompt can include special character sequences
for date, time, and line number.
quick. Ignored.
raw. Ignored.
reconnect. Ignored.
safe_updates. If 1 (true), ocelotgui passes 1 to the server.
secure_auth. If 1 (true), ocelotgui passes 1 to the server.
select_limit. The maximum number of rows to select; default is 0
which means infinity; ocelotgui passes this to the server.
server_public_key. Ignored.
shared_memory_base_name. Ignored.
show_warnings. If 1 (true), ocelotgui displays warnings which
result from problems that the server detects.
sigint_ignore. If 1 (true), ocelotgui will not stop statements
when user types control-C or chooses the menu item Run|Kill.
silent. Ignored.
ssl, ssl_ca, ssl_capath, ssl_cert, ssl_cipher, ssl_crl,
ssl_crlpath, ssl_key, ssl_verify_server_cert. SSL options
are accepted and passed to the server.
syslog. Ignored.
table. Ignored.
tee. Name of a file to dump statements and results to.
unbuffered. Ignored.
verbose. Ignored.
version. If 1 (true), ocelotgui displays a version number and exits.
vertical. If 1 (true), results are displayed with one column
per line.
wait. Ignored.
xml. If one starts with ocelotgui --xml, the grid display will
show raw xml. See also --html.