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
9971b2f0
Commit
9971b2f0
authored
Jan 06, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for --default-character-set to mysqladmin (Bug #7524)
parent
a3f184f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
client/mysqladmin.cc
client/mysqladmin.cc
+7
-1
No files found.
client/mysqladmin.cc
View file @
9971b2f0
...
...
@@ -33,7 +33,8 @@
#define SHUTDOWN_DEF_TIMEOUT 3600
/* Wait for shutdown */
#define MAX_TRUNC_LENGTH 3
char
*
host
=
NULL
,
*
user
=
0
,
*
opt_password
=
0
;
char
*
host
=
NULL
,
*
user
=
0
,
*
opt_password
=
0
,
*
default_charset
=
NULL
;
char
truncated_var_names
[
MAX_MYSQL_VAR
][
MAX_TRUNC_LENGTH
];
char
ex_var_names
[
MAX_MYSQL_VAR
][
FN_REFLEN
];
ulonglong
last_values
[
MAX_MYSQL_VAR
];
...
...
@@ -145,6 +146,9 @@ static struct my_option my_long_options[] =
{
"character-sets-dir"
,
OPT_CHARSETS_DIR
,
"Directory where character sets are."
,
(
gptr
*
)
&
charsets_dir
,
(
gptr
*
)
&
charsets_dir
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"default-character-set"
,
OPT_DEFAULT_CHARSET
,
"Set the default character set."
,
(
gptr
*
)
&
default_charset
,
(
gptr
*
)
&
default_charset
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"help"
,
'?'
,
"Display this help and exit."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"host"
,
'h'
,
"Connect to host."
,
(
gptr
*
)
&
host
,
(
gptr
*
)
&
host
,
0
,
GET_STR
,
...
...
@@ -343,6 +347,8 @@ int main(int argc,char *argv[])
if
(
shared_memory_base_name
)
mysql_options
(
&
mysql
,
MYSQL_SHARED_MEMORY_BASE_NAME
,
shared_memory_base_name
);
#endif
if
(
default_charset
)
mysql_options
(
&
mysql
,
MYSQL_SET_CHARSET_NAME
,
default_charset
);
if
(
sql_connect
(
&
mysql
,
option_wait
))
{
unsigned
int
err
=
mysql_errno
(
&
mysql
);
...
...
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