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
dcbe2415
Commit
dcbe2415
authored
Mar 13, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0
parents
a522720a
39c4a730
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
Docs/manual.texi
Docs/manual.texi
+13
-1
client/mysql.cc
client/mysql.cc
+10
-3
No files found.
BitKeeper/etc/logging_ok
View file @
dcbe2415
...
@@ -46,3 +46,4 @@ tonu@x153.internalnet
...
@@ -46,3 +46,4 @@ tonu@x153.internalnet
tonu@x3.internalnet
tonu@x3.internalnet
venu@work.mysql.com
venu@work.mysql.com
zak@linux.local
zak@linux.local
jcole@mugatu.spaceapes.com
Docs/manual.texi
View file @
dcbe2415
...
@@ -37989,7 +37989,19 @@ you at the startup that it is creating new log files.
...
@@ -37989,7 +37989,19 @@ you at the startup that it is creating new log files.
@subsection Backing up and Recovering an InnoDB Database
@subsection Backing up and Recovering an InnoDB Database
The key to safe database management is taking regular backups.
The key to safe database management is taking regular backups.
To take a 'binary' backup of your database you have to do the following:
InnoDB Hot Backup is an online backup tool you can use to
backup your InnoDB database while it is running. InnoDB
Hot Backup does not require you to shut down your database
and it does not set any locks or disturb your normal
database processing. InnoDB Hot Backup is a non-free
additional tool which is not included in the standard
MySQL distribution. See the InnoDB Hot Backup homepage
@uref{http://www.innodb.com/hotbackup.html}
for detailed information and screenshots.
If you are able to shut down your MySQL server, then to take
a 'binary' backup of your database you have to do the following:
@itemize @bullet
@itemize @bullet
@item
@item
client/mysql.cc
View file @
dcbe2415
...
@@ -118,7 +118,8 @@ static bool info_flag=0,ignore_errors=0,wait_flag=0,quick=0,
...
@@ -118,7 +118,8 @@ static bool info_flag=0,ignore_errors=0,wait_flag=0,quick=0,
no_rehash
=
0
,
skip_updates
=
0
,
safe_updates
=
0
,
one_database
=
0
,
no_rehash
=
0
,
skip_updates
=
0
,
safe_updates
=
0
,
one_database
=
0
,
opt_compress
=
0
,
using_opt_local_infile
=
0
,
opt_compress
=
0
,
using_opt_local_infile
=
0
,
vertical
=
0
,
skip_line_numbers
=
0
,
skip_column_names
=
0
,
opt_html
=
0
,
vertical
=
0
,
skip_line_numbers
=
0
,
skip_column_names
=
0
,
opt_html
=
0
,
opt_xml
=
0
,
opt_nopager
=
1
,
opt_outfile
=
0
,
no_named_cmds
=
1
;
opt_xml
=
0
,
opt_nopager
=
1
,
opt_outfile
=
0
,
no_named_cmds
=
1
,
opt_nobeep
=
0
;
static
uint
verbose
=
0
,
opt_silent
=
0
,
opt_mysql_port
=
0
,
opt_local_infile
=
0
;
static
uint
verbose
=
0
,
opt_silent
=
0
,
opt_mysql_port
=
0
,
opt_local_infile
=
0
;
static
my_string
opt_mysql_unix_port
=
0
;
static
my_string
opt_mysql_unix_port
=
0
;
static
int
connect_flag
=
CLIENT_INTERACTIVE
;
static
int
connect_flag
=
CLIENT_INTERACTIVE
;
...
@@ -438,6 +439,7 @@ static struct option long_options[] =
...
@@ -438,6 +439,7 @@ static struct option long_options[] =
{
"ignore-spaces"
,
no_argument
,
0
,
'i'
},
{
"ignore-spaces"
,
no_argument
,
0
,
'i'
},
{
"local-infile"
,
optional_argument
,
0
,
OPT_LOCAL_INFILE
},
{
"local-infile"
,
optional_argument
,
0
,
OPT_LOCAL_INFILE
},
{
"no-auto-rehash"
,
no_argument
,
0
,
'A'
},
{
"no-auto-rehash"
,
no_argument
,
0
,
'A'
},
{
"no-beep"
,
no_argument
,
0
,
'b'
},
{
"no-named-commands"
,
no_argument
,
0
,
'g'
},
{
"no-named-commands"
,
no_argument
,
0
,
'g'
},
{
"no-tee"
,
no_argument
,
0
,
OPT_NOTEE
},
{
"no-tee"
,
no_argument
,
0
,
OPT_NOTEE
},
#ifndef __WIN__
#ifndef __WIN__
...
@@ -501,6 +503,7 @@ static void usage(int version)
...
@@ -501,6 +503,7 @@ static void usage(int version)
-A, --no-auto-rehash No automatic rehashing. One has to use 'rehash' to
\n
\
-A, --no-auto-rehash No automatic rehashing. One has to use 'rehash' to
\n
\
get table and field completion. This gives a quicker
\n
\
get table and field completion. This gives a quicker
\n
\
start of mysql and disables rehashing on reconnect.
\n
\
start of mysql and disables rehashing on reconnect.
\n
\
-b, --no-beep Turn off beep on error.
\n
\
-B, --batch Print results with a tab as separator, each row on
\n
\
-B, --batch Print results with a tab as separator, each row on
\n
\
a new line. Doesn't use history file.
\n
\
a new line. Doesn't use history file.
\n
\
--character-sets-dir=...
\n
\
--character-sets-dir=...
\n
\
...
@@ -605,7 +608,7 @@ static int get_options(int argc, char **argv)
...
@@ -605,7 +608,7 @@ static int get_options(int argc, char **argv)
set_all_changeable_vars
(
changeable_vars
);
set_all_changeable_vars
(
changeable_vars
);
while
((
c
=
getopt_long
(
argc
,
argv
,
while
((
c
=
getopt_long
(
argc
,
argv
,
(
char
*
)
"?ABCD:LfgGHXinNoqrstTU::vVw::WEe:h:O:P:S:u:#::p::"
,
(
char
*
)
"?A
b
BCD:LfgGHXinNoqrstTU::vVw::WEe:h:O:P:S:u:#::p::"
,
long_options
,
&
option_index
))
!=
EOF
)
long_options
,
&
option_index
))
!=
EOF
)
{
{
switch
(
c
)
{
switch
(
c
)
{
...
@@ -616,6 +619,9 @@ static int get_options(int argc, char **argv)
...
@@ -616,6 +619,9 @@ static int get_options(int argc, char **argv)
strmov
(
mysql_charsets_dir
,
optarg
);
strmov
(
mysql_charsets_dir
,
optarg
);
charsets_dir
=
mysql_charsets_dir
;
charsets_dir
=
mysql_charsets_dir
;
break
;
break
;
case
'b'
:
opt_nobeep
=
1
;
break
;
case
OPT_TEE
:
case
OPT_TEE
:
if
(
!
opt_outfile
&&
strlen
(
optarg
))
if
(
!
opt_outfile
&&
strlen
(
optarg
))
{
{
...
@@ -2442,7 +2448,8 @@ put_info(const char *str,INFO_TYPE info_type,uint error)
...
@@ -2442,7 +2448,8 @@ put_info(const char *str,INFO_TYPE info_type,uint error)
}
}
if
(
info_type
==
INFO_ERROR
)
if
(
info_type
==
INFO_ERROR
)
{
{
putchar
(
'\007'
);
/* This should make a bell */
if
(
!
opt_nobeep
)
putchar
(
'\007'
);
/* This should make a bell */
vidattr
(
A_STANDOUT
);
vidattr
(
A_STANDOUT
);
if
(
error
)
if
(
error
)
(
void
)
tee_fprintf
(
stderr
,
"ERROR %d: "
,
error
);
(
void
)
tee_fprintf
(
stderr
,
"ERROR %d: "
,
error
);
...
...
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