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
9d764856
Commit
9d764856
authored
May 12, 2009
by
Jim Winstead
Browse files
Options
Browse Files
Download
Plain Diff
Merge in approved bug-fixes
parents
555cbdb7
224ef7ff
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
54 additions
and
17 deletions
+54
-17
client/mysql.cc
client/mysql.cc
+8
-2
client/mysql_upgrade.c
client/mysql_upgrade.c
+2
-0
client/mysqladmin.cc
client/mysqladmin.cc
+11
-3
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+2
-0
client/mysqlcheck.c
client/mysqlcheck.c
+2
-0
client/mysqldump.c
client/mysqldump.c
+2
-0
client/mysqlimport.c
client/mysqlimport.c
+2
-0
client/mysqlshow.c
client/mysqlshow.c
+2
-0
client/mysqlslap.c
client/mysqlslap.c
+2
-0
client/mysqltest.cc
client/mysqltest.cc
+2
-0
extra/innochecksum.c
extra/innochecksum.c
+1
-1
scripts/mysql_zap.sh
scripts/mysql_zap.sh
+2
-2
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+8
-8
scripts/mysqldumpslow.sh
scripts/mysqldumpslow.sh
+8
-1
No files found.
client/mysql.cc
View file @
9d764856
...
...
@@ -1183,7 +1183,12 @@ int main(int argc,char *argv[])
histfile
=
0
;
}
}
if
(
histfile
)
/* We used to suggest setting MYSQL_HISTFILE=/dev/null. */
if
(
histfile
&&
strncmp
(
histfile
,
"/dev/null"
,
10
)
==
0
)
histfile
=
NULL
;
if
(
histfile
&&
histfile
[
0
])
{
if
(
verbose
)
tee_fprintf
(
stdout
,
"Reading history-file %s
\n
"
,
histfile
);
...
...
@@ -1218,7 +1223,8 @@ sig_handler mysql_end(int sig)
{
mysql_close
(
&
mysql
);
#ifdef HAVE_READLINE
if
(
!
status
.
batch
&&
!
quick
&&
!
opt_html
&&
!
opt_xml
&&
histfile
)
if
(
!
status
.
batch
&&
!
quick
&&
!
opt_html
&&
!
opt_xml
&&
histfile
&&
histfile
[
0
])
{
/* write-history */
if
(
verbose
)
...
...
client/mysql_upgrade.c
View file @
9d764856
...
...
@@ -231,6 +231,8 @@ get_one_option(int optid, const struct my_option *opt,
break
;
case
'p'
:
if
(
argument
==
disabled_my_option
)
argument
=
(
char
*
)
""
;
// Don't require password
tty_password
=
1
;
add_option
=
FALSE
;
if
(
argument
)
...
...
client/mysqladmin.cc
View file @
9d764856
...
...
@@ -232,6 +232,8 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
opt_count_iterations
=
1
;
break
;
case
'p'
:
if
(
argument
==
disabled_my_option
)
argument
=
(
char
*
)
""
;
// Don't require password
if
(
argument
)
{
char
*
start
=
argument
;
...
...
@@ -677,10 +679,16 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
pos
=
argv
[
1
];
for
(;;)
{
if
(
mysql_kill
(
mysql
,(
ulong
)
atol
(
pos
)))
/* We don't use mysql_kill(), since it only handles 32-bit IDs. */
char
buff
[
26
],
*
out
;
/* "KILL " + max 20 digs + NUL */
out
=
strxmov
(
buff
,
"KILL "
,
NullS
);
ullstr
(
strtoull
(
pos
,
NULL
,
0
),
out
);
if
(
mysql_query
(
mysql
,
buff
))
{
my_printf_error
(
0
,
"kill failed on %ld; error: '%s'"
,
error_flags
,
atol
(
pos
),
mysql_error
(
mysql
));
/* out still points to just the number */
my_printf_error
(
0
,
"kill failed on %s; error: '%s'"
,
error_flags
,
out
,
mysql_error
(
mysql
));
error
=
1
;
}
if
(
!
(
pos
=
strchr
(
pos
,
','
)))
...
...
client/mysqlbinlog.cc
View file @
9d764856
...
...
@@ -1226,6 +1226,8 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
one_database
=
1
;
break
;
case
'p'
:
if
(
argument
==
disabled_my_option
)
argument
=
(
char
*
)
""
;
// Don't require password
if
(
argument
)
{
my_free
(
pass
,
MYF
(
MY_ALLOW_ZERO_PTR
));
...
...
client/mysqlcheck.c
View file @
9d764856
...
...
@@ -286,6 +286,8 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
what_to_do
=
DO_UPGRADE
;
break
;
case
'p'
:
if
(
argument
==
disabled_my_option
)
argument
=
(
char
*
)
""
;
// Don't require password
if
(
argument
)
{
char
*
start
=
argument
;
...
...
client/mysqldump.c
View file @
9d764856
...
...
@@ -702,6 +702,8 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break
;
#endif
case
'p'
:
if
(
argument
==
disabled_my_option
)
argument
=
(
char
*
)
""
;
// Don't require password
if
(
argument
)
{
char
*
start
=
argument
;
...
...
client/mysqlimport.c
View file @
9d764856
...
...
@@ -221,6 +221,8 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break
;
#endif
case
'p'
:
if
(
argument
==
disabled_my_option
)
argument
=
(
char
*
)
""
;
// Don't require password
if
(
argument
)
{
char
*
start
=
argument
;
...
...
client/mysqlshow.c
View file @
9d764856
...
...
@@ -281,6 +281,8 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
opt_verbose
++
;
break
;
case
'p'
:
if
(
argument
==
disabled_my_option
)
argument
=
(
char
*
)
""
;
// Don't require password
if
(
argument
)
{
char
*
start
=
argument
;
...
...
client/mysqlslap.c
View file @
9d764856
...
...
@@ -712,6 +712,8 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
verbose
++
;
break
;
case
'p'
:
if
(
argument
==
disabled_my_option
)
argument
=
(
char
*
)
""
;
// Don't require password
if
(
argument
)
{
char
*
start
=
argument
;
...
...
client/mysqltest.cc
View file @
9d764856
...
...
@@ -5803,6 +5803,8 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break
;
}
case
'p'
:
if
(
argument
==
disabled_my_option
)
argument
=
(
char
*
)
""
;
// Don't require password
if
(
argument
)
{
my_free
(
opt_pass
,
MYF
(
MY_ALLOW_ZERO_PTR
));
...
...
extra/innochecksum.c
View file @
9d764856
...
...
@@ -224,7 +224,7 @@ int main(int argc, char **argv)
}
else
if
(
verbose
)
{
printf
(
"file %s
= %llu bytes (%lu pages)...
\n
"
,
argv
[
1
],
size
,
pages
);
printf
(
"file %s
= %llu bytes (%lu pages)...
\n
"
,
argv
[
optind
],
size
,
pages
);
printf
(
"checking pages in range %lu to %lu
\n
"
,
start_page
,
use_end_page
?
end_page
:
(
pages
-
1
));
}
...
...
scripts/mysql_zap.sh
View file @
9d764856
...
...
@@ -27,8 +27,8 @@ $opt_f= 0;
$opt_t
=
0
;
$opt_a
=
""
;
$BSD
=
-f
'/vmunix'
||
$ENV
{
"OS"
}
eq
"SunOS4"
||
$^
O eq
'darwin'
;
$LINUX
=
$^
O eq
'linux'
;
$BSD
=
-f
'/vmunix'
||
$ENV
{
"OS"
}
eq
"SunOS4"
;
$LINUX
=
$^
O eq
'linux'
||
$^
O eq
'darwin'
;
$pscmd
=
$BSD
?
"/bin/ps -auxww"
:
$LINUX
?
"/bin/ps axuw"
:
"/bin/ps -ef"
;
open
(
TTYIN,
"</dev/tty"
)
||
die
"can't read /dev/tty:
$!
"
;
...
...
scripts/mysqld_safe.sh
View file @
9d764856
...
...
@@ -391,8 +391,8 @@ then
fi
# Change the err log to the right user, if it is in use
if
[
$want_syslog
-eq
0
]
;
then
touch
$err_log
chown
$user
$err_log
touch
"
$err_log
"
chown
$user
"
$err_log
"
fi
if
test
-n
"
$open_files
"
then
...
...
@@ -509,9 +509,9 @@ fi
#
# If there exists an old pid file, check if the daemon is already running
# Note: The switches to 'ps' may depend on your operating system
if
test
-f
$pid_file
if
test
-f
"
$pid_file
"
then
PID
=
`
cat
$pid_file
`
PID
=
`
cat
"
$pid_file
"
`
if
@CHECK_PID@
then
if
@FIND_PROC@
...
...
@@ -520,8 +520,8 @@ then
exit
1
fi
fi
rm
-f
$pid_file
if
test
-f
$pid_file
rm
-f
"
$pid_file
"
if
test
-f
"
$pid_file
"
then
log_error
"Fatal error: Can't remove the pid file:
$pid_file
...
...
@@ -563,11 +563,11 @@ test -n "$NOHUP_NICENESS" && cmd="$cmd < /dev/null"
log_notice
"Starting
$MYSQLD
daemon with databases from
$DATADIR
"
while
true
do
rm
-f
$safe_mysql_unix_port
$pid_file
# Some extra safety
rm
-f
$safe_mysql_unix_port
"
$pid_file
"
# Some extra safety
eval_log_error
"
$cmd
"
if
test
!
-f
$pid_file
# This is removed if normal shutdown
if
test
!
-f
"
$pid_file
"
# This is removed if normal shutdown
then
break
fi
...
...
scripts/mysqldumpslow.sh
View file @
9d764856
...
...
@@ -163,7 +163,14 @@ Parse and summarize the MySQL slow query log. Options are
-v verbose
-d debug
-s ORDER what to sort by (al, at, ar, c, t, l, r), 'at' is default
-s ORDER what to sort by (al, at, ar, c, l, r, t), 'at' is default
al: average lock time
ar: average rows sent
at: average query time
c: count
l: lock time
r: rows sent
t: query time
-r reverse the sort order (largest last instead of first)
-t NUM just show the top n queries
-a don't abstract all numbers to N and strings to 'S'
...
...
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