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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
5fdbd481
Commit
5fdbd481
authored
Dec 18, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge qualinost.(none):/home/mtaylor/src/mysql-4.1-maint
into qualinost.(none):/home/mtaylor/src/mysql-5.0-maint
parents
0dc0e52d
76daa59f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
scripts/mysqldumpslow.sh
scripts/mysqldumpslow.sh
+8
-2
No files found.
scripts/mysqldumpslow.sh
View file @
5fdbd481
...
@@ -40,6 +40,7 @@ unless (@ARGV) {
...
@@ -40,6 +40,7 @@ unless (@ARGV) {
warn
"basedir=
$basedir
\n
"
if
$opt
{
v
}
;
warn
"basedir=
$basedir
\n
"
if
$opt
{
v
}
;
my
$datadir
=
(
$defaults
=
~ m/--datadir
=(
.
*
)
/
)[
0]
;
my
$datadir
=
(
$defaults
=
~ m/--datadir
=(
.
*
)
/
)[
0]
;
my
$slowlog
=
(
$defaults
=
~ m/--log-slow-queries
=(
.
*
)
/
)[
0]
;
if
(!
$datadir
or
$opt
{
i
})
{
if
(!
$datadir
or
$opt
{
i
})
{
# determine the datadir from the instances section of /etc/my.cnf, if any
# determine the datadir from the instances section of /etc/my.cnf, if any
my
$instances
=
`
my_print_defaults instances
`
;
my
$instances
=
`
my_print_defaults instances
`
;
...
@@ -55,8 +56,13 @@ unless (@ARGV) {
...
@@ -55,8 +56,13 @@ unless (@ARGV) {
warn
"datadir=
$datadir
\n
"
if
$opt
{
v
}
;
warn
"datadir=
$datadir
\n
"
if
$opt
{
v
}
;
}
}
@ARGV
=
<
$datadir
/
$opt
{
h
}
-slow
.log>
;
if
(
-f
$slowlog
)
{
die
"Can't find '
$datadir
/
$opt
{h}-slow.log'
\n
"
unless @ARGV
;
@ARGV
=
(
$slowlog
)
;
die
"Can't find '
$slowlog
'
\n
"
unless @ARGV
;
}
else
{
@ARGV
=
<
$datadir
/
$opt
{
h
}
-slow
.log>
;
die
"Can't find '
$datadir
/
$opt
{h}-slow.log'
\n
"
unless @ARGV
;
}
}
}
warn
"
\n
Reading mysql slow query log from @ARGV
\n
"
;
warn
"
\n
Reading mysql slow query log from @ARGV
\n
"
;
...
...
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