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
9ace8ef2
Commit
9ace8ef2
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
4f9b6fc7
e7a93997
Changes
1
Show 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 @
9ace8ef2
...
...
@@ -40,6 +40,7 @@ unless (@ARGV) {
warn
"basedir=
$basedir
\n
"
if
$opt
{
v
}
;
my
$datadir
=
(
$defaults
=
~ m/--datadir
=(
.
*
)
/
)[
0]
;
my
$slowlog
=
(
$defaults
=
~ m/--log-slow-queries
=(
.
*
)
/
)[
0]
;
if
(!
$datadir
or
$opt
{
i
})
{
# determine the datadir from the instances section of /etc/my.cnf, if any
my
$instances
=
`
my_print_defaults instances
`
;
...
...
@@ -55,8 +56,13 @@ unless (@ARGV) {
warn
"datadir=
$datadir
\n
"
if
$opt
{
v
}
;
}
if
(
-f
$slowlog
)
{
@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
"
;
...
...
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