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
e664d1c6
Commit
e664d1c6
authored
Jan 16, 2011
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Plain Diff
Merge of fix for bug#58221 from mysql-5.1 -> mysql-5.5.
parents
b32f32aa
208b6776
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
client/mysqladmin.cc
client/mysqladmin.cc
+3
-0
mysql-test/r/mysqladmin.result
mysql-test/r/mysqladmin.result
+8
-0
mysql-test/t/mysqladmin.test
mysql-test/t/mysqladmin.test
+12
-0
No files found.
client/mysqladmin.cc
View file @
e664d1c6
...
@@ -413,6 +413,9 @@ int main(int argc,char *argv[])
...
@@ -413,6 +413,9 @@ int main(int argc,char *argv[])
if
(
interval
)
/* --sleep=interval given */
if
(
interval
)
/* --sleep=interval given */
{
{
if
(
opt_count_iterations
&&
--
nr_iterations
==
0
)
break
;
/*
/*
If connection was dropped (unintentionally, or due to SHUTDOWN),
If connection was dropped (unintentionally, or due to SHUTDOWN),
re-establish it if --wait ("retry-connect") was given and user
re-establish it if --wait ("retry-connect") was given and user
...
...
mysql-test/r/mysqladmin.result
View file @
e664d1c6
...
@@ -2,3 +2,11 @@ mysqld is alive
...
@@ -2,3 +2,11 @@ mysqld is alive
mysqladmin: unknown variable 'database=db1'
mysqladmin: unknown variable 'database=db1'
Warning: mysqladmin: unknown variable 'loose-database=db2'
Warning: mysqladmin: unknown variable 'loose-database=db2'
mysqld is alive
mysqld is alive
#
# Bug#58221 : mysqladmin --sleep=x --count=x keeps looping
#
# Executing mysqladmin with --sleep=1 and --count=2.
# Done.
# Displaying the output :
mysqld is alive
mysqld is alive
mysql-test/t/mysqladmin.test
View file @
e664d1c6
...
@@ -33,3 +33,15 @@ EOF
...
@@ -33,3 +33,15 @@ EOF
--
exec
$MYSQLADMIN
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
tmp
/
bug10608
.
cnf
--
default
-
character
-
set
=
latin1
-
S
$MASTER_MYSOCK
-
P
$MASTER_MYPORT
-
u
root
--
password
=
ping
2
>&
1
--
exec
$MYSQLADMIN
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
tmp
/
bug10608
.
cnf
--
default
-
character
-
set
=
latin1
-
S
$MASTER_MYSOCK
-
P
$MASTER_MYPORT
-
u
root
--
password
=
ping
2
>&
1
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
bug10608
.
cnf
;
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
bug10608
.
cnf
;
--
echo
#
--
echo
# Bug#58221 : mysqladmin --sleep=x --count=x keeps looping
--
echo
#
--
echo
# Executing mysqladmin with --sleep=1 and --count=2.
--
exec
$MYSQLADMIN
-
u
root
-
S
$MASTER_MYSOCK
-
P
$MASTER_MYPORT
--
sleep
=
1
--
count
=
2
ping
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqladmin
.
tmp
--
echo
# Done.
--
echo
# Displaying the output :
--
cat_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqladmin
.
tmp
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqladmin
.
tmp
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