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
94500e6d
Commit
94500e6d
authored
Dec 09, 2000
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
2cd21162
6b6ce606
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
16 deletions
+17
-16
client/mysqldump.c
client/mysqldump.c
+1
-1
mysql-test/mysql-test-run
mysql-test/mysql-test-run
+3
-2
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+12
-12
scripts/mysqldumpslow.sh
scripts/mysqldumpslow.sh
+1
-1
No files found.
client/mysqldump.c
View file @
94500e6d
...
@@ -599,7 +599,7 @@ static uint getTableStructure(char *table, char* db)
...
@@ -599,7 +599,7 @@ static uint getTableStructure(char *table, char* db)
sprintf
(
insert_pat
,
"SET OPTION SQL_QUOTE_SHOW_CREATE=%d"
,
opt_quoted
);
sprintf
(
insert_pat
,
"SET OPTION SQL_QUOTE_SHOW_CREATE=%d"
,
opt_quoted
);
table_name
=
quote_name
(
table
,
table_buff
);
table_name
=
quote_name
(
table
,
table_buff
);
if
(
mysql_query
(
sock
,
insert_pat
))
if
(
!
mysql_query
(
sock
,
insert_pat
))
{
{
/* using SHOW CREATE statement */
/* using SHOW CREATE statement */
if
(
!
tFlag
)
if
(
!
tFlag
)
...
...
mysql-test/mysql-test-run
View file @
94500e6d
...
@@ -321,7 +321,7 @@ start_master()
...
@@ -321,7 +321,7 @@ start_master()
--server-id=1
\
--server-id=1
\
--basedir=
$MY_BASEDIR
\
--basedir=
$MY_BASEDIR
\
--port=
$MASTER_MYPORT
\
--port=
$MASTER_MYPORT
\
--
core-file
\
--
exit-info=256
\
--datadir=
$MASTER_MYDDIR
\
--datadir=
$MASTER_MYDDIR
\
--pid-file=
$MASTER_MYPID
\
--pid-file=
$MASTER_MYPID
\
--socket=
$MASTER_MYSOCK
\
--socket=
$MASTER_MYSOCK
\
...
@@ -347,7 +347,8 @@ start_slave()
...
@@ -347,7 +347,8 @@ start_slave()
--master-connect-retry=1
\
--master-connect-retry=1
\
--master-host=127.0.0.1
\
--master-host=127.0.0.1
\
--master-port=
$MASTER_MYPORT
\
--master-port=
$MASTER_MYPORT
\
--core-file --log-bin --log-slave-updates
\
--exit-info=256
\
--log-bin --log-slave-updates
\
--basedir=
$MY_BASEDIR
\
--basedir=
$MY_BASEDIR
\
--datadir=
$SLAVE_MYDDIR
\
--datadir=
$SLAVE_MYDDIR
\
--pid-file=
$SLAVE_MYPID
\
--pid-file=
$SLAVE_MYPID
\
...
...
scripts/mysqld_multi.sh
100755 → 100644
View file @
94500e6d
#!
/usr/bin/perl
#!
@PERL@
use Getopt::Long
;
use Getopt::Long
;
use POSIX qw
(
strftime
)
;
use POSIX qw
(
strftime
)
;
...
@@ -82,11 +82,11 @@ sub main
...
@@ -82,11 +82,11 @@ sub main
print
"in your PATH.
\n
"
;
print
"in your PATH.
\n
"
;
exit
(
1
)
;
exit
(
1
)
;
}
}
usage
()
if
(!
defined
(
$ARGV
[
0]
)
||
usage
()
if
(!
defined
(
$ARGV
[
0]
)
||
(
$ARGV
[
0] ne
'start'
&&
$ARGV
[
0] ne
'START'
&&
(
$ARGV
[
0] ne
'start'
&&
$ARGV
[
0] ne
'START'
&&
$ARGV
[
0] ne
'stop'
&&
$ARGV
[
0] ne
'STOP'
&&
$ARGV
[
0] ne
'stop'
&&
$ARGV
[
0] ne
'STOP'
&&
$ARGV
[
0] ne
'report'
&&
$ARGV
[
0] ne
'REPORT'
))
;
$ARGV
[
0] ne
'report'
&&
$ARGV
[
0] ne
'REPORT'
))
;
if
(!
$opt_no_log
)
if
(!
$opt_no_log
)
{
{
w2log
(
"
$my_progname
log file version
$VER
; run: "
,
w2log
(
"
$my_progname
log file version
$VER
; run: "
,
...
@@ -213,7 +213,7 @@ sub start_mysqlds()
...
@@ -213,7 +213,7 @@ sub start_mysqlds()
}
}
if
(!
$i
&&
!
$opt_no_log
)
if
(!
$i
&&
!
$opt_no_log
)
{
{
w2log
(
"No MySQL servers to be started (check your GNRs)"
,
w2log
(
"No MySQL servers to be started (check your GNRs)"
,
"
$opt_log
"
, 0, 0
)
;
"
$opt_log
"
, 0, 0
)
;
}
}
}
}
...
@@ -261,7 +261,7 @@ sub stop_mysqlds()
...
@@ -261,7 +261,7 @@ sub stop_mysqlds()
}
}
if
(!
$i
&&
!
$opt_no_log
)
if
(!
$i
&&
!
$opt_no_log
)
{
{
w2log
(
"No MySQL servers to be stopped (check your GNRs)"
,
w2log
(
"No MySQL servers to be stopped (check your GNRs)"
,
"
$opt_log
"
, 0, 0
)
;
"
$opt_log
"
, 0, 0
)
;
}
}
}
}
...
@@ -373,7 +373,7 @@ sub find_groups
...
@@ -373,7 +373,7 @@ sub find_groups
}
}
####
####
#### w2log: Write to a logfile.
#### w2log: Write to a logfile.
#### 1.arg: append to the log file (given string, or from a file. if a file,
#### 1.arg: append to the log file (given string, or from a file. if a file,
#### file will be read from $opt_logdir)
#### file will be read from $opt_logdir)
#### 2.arg: logfile -name (w2log assumes that the logfile is in $opt_logdir).
#### 2.arg: logfile -name (w2log assumes that the logfile is in $opt_logdir).
...
@@ -392,8 +392,8 @@ sub w2log
...
@@ -392,8 +392,8 @@ sub w2log
if
(
$is_file
)
if
(
$is_file
)
{
{
open
(
FROMFILE,
"<
$msg
"
)
&&
(
@data
=
<FROMFILE>
)
&&
open
(
FROMFILE,
"<
$msg
"
)
&&
(
@data
=
<FROMFILE>
)
&&
close
(
FROMFILE
)
close
(
FROMFILE
)
or die
"FATAL: w2log: Couldn't open file:
$msg
\n
"
;
or die
"FATAL: w2log: Couldn't open file:
$msg
\n
"
;
foreach my
$line
(
@data
)
foreach my
$line
(
@data
)
{
{
...
@@ -401,7 +401,7 @@ sub w2log
...
@@ -401,7 +401,7 @@ sub w2log
}
}
}
}
else
else
{
{
print LOGFILE
"
$msg
"
;
print LOGFILE
"
$msg
"
;
print LOGFILE strftime
"%a %b %e %H:%M:%S %Y"
, localtime
if
(
$date_flag
)
;
print LOGFILE strftime
"%a %b %e %H:%M:%S %Y"
, localtime
if
(
$date_flag
)
;
print LOGFILE
"
\n
"
;
print LOGFILE
"
\n
"
;
...
@@ -443,13 +443,13 @@ sub example
...
@@ -443,13 +443,13 @@ sub example
# This is an example of a my.cnf file on behalf of
$my_progname
.
# This is an example of a my.cnf file on behalf of
$my_progname
.
# This file should probably be in your home dir (~/.my.cnf) or /etc/my.cnf
# This file should probably be in your home dir (~/.my.cnf) or /etc/my.cnf
# Version
$VER
by Jani Tolonen
# Version
$VER
by Jani Tolonen
# NOTES:
# NOTES:
# 1.Make sure that the MySQL user, who is stopping the mysqld services (e.g
# 1.Make sure that the MySQL user, who is stopping the mysqld services (e.g
# using the mysqladmin) have the same password and username for all the
# using the mysqladmin) have the same password and username for all the
# data directories accessed (to the 'mysql' database) And make sure that
# data directories accessed (to the 'mysql' database) And make sure that
# the user has the 'Shutdown_priv' privilege! If you have many data-
# the user has the 'Shutdown_priv' privilege! If you have many data-
# directories and many different 'mysql' databases with different passwords
# directories and many different 'mysql' databases with different passwords
# for the MySQL 'root' user, you may want to create a common 'multi_admin'
# for the MySQL 'root' user, you may want to create a common 'multi_admin'
# user for each using the same password (see below). Example how to do it:
# user for each using the same password (see below). Example how to do it:
# shell> mysql -u root -S /tmp/mysql.sock -proot_password -e
# shell> mysql -u root -S /tmp/mysql.sock -proot_password -e
# "GRANT SHUTDOWN ON *.* TO multi_admin
\@
localhost IDENTIFIED BY 'multipass'"
# "GRANT SHUTDOWN ON *.* TO multi_admin
\@
localhost IDENTIFIED BY 'multipass'"
...
@@ -493,7 +493,7 @@ sub example
...
@@ -493,7 +493,7 @@ sub example
# account for this, unless you *KNOW* what you are doing!
# account for this, unless you *KNOW* what you are doing!
# 8.MOST IMPORTANT: Make sure that you understand the meanings of the options
# 8.MOST IMPORTANT: Make sure that you understand the meanings of the options
# that are passed to the mysqlds and why *WOULD YOU WANT* to have separate
# that are passed to the mysqlds and why *WOULD YOU WANT* to have separate
# mysqld processes. Starting multiple mysqlds in one data directory *WON'T*
# mysqld processes. Starting multiple mysqlds in one data directory *WON'T*
# give you extra performance in a threaded system!
# give you extra performance in a threaded system!
#
#
[mysqld_multi]
[mysqld_multi]
...
...
scripts/mysqldumpslow.sh
100755 → 100644
View file @
94500e6d
#
@perl
@
#
!@PERL
@
# mysqldumpslow - parse and summarize the MySQL slow query log
# mysqldumpslow - parse and summarize the MySQL slow query log
use strict
;
use strict
;
...
...
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