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
312080b1
Commit
312080b1
authored
Jul 21, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-5.0-kt
into mysql.com:/home/hf/work/mysql-5.0.20950
parents
f3328a71
cbb65b52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
client/mysql_upgrade.c
client/mysql_upgrade.c
+11
-2
No files found.
client/mysql_upgrade.c
View file @
312080b1
...
...
@@ -17,6 +17,14 @@
#include "client_priv.h"
#include <my_dir.h>
#ifdef __WIN__
const
char
*
mysqlcheck_name
=
"mysqlcheck.exe"
;
const
char
*
mysql_name
=
"mysql.exe"
;
#else
const
char
*
mysqlcheck_name
=
"mysqlcheck"
;
const
char
*
mysql_name
=
"mysql"
;
#endif
/*__WIN__*/
static
my_bool
opt_force
=
0
,
opt_verbose
=
0
,
tty_password
=
0
;
static
char
*
user
=
(
char
*
)
"root"
,
*
basedir
=
0
,
*
datadir
=
0
,
*
opt_password
=
0
;
static
my_bool
upgrade_defaults_created
=
0
;
...
...
@@ -272,7 +280,7 @@ int main(int argc, char **argv)
strmake
(
bindir_end
,
"/bin"
,
sizeof
(
bindir
)
-
(
int
)
(
bindir_end
-
bindir
)
-
1
);
if
(
!
test_file_exists_res
(
bindir
,
"mysqlcheck"
,
mysqlcheck_line
,
&
mysqlcheck_end
))
(
bindir
,
mysqlcheck_name
,
mysqlcheck_line
,
&
mysqlcheck_end
))
{
printf
(
"Can't find program '%s'
\n
"
,
mysqlcheck_line
);
puts
(
"Please restart with --basedir=mysql-install-directory"
);
...
...
@@ -342,7 +350,8 @@ int main(int argc, char **argv)
goto
err_exit
;
fix_priv_tables:
if
(
!
test_file_exists_res
(
bindir
,
"mysql"
,
fix_priv_tables_cmd
,
&
fix_cmd_end
))
if
(
!
test_file_exists_res
(
bindir
,
mysql_name
,
fix_priv_tables_cmd
,
&
fix_cmd_end
))
{
puts
(
"Could not find MySQL command-line client (mysql)."
);
puts
...
...
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