mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 20:11:42 +01:00
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-5.0-kt
into mysql.com:/home/hf/work/mysql-5.0.20950
This commit is contained in:
commit
40fd4c5876
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue