Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
dfa90af1
Commit
dfa90af1
authored
Nov 08, 2002
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--use-frm option to mysqlcheck
parent
3f96bc06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
client/client_priv.h
client/client_priv.h
+2
-2
client/mysqlcheck.c
client/mysqlcheck.c
+8
-3
No files found.
client/client_priv.h
View file @
dfa90af1
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
/* Common defines for all clients */
/* Common defines for all clients */
#include <my_global.h>
#include <my_global.h>
#include <my_sys.h>
#include <my_sys.h>
#include <m_string.h>
#include <m_string.h>
#include <mysql.h>
#include <mysql.h>
#include <mysql_embed.h>
#include <mysql_embed.h>
...
@@ -37,4 +37,4 @@ enum options { OPT_CHARSETS_DIR=256, OPT_DEFAULT_CHARSET,
...
@@ -37,4 +37,4 @@ enum options { OPT_CHARSETS_DIR=256, OPT_DEFAULT_CHARSET,
OPT_SELECT_LIMIT
,
OPT_MAX_JOIN_SIZE
,
OPT_SSL_SSL
,
OPT_SELECT_LIMIT
,
OPT_MAX_JOIN_SIZE
,
OPT_SSL_SSL
,
OPT_SSL_KEY
,
OPT_SSL_CERT
,
OPT_SSL_CA
,
OPT_SSL_CAPATH
,
OPT_SSL_KEY
,
OPT_SSL_CERT
,
OPT_SSL_CA
,
OPT_SSL_CAPATH
,
OPT_SSL_CIPHER
,
OPT_SHUTDOWN_TIMEOUT
,
OPT_LOCAL_INFILE
,
OPT_SSL_CIPHER
,
OPT_SHUTDOWN_TIMEOUT
,
OPT_LOCAL_INFILE
,
OPT_PROMPT
,
OPT_IGN_LINES
,
OPT_TRANSACTION
};
OPT_PROMPT
,
OPT_IGN_LINES
,
OPT_TRANSACTION
,
OPT_FRM
};
client/mysqlcheck.c
View file @
dfa90af1
...
@@ -34,7 +34,7 @@ static my_bool opt_alldbs = 0, opt_check_only_changed = 0, opt_extended = 0,
...
@@ -34,7 +34,7 @@ static my_bool opt_alldbs = 0, opt_check_only_changed = 0, opt_extended = 0,
opt_compress
=
0
,
opt_databases
=
0
,
opt_fast
=
0
,
opt_compress
=
0
,
opt_databases
=
0
,
opt_fast
=
0
,
opt_medium_check
=
0
,
opt_quick
=
0
,
opt_all_in_1
=
0
,
opt_medium_check
=
0
,
opt_quick
=
0
,
opt_all_in_1
=
0
,
opt_silent
=
0
,
opt_auto_repair
=
0
,
ignore_errors
=
0
,
opt_silent
=
0
,
opt_auto_repair
=
0
,
ignore_errors
=
0
,
tty_password
=
0
;
tty_password
=
0
,
opt_frm
=
0
;
static
uint
verbose
=
0
,
opt_mysql_port
=
0
;
static
uint
verbose
=
0
,
opt_mysql_port
=
0
;
static
my_string
opt_mysql_unix_port
=
0
;
static
my_string
opt_mysql_unix_port
=
0
;
static
char
*
opt_password
=
0
,
*
current_user
=
0
,
*
default_charset
=
0
,
static
char
*
opt_password
=
0
,
*
current_user
=
0
,
*
default_charset
=
0
,
...
@@ -128,13 +128,17 @@ static struct my_option my_long_options[] =
...
@@ -128,13 +128,17 @@ static struct my_option my_long_options[] =
{
"user"
,
'u'
,
"User for login if not current user."
,
(
gptr
*
)
&
current_user
,
{
"user"
,
'u'
,
"User for login if not current user."
,
(
gptr
*
)
&
current_user
,
(
gptr
*
)
&
current_user
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
(
gptr
*
)
&
current_user
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#endif
#endif
{
"use-frm"
,
OPT_FRM
,
"When used with REPAIR, get table structure from .frm file, so the table can be repaired even if .MYI header is corrupted."
,
(
gptr
*
)
&
opt_frm
,
(
gptr
*
)
&
opt_frm
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"verbose"
,
'v'
,
"Print info about the various stages."
,
0
,
0
,
0
,
GET_NO_ARG
,
{
"verbose"
,
'v'
,
"Print info about the various stages."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"version"
,
'V'
,
"Output version information and exit."
,
0
,
0
,
0
,
GET_NO_ARG
,
{
"version"
,
'V'
,
"Output version information and exit."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
}
{
0
,
0
,
0
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
}
};
};
static
const
char
*
load_default_groups
[]
=
{
"mysqlcheck"
,
"client"
,
0
};
static
const
char
*
load_default_groups
[]
=
{
"mysqlcheck"
,
"client"
,
0
};
...
@@ -223,7 +227,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -223,7 +227,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
opt_password
=
my_strdup
(
argument
,
MYF
(
MY_FAE
));
opt_password
=
my_strdup
(
argument
,
MYF
(
MY_FAE
));
while
(
*
argument
)
*
argument
++=
'x'
;
/* Destroy argument */
while
(
*
argument
)
*
argument
++=
'x'
;
/* Destroy argument */
if
(
*
start
)
if
(
*
start
)
start
[
1
]
=
0
;
/* Cut length of argument */
start
[
1
]
=
0
;
/* Cut length of argument */
}
}
else
else
tty_password
=
1
;
tty_password
=
1
;
...
@@ -452,6 +456,7 @@ static int handle_request_for_tables(char *tables, uint length)
...
@@ -452,6 +456,7 @@ static int handle_request_for_tables(char *tables, uint length)
op
=
"REPAIR"
;
op
=
"REPAIR"
;
if
(
opt_quick
)
end
=
strmov
(
end
,
" QUICK"
);
if
(
opt_quick
)
end
=
strmov
(
end
,
" QUICK"
);
if
(
opt_extended
)
end
=
strmov
(
end
,
" EXTENDED"
);
if
(
opt_extended
)
end
=
strmov
(
end
,
" EXTENDED"
);
if
(
opt_frm
)
end
=
strmov
(
end
,
" USE_FRM"
);
break
;
break
;
case
DO_ANALYZE
:
case
DO_ANALYZE
:
op
=
"ANALYZE"
;
op
=
"ANALYZE"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment