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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d096b759
Commit
d096b759
authored
Jan 14, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/mysql_src/mysql-5.0-clean
parents
d133aa0a
5edb315f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
14 deletions
+39
-14
sql/mysqld.cc
sql/mysqld.cc
+31
-6
support-files/my-huge.cnf.sh
support-files/my-huge.cnf.sh
+2
-2
support-files/my-innodb-heavy-4G.cnf.sh
support-files/my-innodb-heavy-4G.cnf.sh
+1
-1
support-files/my-large.cnf.sh
support-files/my-large.cnf.sh
+2
-2
support-files/my-medium.cnf.sh
support-files/my-medium.cnf.sh
+2
-2
support-files/my-small.cnf.sh
support-files/my-small.cnf.sh
+1
-1
No files found.
sql/mysqld.cc
View file @
d096b759
...
...
@@ -2687,6 +2687,20 @@ with --log-bin instead.");
if
(
opt_bin_log
)
{
if
(
!
opt_bin_logname
&&
!
opt_binlog_index_name
)
{
/*
User didn't give us info to name the binlog index file.
Picking `hostname`-bin.index like did in 4.x, causes replication to
fail if the hostname is changed later. So, we would like to instead
require a name. But as we don't want to break many existing setups, we
only give warning, not error.
*/
sql_print_warning
(
"\
No argument was provided to --log-bin, and --log-bin-index was not used. "
"Replication may break when this MySQL server acts as a master and has his "
"hostname changed."
);
}
/* If we fail to open binlog, it's going to hinder our recovery, so die */
if
(
open_log
(
&
mysql_bin_log
,
glob_hostname
,
opt_bin_logname
,
"-bin"
,
opt_binlog_index_name
,
LOG_BIN
,
0
,
0
,
max_binlog_size
))
...
...
@@ -2701,11 +2715,20 @@ with --log-bin instead.");
}
#endif
}
else
if
(
opt_log_slave_updates
)
else
{
sql_print_warning
(
"\
you need to use --log-bin to make --log-slave-updates work. \
Now disabling --log-slave-updates."
);
if
(
opt_log_slave_updates
)
{
sql_print_error
(
"\
You need to use --log-bin=# to make --log-slave-updates work."
);
unireg_abort
(
1
);
}
if
(
opt_binlog_index_name
)
{
sql_print_error
(
"\
You need to use --log-bin=# to make --log-bin-index work."
);
unireg_abort
(
1
);
}
}
#ifdef HAVE_REPLICATION
...
...
@@ -4502,14 +4525,16 @@ Disable with --skip-isam.",
{
"log"
,
'l'
,
"Log connections and queries to file."
,
(
gptr
*
)
&
opt_logname
,
(
gptr
*
)
&
opt_logname
,
0
,
GET_STR
,
OPT_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"log-bin"
,
OPT_BIN_LOG
,
"Log update queries in binary format."
,
"Log update queries in binary format. Optional (but strongly recommended "
"to avoid replication problems if server's hostname changes) argument "
"should be the chosen location for the binary log files."
,
(
gptr
*
)
&
opt_bin_logname
,
(
gptr
*
)
&
opt_bin_logname
,
0
,
GET_STR_ALLOC
,
OPT_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"log-bin-index"
,
OPT_BIN_LOG_INDEX
,
"File that holds the names for last binary log files."
,
(
gptr
*
)
&
opt_binlog_index_name
,
(
gptr
*
)
&
opt_binlog_index_name
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"log-error"
,
OPT_ERROR_LOG_FILE
,
"
Log error
file."
,
{
"log-error"
,
OPT_ERROR_LOG_FILE
,
"
Error log
file."
,
(
gptr
*
)
&
log_error_file_ptr
,
(
gptr
*
)
&
log_error_file_ptr
,
0
,
GET_STR
,
OPT_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"log-isam"
,
OPT_ISAM_LOG
,
"Log all MyISAM changes to file."
,
...
...
support-files/my-huge.cnf.sh
View file @
d096b759
...
...
@@ -48,7 +48,7 @@ thread_concurrency = 8
# Replication Master Server (default)
# binary logging is required for replication
log-bin
log-bin
=
mysql-bin
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
...
...
@@ -108,7 +108,7 @@ server-id = 1
#master-port = <port>
#
# binary logging - not required for slaves, but recommended
#log-bin
#log-bin
=mysql-bin
# Point the following paths to different dedicated disks
#tmpdir = /tmp/
...
...
support-files/my-innodb-heavy-4G.cnf.sh
View file @
d096b759
...
...
@@ -189,7 +189,7 @@ tmp_table_size = 64M
# Enable binary logging. This is required for acting as a MASTER in a
# replication configuration. You also need the binary log if you need
# the ability to do point in time recovery from your latest backup.
log
_
bin
log
-bin
=
mysql-
bin
# If you're using replication with chained slaves (A->B->C), you need to
# enable this option on server B. It enables logging of updates done by
...
...
support-files/my-large.cnf.sh
View file @
d096b759
...
...
@@ -48,7 +48,7 @@ thread_concurrency = 8
# Replication Master Server (default)
# binary logging is required for replication
log-bin
log-bin
=
mysql-bin
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
...
...
@@ -108,7 +108,7 @@ server-id = 1
#master-port = <port>
#
# binary logging - not required for slaves, but recommended
#log-bin
#log-bin
=mysql-bin
# Point the following paths to different dedicated disks
#tmpdir = /tmp/
...
...
support-files/my-medium.cnf.sh
View file @
d096b759
...
...
@@ -46,7 +46,7 @@ myisam_sort_buffer_size = 8M
# Replication Master Server (default)
# binary logging is required for replication
log-bin
log-bin
=
mysql-bin
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
...
...
@@ -106,7 +106,7 @@ server-id = 1
#master-port = <port>
#
# binary logging - not required for slaves, but recommended
#log-bin
#log-bin
=mysql-bin
# Point the following paths to different dedicated disks
#tmpdir = /tmp/
...
...
support-files/my-small.cnf.sh
View file @
d096b759
...
...
@@ -46,7 +46,7 @@ thread_stack = 64K
server-id
=
1
# Uncomment the following if you want to log updates
#log-bin
#log-bin
=mysql-bin
# Uncomment the following if you are NOT using BDB tables
#skip-bdb
...
...
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