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
f11f48a1
Commit
f11f48a1
authored
Oct 17, 2002
by
jani@rhols221.adsl.netsonic.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed three bugs in mysqlcheck and changed documentation for mysqld_multi
parent
98c4101b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
client/mysqlcheck.c
client/mysqlcheck.c
+8
-8
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+3
-3
No files found.
client/mysqlcheck.c
View file @
f11f48a1
...
...
@@ -16,7 +16,7 @@
/* By Jani Tolonen, 2001-04-20, MySQL Development Team */
#define CHECK_VERSION "2.4.
1
"
#define CHECK_VERSION "2.4.
2
"
#include "client_priv.h"
#include <m_ctype.h>
...
...
@@ -463,7 +463,7 @@ static int handle_request_for_tables(char *tables, uint length)
if
(
!
(
query
=
(
char
*
)
my_malloc
((
sizeof
(
char
)
*
(
length
+
110
)),
MYF
(
MY_WME
))))
return
1
;
sprintf
(
query
,
"%s TABLE
`%s`
%s"
,
op
,
tables
,
options
);
sprintf
(
query
,
"%s TABLE
%s
%s"
,
op
,
tables
,
options
);
if
(
mysql_query
(
sock
,
query
))
{
sprintf
(
message
,
"when executing '%s TABLE `%s` %s"
,
op
,
tables
,
options
);
...
...
@@ -493,12 +493,9 @@ static void print_result()
if
(
status
)
{
if
(
found_error
)
{
if
(
what_to_do
!=
DO_REPAIR
&&
opt_auto_repair
&&
(
!
opt_fast
||
strcmp
(
row
[
3
],
"OK"
)))
insert_dynamic
(
&
tables4repair
,
row
[
0
]);
}
if
(
found_error
&&
opt_auto_repair
&&
what_to_do
!=
DO_REPAIR
&&
(
!
opt_fast
||
strcmp
(
row
[
3
],
"OK"
)))
insert_dynamic
(
&
tables4repair
,
prev
);
found_error
=
0
;
if
(
opt_silent
)
continue
;
...
...
@@ -515,6 +512,9 @@ static void print_result()
strmov
(
prev
,
row
[
0
]);
putchar
(
'\n'
);
}
if
(
found_error
&&
opt_auto_repair
&&
what_to_do
!=
DO_REPAIR
&&
(
!
opt_fast
||
strcmp
(
row
[
3
],
"OK"
)))
insert_dynamic
(
&
tables4repair
,
prev
);
mysql_free_result
(
res
);
}
...
...
scripts/mysqld_multi.sh
View file @
f11f48a1
...
...
@@ -4,7 +4,7 @@ use Getopt::Long;
use POSIX qw
(
strftime
)
;
$|
=
1
;
$VER
=
"2.
3
"
;
$VER
=
"2.
4
"
;
$opt_config_file
=
undef
()
;
$opt_example
=
0
;
...
...
@@ -508,8 +508,8 @@ sub example
[mysqld_multi]
mysqld = @bindir@/mysqld_safe
mysqladmin = @bindir@/mysqladmin
user =
multi_admin
password =
multipass
user =
root
password =
your_password
[mysqld2]
socket = /tmp/mysql.sock2
...
...
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