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
34a332c0
Commit
34a332c0
authored
Mar 04, 2004
by
jani@ua72d24.elisa.omakaista.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added option chroot to mysqlhotcopy.
Useful in case mysqld was started with chroot.
parent
58869cfe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
scripts/mysqlhotcopy.sh
scripts/mysqlhotcopy.sh
+4
-1
No files found.
scripts/mysqlhotcopy.sh
View file @
34a332c0
...
@@ -37,7 +37,7 @@ WARNING: THIS PROGRAM IS STILL IN BETA. Comments/patches welcome.
...
@@ -37,7 +37,7 @@ WARNING: THIS PROGRAM IS STILL IN BETA. Comments/patches welcome.
# Documentation continued at end of file
# Documentation continued at end of file
my
$VERSION
=
"1.2
0
"
;
my
$VERSION
=
"1.2
1
"
;
my
$opt_tmpdir
=
$ENV
{
TMPDIR
}
||
"/tmp"
;
my
$opt_tmpdir
=
$ENV
{
TMPDIR
}
||
"/tmp"
;
...
@@ -73,6 +73,7 @@ Usage: $0 db_name[./table_regex/] [new_db_name | directory]
...
@@ -73,6 +73,7 @@ Usage: $0 db_name[./table_regex/] [new_db_name | directory]
--resetslave reset the master.info once all tables are locked
--resetslave reset the master.info once all tables are locked
--tmpdir=# temporary directory (instead of
$opt_tmpdir
)
--tmpdir=# temporary directory (instead of
$opt_tmpdir
)
--record_log_pos=# record slave and master status in specified db.table
--record_log_pos=# record slave and master status in specified db.table
--chroot=# base directory of chroot jail in which mysqld operates
Try
\'
perldoc
$0
for more complete documentation
\'
Try
\'
perldoc
$0
for more complete documentation
\'
_OPTIONS
_OPTIONS
...
@@ -117,6 +118,7 @@ GetOptions( \%opt,
...
@@ -117,6 +118,7 @@ GetOptions( \%opt,
"resetslave"
,
"resetslave"
,
"tmpdir|t=s"
,
"tmpdir|t=s"
,
"dryrun|n"
,
"dryrun|n"
,
"chroot=s"
,
)
or usage
(
"Invalid option"
)
;
)
or usage
(
"Invalid option"
)
;
# @db_desc
# @db_desc
...
@@ -210,6 +212,7 @@ while ( my ($var,$value) = $sth_vars->fetchrow_array ) {
...
@@ -210,6 +212,7 @@ while ( my ($var,$value) = $sth_vars->fetchrow_array ) {
}
}
my
$datadir
=
$mysqld_vars
{
'datadir'
}
my
$datadir
=
$mysqld_vars
{
'datadir'
}
||
die
"datadir not in mysqld variables"
;
||
die
"datadir not in mysqld variables"
;
$datadir
=
$opt
{
chroot
}
.
$datadir
if
(
$opt
{
chroot
})
;
$datadir
=
~ s:/
$:
:
;
$datadir
=
~ s:/
$:
:
;
...
...
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