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
11a52078
Commit
11a52078
authored
Sep 04, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/space/my/mysql-4.0
into mysql.com:/space/my/mysql-4.0-build Docs/manual.texi: Auto merged
parents
8f0e1ae4
4839ec02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
196 additions
and
91 deletions
+196
-91
Build-tools/Do-compile
Build-tools/Do-compile
+180
-87
Docs/manual.texi
Docs/manual.texi
+16
-4
No files found.
Build-tools/Do-compile
View file @
11a52078
#!/usr/bin/perl
#!/usr/bin/perl
-w
use
Getopt::
Long
;
use
Getopt::
Long
;
$opt_distribution
=
$opt_user
=
$opt_result
=
$opt_config_options
=
$opt_config_env
=
"";
$opt_dbd_options
=
$opt_perl_options
=
$opt_make_options
=
$opt_suffix
=
"";
@config_options
=
();
@make_options
=
();
$opt_distribution
=
$opt_user
=
$opt_config_env
=
"";
$opt_dbd_options
=
$opt_perl_options
=
$opt_config_options
=
$opt_make_options
=
$opt_suffix
=
"";
$opt_tmp
=
$opt_version_suffix
=
"";
$opt_tmp
=
$opt_version_suffix
=
"";
$opt_help
=
$opt_
Information
=
$opt_delete
=
$opt_debug
=
$opt_stage
=
$opt_rsh_mail
=
$opt_no_test
=
$opt_no_perl
=
$opt_with_low_memory
=
$opt_fast_benchmark
=
$opt_static_client
=
$opt_static_server
=
$opt_static_perl
=
$opt_sur
=
$opt_with_small_disk
=
$opt_local_perl
=
$opt_tcpip
=
$opt_build_thread
=
$opt_no_mysqltest
=
$opt_use_old_distribution
=
$opt_enable_shared
=
$opt_no_crash_me
=
$opt_no_strip
=
0
;
$opt_help
=
$opt_
delete
=
$opt_debug
=
$opt_stage
=
$opt_no_test
=
$opt_no_perl
=
$opt_with_low_memory
=
$opt_fast_benchmark
=
$opt_static_client
=
$opt_static_server
=
$opt_static_perl
=
$opt_sur
=
$opt_with_small_disk
=
$opt_local_perl
=
$opt_tcpip
=
$opt_build_thread
=
$opt_use_old_distribution
=
$opt_enable_shared
=
$opt_no_crash_me
=
$opt_no_strip
=
0
;
$opt_innodb
=
$opt_bdb
=
$opt_raid
=
$opt_libwrap
=
0
;
$opt_innodb
=
$opt_bdb
=
$opt_raid
=
$opt_libwrap
=
0
;
GetOptions
("
Information
","
help
","
distribution=s
","
user=s
","
result=s
","
delete
","
no-test
","
no-mysqltest
","
perl-files=s
","
debug
","
config-options=s
","
config-env=s
","
stage=i
","
rsh-mail
","
with-low-memory
","
fast-benchmark
","
tmp=s
","
static-client
","
static-server
","
static-perl
","
no-perl
","
local-perl
","
perl-options=s
","
make-options=s
","
sur
","
with-small-disk
","
dbd-options=s
","
tcpip
","
suffix=s
","
build-thread=i
","
innodb
","
bdb
","
raid
","
libwrap
","
use-old-distribution
","
enable-shared
","
no-crash-me
","
no-strip
","
version-suffix=s
",
"
with-other-libc=s
")
||
usage
();
GetOptions
(
"
bdb
",
usage
()
if
(
$opt_help
||
$opt_Information
);
"
build-thread=i
",
"
config-env=s
",
"
config-options=s
"
=>
\
@config_options
,
"
dbd-options=s
",
"
debug
",
"
delete
",
"
distribution=s
",
"
enable-shared
",
"
fast-benchmark
",
"
help|Information
",
"
innodb
",
"
libwrap
",
"
local-perl
",
"
make-options=s
"
=>
\
@make_options
,
"
no-crash-me
",
"
no-perl
",
"
no-strip
",
"
no-test|no-mysqltest
",
"
perl-files=s
",
"
perl-options=s
",
"
raid
",
"
stage=i
",
"
static-client
",
"
static-perl
",
"
static-server
",
"
suffix=s
",
"
sur
",
"
tcpip
",
"
tmp=s
",
"
use-old-distribution
",
"
user=s
",
"
version-suffix=s
",
"
with-low-memory
",
"
with-other-libc=s
",
"
with-small-disk
",
)
||
usage
();
usage
()
if
(
$opt_help
);
usage
()
if
(
!
$opt_distribution
);
usage
()
if
(
!
$opt_distribution
);
if
(
$opt_bdb
&&
$opt_version_suffix
eq
"")
if
(
$opt_bdb
&&
$opt_version_suffix
eq
"")
...
@@ -17,9 +58,20 @@ if ($opt_bdb && $opt_version_suffix eq "")
...
@@ -17,9 +58,20 @@ if ($opt_bdb && $opt_version_suffix eq "")
$opt_version_suffix
=
"
-max
";
$opt_version_suffix
=
"
-max
";
}
}
if
(
@make_options
>
0
)
{
chomp
(
@make_options
);
$opt_make_options
=
join
("
",
@make_options
);
}
if
(
@config_options
>
0
)
{
chomp
(
@config_options
);
$opt_config_options
=
join
("
",
@config_options
);
}
chomp
(
$host
=
`
hostname
`);
chomp
(
$host
=
`
hostname
`);
$full_host_name
=
$host
;
$full_host_name
=
$host
;
info
("
Compiling MySQL
$opt_version_suffix
at
$host$suffix
, stage:
$opt_stage
\n
");
$connect_option
=
(
$opt_tcpip
?
"
--host=
$host
"
:
"");
$connect_option
=
(
$opt_tcpip
?
"
--host=
$host
"
:
"");
$host
=~
/^([^.-]*)/
;
$host
=~
/^([^.-]*)/
;
$host
=
$1
.
$opt_suffix
;
$host
=
$1
.
$opt_suffix
;
...
@@ -62,7 +114,6 @@ else
...
@@ -62,7 +114,6 @@ else
}
}
$bench_tmpdir
=
"
$opt_tmp
/my_build-
$host
";
$bench_tmpdir
=
"
$opt_tmp
/my_build-
$host
";
$ENV
{'
PATH
'}
=
"
$pwd
/
$host
/bin:
"
.
$ENV
{'
PATH
'};
$ENV
{'
PATH
'}
=
"
$pwd
/
$host
/bin:
"
.
$ENV
{'
PATH
'};
$rsh
=
which
("
rcmd
","
rsh
");
$make
=
which
("
gmake
","
make
");
# Can't use -j here!
$make
=
which
("
gmake
","
make
");
# Can't use -j here!
$tar
=
which
("
gtar
","
tar
");
$tar
=
which
("
gtar
","
tar
");
$sendmail
=
find
("
/usr/lib/sendmail
","
/usr/sbin/sendmail
");
$sendmail
=
find
("
/usr/lib/sendmail
","
/usr/sbin/sendmail
");
...
@@ -88,6 +139,8 @@ $|=1;
...
@@ -88,6 +139,8 @@ $|=1;
select
STDOUT
;
select
STDOUT
;
$|
=
1
;
$|
=
1
;
info
("
Compiling MySQL
$opt_version_suffix
at
$host$opt_suffix
, stage:
$opt_stage
\n
");
if
(
-
x
"
$host
/bin/mysqladmin
")
if
(
-
x
"
$host
/bin/mysqladmin
")
{
{
log_system
("
$host
/bin/mysqladmin --no-defaults -u root -S
$mysql_unix_port
-s shutdown
");
log_system
("
$host
/bin/mysqladmin --no-defaults -u root -S
$mysql_unix_port
-s shutdown
");
...
@@ -141,47 +194,32 @@ if ($opt_stage == 0 && ! $opt_use_old_distribution)
...
@@ -141,47 +194,32 @@ if ($opt_stage == 0 && ! $opt_use_old_distribution)
}
}
safe_cd
("
$pwd
/
$host
/
$ver
");
safe_cd
("
$pwd
/
$host
/
$ver
");
#
# Configure the sources
#
if
(
$opt_stage
<=
1
)
if
(
$opt_stage
<=
1
)
{
{
$opt_config_options
.=
"
--with-low-memory
"
if
(
$opt_with_low_memory
);
# Fix files if this is in another timezone than the build host
# Fix files if this is in another timezone than work.mysql.com
unlink
("
config.cache
");
unlink
("
config.cache
");
unlink
("
bdb/build_unix/config.cache
");
unlink
("
bdb/build_unix/config.cache
");
unlink
("
innobase/config.cache
");
unlink
("
innobase/config.cache
");
log_system
("
$make
clean
")
if
(
$opt_use_old_distribution
);
log_system
("
$make
clean
")
if
(
$opt_use_old_distribution
);
if
(
$opt_static_server
)
$opt_config_options
.=
"
--disable-shared
"
if
(
!
$opt_enable_shared
);
# Default for binary versions
{
$opt_config_options
.=
"
--with-berkeley-db
"
if
(
$opt_bdb
);
$opt_config_options
.=
"
--with-mysqld-ldflags=-all-static
";
$opt_config_options
.=
"
--with-client-ldflags=-all-static
"
if
(
$opt_static_client
);
}
$opt_config_options
.=
"
--with-innodb
"
if
(
$opt_innodb
);
if
(
$opt_static_client
)
$opt_config_options
.=
"
--with-libwrap
"
if
(
$opt_libwrap
);
{
$opt_config_options
.=
"
--with-low-memory
"
if
(
$opt_with_low_memory
);
$opt_config_options
.=
"
--with-client-ldflags=-all-static
";
$opt_config_options
.=
"
--with-mysqld-ldflags=-all-static
"
if
(
$opt_static_server
);
}
$opt_config_options
.=
"
--with-raid
"
if
(
$opt_raid
);
if
(
$opt_with_other_libc
)
if
(
$opt_with_other_libc
)
{
{
$opt_with_other_libc
=
"
--with-other-libc=
$opt_with_other_libc
";
$opt_with_other_libc
=
"
--with-other-libc=
$opt_with_other_libc
";
$opt_config_options
.=
"
$opt_with_other_libc
";
$opt_config_options
.=
$opt_with_other_libc
;
}
if
(
!
$opt_enable_shared
)
{
$opt_config_options
.=
"
--disable-shared
";
# Default for binary versions
}
if
(
$opt_bdb
)
{
$opt_config_options
.=
"
--with-berkeley-db
"
}
if
(
$opt_raid
)
{
$opt_config_options
.=
"
--with-raid
"
}
if
(
$opt_innodb
)
{
$opt_config_options
.=
"
--with-innodb
"
}
if
(
$opt_libwrap
)
{
$opt_config_options
.=
"
--with-libwrap
"
}
}
check_system
("
$opt_config_env
./configure --prefix=/usr/local/mysql --with-comment=
\"
Official MySQL
$opt_version_suffix
binary
\"
--with-extra-charsets=complex --with-server-suffix=
\"
$opt_version_suffix
\"
--enable-thread-safe-client --enable-local-infile
$opt_config_options
","
Thank you for choosing MySQL
");
check_system
("
$opt_config_env
./configure --prefix=/usr/local/mysql --with-comment=
\"
Official MySQL
$opt_version_suffix
binary
\"
--with-extra-charsets=complex --with-server-suffix=
\"
$opt_version_suffix
\"
--enable-thread-safe-client --enable-local-infile
$opt_config_options
","
Thank you for choosing MySQL
");
if
(
-
d
"
$pwd
/
$host
/include-mysql
")
if
(
-
d
"
$pwd
/
$host
/include-mysql
")
{
{
...
@@ -189,6 +227,9 @@ if ($opt_stage <= 1)
...
@@ -189,6 +227,9 @@ if ($opt_stage <= 1)
}
}
}
}
#
# Compile the binaries
#
if
(
$opt_stage
<=
2
)
if
(
$opt_stage
<=
2
)
{
{
my
(
$command
);
my
(
$command
);
...
@@ -199,16 +240,15 @@ if ($opt_stage <= 2)
...
@@ -199,16 +240,15 @@ if ($opt_stage <= 2)
}
}
#
#
# Create
a binary distrub
tion
# Create
the binary distribu
tion
#
#
if
(
$opt_stage
<=
3
)
if
(
$opt_stage
<=
3
)
{
{
my
(
$flags
)
;
my
$flags
=
""
;
log_system
("
rm -fr mysql-3* mysql-4*
$pwd
/
$host
/*.tar.gz
");
log_system
("
rm -fr mysql-3* mysql-4*
$pwd
/
$host
/*.tar.gz
");
log_system
("
nm -n sql/mysqld | gzip -9 -v 2>&1 > sql/mysqld.sym.gz | cat
");
log_system
("
nm -n sql/mysqld | gzip -9 -v 2>&1 > sql/mysqld.sym.gz | cat
");
$flags
=
"";
$flags
.=
"
--no-strip
"
if
(
$opt_no_strip
);
$flags
.=
"
--no-strip
"
if
(
$opt_no_strip
);
check_system
("
scripts/make_binary_distribution --tmp=
$opt_tmp
--suffix=
$opt_suffix
$flags
","
.tar.gz created
");
check_system
("
scripts/make_binary_distribution --tmp=
$opt_tmp
--suffix=
$opt_suffix
$flags
","
.tar.gz created
");
safe_system
("
mv mysql*.tar.gz
$pwd
/
$host
");
safe_system
("
mv mysql*.tar.gz
$pwd
/
$host
");
if
(
-
f
"
client/.libs/mysqladmin
")
if
(
-
f
"
client/.libs/mysqladmin
")
...
@@ -222,15 +262,15 @@ if ($opt_stage <= 3)
...
@@ -222,15 +262,15 @@ if ($opt_stage <= 3)
safe_system
("
$make
clean
")
if
(
$opt_with_small_disk
);
safe_system
("
$make
clean
")
if
(
$opt_with_small_disk
);
}
}
#
# Unpack and test the binary distrubtion
#
$tar_file
=<
$pwd
/$host/
*.
tar
.
gz
>
;
$tar_file
=<
$pwd
/$host/
*.
tar
.
gz
>
;
if
(
!
defined
(
$tar_file
))
if
(
!
defined
(
$tar_file
))
{
{
$tar_file
=<
$pwd
/$host/
*.
tgz
>
;
$tar_file
=<
$pwd
/$host/
*.
tgz
>
;
}
}
#
# Unpack the binary distribution
#
if
(
$opt_stage
<=
4
&&
!
$opt_no_test
)
if
(
$opt_stage
<=
4
&&
!
$opt_no_test
)
{
{
rm_all
(
<
$pwd
/$host/
test
/*>
);
rm_all
(
<
$pwd
/$host/
test
/*>
);
...
@@ -243,15 +283,19 @@ $ver=$1;
...
@@ -243,15 +283,19 @@ $ver=$1;
$test_dir
=
"
$pwd
/
$host
/test/
$ver
";
$test_dir
=
"
$pwd
/
$host
/test/
$ver
";
$ENV
{"
LD_LIBRARY_PATH
"}
=
"
$test_dir
/lib:
"
.
$ENV
{"
LD_LIBRARY_PATH
"};
$ENV
{"
LD_LIBRARY_PATH
"}
=
"
$test_dir
/lib:
"
.
$ENV
{"
LD_LIBRARY_PATH
"};
if
(
$opt_stage
<=
5
&&
!
$opt_no_test
&&
!
$opt_no_mysqltest
)
#
# Run the test suite
#
if
(
$opt_stage
<=
5
&&
!
$opt_no_test
)
{
{
system
("
mkdir
$bench_tmpdir
")
if
(
!
-
d
$bench_tmpdir
);
system
("
mkdir
$bench_tmpdir
")
if
(
!
-
d
$bench_tmpdir
);
safe_cd
("
${test_dir}
/mysql-test
");
safe_cd
("
${test_dir}
/mysql-test
");
check_system
("
./mysql-test-run --warnings --tmpdir=
$bench_tmpdir
--master_port=
$mysql_tcp_port
--slave_port=
$slave_port
--manager-port=
$manager_port
--no-manager --sleep=10
",
"
tests were successful
");
check_system
("
./mysql-test-run --warnings --tmpdir=
$bench_tmpdir
--master_port=
$mysql_tcp_port
--slave_port=
$slave_port
--manager-port=
$manager_port
--no-manager --sleep=10
",
"
tests were successful
");
}
}
#
# Start the server if we are going to run any of the benchmarks
# Start the server if we are going to run any of the benchmarks
#
if
(
!
$opt_no_test
)
if
(
!
$opt_no_test
)
{
{
my
$extra
;
my
$extra
;
...
@@ -273,7 +317,9 @@ if (!$opt_no_test)
...
@@ -273,7 +317,9 @@ if (!$opt_no_test)
sleep
(
2
);
sleep
(
2
);
}
}
#
# Compile and install the required Perl modules
#
if
(
$opt_stage
<=
7
&&
$opt_perl_files
&&
!
$opt_no_perl
&&
!
$opt_no_test
)
if
(
$opt_stage
<=
7
&&
$opt_perl_files
&&
!
$opt_no_perl
&&
!
$opt_no_test
)
{
{
safe_cd
(
$test_dir
);
safe_cd
(
$test_dir
);
...
@@ -306,7 +352,9 @@ if ($opt_stage <= 7 && $opt_perl_files && !$opt_no_perl && !$opt_no_test)
...
@@ -306,7 +352,9 @@ if ($opt_stage <= 7 && $opt_perl_files && !$opt_no_perl && !$opt_no_test)
}
}
}
}
#
# Run crash-me test
#
if
(
$opt_stage
<=
8
&&
!
$opt_no_test
&&
!
$opt_no_crash_me
)
if
(
$opt_stage
<=
8
&&
!
$opt_no_test
&&
!
$opt_no_crash_me
)
{
{
safe_cd
("
$test_dir
/sql-bench
");
safe_cd
("
$test_dir
/sql-bench
");
...
@@ -314,6 +362,9 @@ if ($opt_stage <= 8 && !$opt_no_test && !$opt_no_crash_me)
...
@@ -314,6 +362,9 @@ if ($opt_stage <= 8 && !$opt_no_test && !$opt_no_crash_me)
safe_system
("
perl ./crash-me --force --batch-mode
$connect_option
");
safe_system
("
perl ./crash-me --force --batch-mode
$connect_option
");
}
}
#
# Run sql-bench Benchmarks
#
if
(
$opt_stage
<=
9
&&
!
$opt_no_test
)
if
(
$opt_stage
<=
9
&&
!
$opt_no_test
)
{
{
safe_cd
("
$test_dir
/sql-bench
");
safe_cd
("
$test_dir
/sql-bench
");
...
@@ -330,11 +381,6 @@ if ($opt_stage <= 9 && !$opt_no_test)
...
@@ -330,11 +381,6 @@ if ($opt_stage <= 9 && !$opt_no_test)
}
}
}
}
if
(
$opt_stage
<=
10
&&
$opt_result
)
{
safe_system
("
rcp
$pwd
/
$host
/*.tar.gz
$opt_result
");
}
rm_all
(
$bench_tmpdir
);
rm_all
(
$bench_tmpdir
);
rm_all
("
$opt_tmp
")
if
(
$new_opt_tmp
);
rm_all
("
$opt_tmp
")
if
(
$new_opt_tmp
);
...
@@ -353,57 +399,105 @@ $0 version 1.4
...
@@ -353,57 +399,105 @@ $0 version 1.4
$0 takes the following options:
$0 takes the following options:
--bdb
Compile with support for Berkeley DB tables
--config-env <environment for configure>
To set up the environment, like 'CC=cc CXX=gcc CXXFLAGS=-O3'
--config-options <options>
To add some extra options to configure (e.g. '--with-perl=yes')
--dbd-options <options>
Options for Makefile.PL when configuring msql-mysql-modules.
--debug
Print all shell commands on stdout.
--delete
Delete the distribution file.
--distribution <distribution_file>
Name of the MySQL source distribution file.
--enable-shared
Compile with shared libraries
--fast-benchmark
Run fast benchmark only to speed up testing
--help or --Information
--help or --Information
Show this help
Show this help
--innodb
--innodb
Compile with support for Innodb tables
Compile with support for Innodb tables
--
bdb
--
libwrap
Compile with
support for Berkeley DB tables
Compile with
TCP wrapper support
--user 'user_name'
--local-perl
Mail 'user_name'\@mysql.com if something went wrong.
Install Perl modules locally
If user is empty then no mail is sent.
--
distribution 'distribution_file'
--
make-options <options>
Name of the MySQL distribution file.
Options to make after configure. (Like 'CXXLD=gcc')
--
result 'result_dir'
--
no-crash-me
Send binary distribution to result_dir
Do not run the "crash-me" test
--no-delete
--no-strip
Do not delete the distribution file.
Do not strip the binaries included in the binary distribution
--no-test
Do not run any tests
--perl-files=list of files
--perl-files=list of files
Compile and install the given perl modules.
Compile and install the given perl modules.
--
no-test
--
perl-options <options>
Don not run crash-me or the benchmarks.
Build Perl modules with the additional options
--
config-options 'some extra configure options'
--
raid
To add some extra options, like '--with-perl=yes'
Compile with RAID support
--
config-env 'environment for configure'
--
stage (1-6)
To set up the environment, like 'CC=cc CXX=gcc CXXFLAGS=-O3'
Start script from some specific point.
--
dbd-options 'options'
--
static-client
Options for Makefile.PL when configuring msql-mysql-modules.
Build statically linked client binaries
--make-options 'options'
--static-perl
Options to make after configure. (Like 'CXXLD=gcc')
Build statically linked Perl modules
--static-server
Build statically linked server binary
--tcpip
Connect to the server to be tested via TCP/IP instead of socket
--tmp <directory>
Use a different temporary directory than /tmp
--use-old-distribution
Do not clean up the build environment and extract a fresh source
distribution, use an existing one instead.
--user <user_name>
Mail 'user_name'\@mysql.com if something went wrong.
If user is empty then no mail is sent.
--version-suffix suffix
--version-suffix suffix
Can be used to set a suffix (normally
'com' or '-max') for a distribution
Set name suffix (e.g.
'com' or '-max') for a distribution
--with-low-memory
--with-low-memory
Use less memory when compiling.
Use less memory when compiling.
-- stage (1-6)
--with-other-libc <path to libc>
Start script from some specific point.
Link against libc and other standard libraries installed in the specified
non-standard location overriding default.
-- debug
--with-small-disk
Print all shell commands on stdout.
Clean up the build environment before testing the binary distribution
(to save disk space)
EOF
EOF
exit
1
;
exit
1
;
}
}
...
@@ -411,7 +505,7 @@ exit 1;
...
@@ -411,7 +505,7 @@ exit 1;
sub
abort
sub
abort
{
{
my
(
$message
)
=
@_
;
my
(
$message
)
=
@_
;
my
(
$
command
,
$
mail_header_file
);
my
(
$mail_header_file
);
print
LOG
"
\n
$message
\n
";
print
LOG
"
\n
$message
\n
";
print
"
$host
:
$message
\n
"
if
(
$opt_debug
);
print
"
$host
:
$message
\n
"
if
(
$opt_debug
);
close
LOG
;
close
LOG
;
...
@@ -424,9 +518,8 @@ sub abort
...
@@ -424,9 +518,8 @@ sub abort
print
TMP
"
To:
$email
\n
";
print
TMP
"
To:
$email
\n
";
print
TMP
"
Subject: MySQL compilation failed again
\n\n
";
print
TMP
"
Subject: MySQL compilation failed again
\n\n
";
close
TMP
;
close
TMP
;
$command
=
(
$opt_rsh_mail
)
?
"
$rsh
analytik
"
:
"";
system
("
tail -30
$log
>
$log
.mail
");
system
("
tail -30
$log
>
$log
.mail
");
system
("
cat
$mail_header_file
$log
.mail |
$
command
$
sendmail
-t -f
$email
");
system
("
cat
$mail_header_file
$log
.mail |
$sendmail
-t -f
$email
");
unlink
(
$mail_header_file
);
unlink
(
$mail_header_file
);
unlink
("
$log
.mail
");
unlink
("
$log
.mail
");
}
}
...
...
Docs/manual.texi
View file @
11a52078
...
@@ -8707,7 +8707,7 @@ cat /proc/sys/fs/super-max
...
@@ -8707,7 +8707,7 @@ cat /proc/sys/fs/super-max
@end example
@end example
If you have more than 16 MB of memory, you should add something like the
If you have more than 16 MB of memory, you should add something like the
following
in your boot script (@file{/etc/rc/boot.local} on SuSE
):
following
to your init scripts (e.g. @file{/etc/init.d/boot.local} on SuSE Linux
):
@example
@example
echo 65536 > /proc/sys/fs/file-max
echo 65536 > /proc/sys/fs/file-max
...
@@ -8715,10 +8715,22 @@ echo 8192 > /proc/sys/fs/dquot-max
...
@@ -8715,10 +8715,22 @@ echo 8192 > /proc/sys/fs/dquot-max
echo 1024 > /proc/sys/fs/super-max
echo 1024 > /proc/sys/fs/super-max
@end example
@end example
You can also run the preceding commands from the command-line as root, but
in this case
You can also run the preceding commands from the command-line as root, but
your old limits will be used
the next time your computer reboots.
these settings will be lost
the next time your computer reboots.
You should also add /etc/my.cnf:
Alternatively, you can set these parameters on bootup by using the
@code{sysctl} tool, which is used by many Linux distributions (SuSE has
added it as well, beginning with SuSE Linux 8.0). Just put the following
values into a file named @file{/etc/sysctl.conf}:
@example
# Increase some values for MySQL
fs.file-max = 65536
fs.dquot-max = 8192
fs.super-max = 1024
@end example
You should also add the following to @file{/etc/my.cnf}:
@example
@example
[safe_mysqld]
[safe_mysqld]
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