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
816ac895
Commit
816ac895
authored
May 03, 2002
by
paul@teton.kitebird.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge paul@work.mysql.com:/home/bk/mysql-4.0
into teton.kitebird.com:/home/paul/mysql-4.0
parents
97e464cc
041238d7
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
385 additions
and
335 deletions
+385
-335
.bzrignore
.bzrignore
+3
-0
BUILD/compile-pentium-max
BUILD/compile-pentium-max
+2
-1
BitKeeper/triggers/post-commit
BitKeeper/triggers/post-commit
+2
-1
Build-tools/Do-linux-build
Build-tools/Do-linux-build
+9
-1
Docs/Support/update-reserved-words.pl
Docs/Support/update-reserved-words.pl
+13
-9
Docs/manual.texi
Docs/manual.texi
+232
-218
Makefile.am
Makefile.am
+1
-1
configure.in
configure.in
+3
-0
include/Makefile.am
include/Makefile.am
+1
-1
strings/Makefile.am
strings/Makefile.am
+2
-1
support-files/mysql.server.sh
support-files/mysql.server.sh
+12
-0
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+105
-102
No files found.
.bzrignore
View file @
816ac895
...
@@ -464,3 +464,6 @@ Docs/safe-mysql.xml
...
@@ -464,3 +464,6 @@ Docs/safe-mysql.xml
mysys/test_vsnprintf
mysys/test_vsnprintf
Docs/manual.de.log
Docs/manual.de.log
Docs/internals.info
Docs/internals.info
mysql-4.0.2-alpha-pc-linux-gnu-i686.tar.gz
mysql-4.0.2-alpha.tar.gz
mysql-max-4.0.2-alpha-pc-linux-gnu-i686.tar.gz
BUILD/compile-pentium-max
View file @
816ac895
...
@@ -8,6 +8,7 @@ extra_configs="$pentium_configs"
...
@@ -8,6 +8,7 @@ extra_configs="$pentium_configs"
strip
=
yes
strip
=
yes
extra_configs
=
"
$extra_configs
--with-innodb --with-berkeley-db
\
extra_configs
=
"
$extra_configs
--with-innodb --with-berkeley-db
\
--enable-thread-safe-client --with-openssl --with-vio"
--with-embedded-server --enable-thread-safe-client
\
--with-openssl --with-vio"
.
"
$path
/FINISH.sh"
.
"
$path
/FINISH.sh"
BitKeeper/triggers/post-commit
View file @
816ac895
...
@@ -59,8 +59,9 @@ EOF
...
@@ -59,8 +59,9 @@ EOF
#++
#++
# docs-commit@ mail
# docs-commit@ mail
# Picks up anything under the Docs subdirectory (relevant for docs team).
#--
#--
bk changes
-v
-r
+ |
grep
-q
Docs/manual.texi
bk changes
-v
-r
+ |
grep
-q
" Docs/"
if
[
$?
-eq
0
]
if
[
$?
-eq
0
]
then
then
echo
"Notifying docs list at
$DOCS
"
echo
"Notifying docs list at
$DOCS
"
...
...
Build-tools/Do-linux-build
View file @
816ac895
#! /bin/sh
#! /bin/sh
set
-e
-x
set
-e
-x
# Only use the "--with-other-libc" parameter, if another libc actually
# exists, since this will also force static linking, which does not work
# together with OpenSSL
OTHER_LIBC_DIR
=
/usr/local/mysql-glibc
OTHER_LIBC_DIR
=
/usr/local/mysql-glibc
OTHER_LIBC
=
""
if
[
-d
OTHER_LIBC_DIR
]
;
then
OTHER_LIBC
=
"--with-other-libc=
$OTHER_LIBC_DIR
"
fi
BUILD/compile-pentium-max
--with-other-libc
=
$OTHER_LIBC_DIR
\
BUILD/compile-pentium-max
$OTHER_LIBC
\
--with-comment
=
"Official MySQL Binary"
\
--with-comment
=
"Official MySQL Binary"
\
--prefix
=
/usr/local/mysql
--with-extra-charset
=
complex
\
--prefix
=
/usr/local/mysql
--with-extra-charset
=
complex
\
--enable-thread-safe-client
--enable-local-infile
\
--enable-thread-safe-client
--enable-local-infile
\
...
...
Docs/Support/update-reserved-words.pl
View file @
816ac895
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
# 2001-11-20 Fixups by arjen@mysql.com, 2 keywords and 15 synonyms were missing
# 2001-11-20 Fixups by arjen@mysql.com, 2 keywords and 15 synonyms were missing
# 2001-12-07 Fixup by arjen@mysql.com, add column headings for multitable.
# 2001-12-07 Fixup by arjen@mysql.com, add column headings for multitable.
# 2002-05-01 Fixup by arjen@mysql.com, use 3 columns instead of 4.
# 2002-05-01 Fixup by arjen@mysql.com, use 3 columns instead of 4.
# 2002-05-03 Fixup by arjen@mysql.com, fill last row to full # of columns.
print
STDERR
"
Scanning lex.h for symbols..
\n
";
print
STDERR
"
Scanning lex.h for symbols..
\n
";
open
LEX
,
"
<../sql/lex.h
";
open
LEX
,
"
<../sql/lex.h
";
...
@@ -28,11 +29,6 @@ while(($line = <YACC>) =~ /[\s|]+([A-Z_]+)/) {
...
@@ -28,11 +29,6 @@ while(($line = <YACC>) =~ /[\s|]+([A-Z_]+)/) {
close
YACC
;
close
YACC
;
$list
=
sprintf
("
\
@c
Reserved word list updated %s by %s.
\n
"
.
"
\
@c
To regenerate, use Support/update-reserved-words.pl.
\n\n
",
&
pretty_date
,
$ENV
{
USER
});
print
STDERR
"
Copying reserved words to an array...
\n
";
print
STDERR
"
Copying reserved words to an array...
\n
";
foreach
(
keys
%
words
)
{
push
@words
,
$words
{
$_
};
};
foreach
(
keys
%
words
)
{
push
@words
,
$words
{
$_
};
};
...
@@ -42,11 +38,15 @@ print STDERR "Sorting array...\n";
...
@@ -42,11 +38,15 @@ print STDERR "Sorting array...\n";
printf
STDERR
"
There are %i reserved words.
\n
",
scalar
@words
;
printf
STDERR
"
There are %i reserved words.
\n
",
scalar
@words
;
@pre
=
("
\
@item
",
"
\
@tab
",
"
\
@tab
");
@pre
=
("
\
@item
",
"
\
@tab
",
"
\
@tab
");
@post
=
("
\n
",
"
\n
",
"
\n
");
$list
=
"";
for
(
$i
=
0
;
$word
=
shift
(
@words
);
$i
++
)
{
for
(
$i
=
0
;
$word
=
shift
(
@words
);
$i
++
)
{
$list
.=
sprintf
"
%s %-30s %s
",
$pre
[
$i
%
3
],
"
\
@code
\
{
$word
\
}
",
$post
[
$i
%
3
];
$list
.=
sprintf
"
%s %s
\n
",
$pre
[
$i
%
3
],
"
\
@code
\
{
$word
\
}
";
};
$list
.=
"
\n
";
}
# Fill last row to full # of columns.
for
(
;
$i
%
3
;
$i
++
)
{
$list
.=
sprintf
"
%s
\n
",
$pre
[
$i
%
3
];
}
open
OLD
,
"
<manual.texi
";
open
OLD
,
"
<manual.texi
";
open
NEW
,
"
>manual-tmp.texi
";
open
NEW
,
"
>manual-tmp.texi
";
...
@@ -54,10 +54,14 @@ open NEW, ">manual-tmp.texi";
...
@@ -54,10 +54,14 @@ open NEW, ">manual-tmp.texi";
print
STDERR
"
Copying beginning of manual.texi...
\n
";
print
STDERR
"
Copying beginning of manual.texi...
\n
";
while
((
$line
=
<
OLD
>
)
!~
/START_OF_RESERVED_WORDS/
)
{
print
NEW
$line
;
};
while
((
$line
=
<
OLD
>
)
!~
/START_OF_RESERVED_WORDS/
)
{
print
NEW
$line
;
};
print
NEW
"
\
@c
START_OF_RESERVED_WORDS
\n\n
";
print
NEW
"
\
@c
START_OF_RESERVED_WORDS
\n\n
";
printf
NEW
"
\
@c
Reserved word list updated %s by %s.
\n
"
.
"
\
@c
To regenerate, use Support/update-reserved-words.pl.
\n\n
",
&
pretty_date
,
$ENV
{
USER
};
print
STDERR
"
Inserting list of reserved words...
\n
";
print
STDERR
"
Inserting list of reserved words...
\n
";
# Ensure the fractions add up to 100% otherwise it looks funny in print:
# Ensure the fractions add up to 100% otherwise it looks funny in print:
print
NEW
"
\
@multitable
\
@columnfractions
.33 .33 .34
\n
";
print
NEW
"
\
@multitable
\
@columnfractions
.33 .33 .34
\n
";
print
NEW
"
\
@item
\
@strong
{Word}
\
@tab
\
@strong
{Word}
\
@tab
\
@strong
{Word}
\n
";
print
NEW
"
\
@item
\
@strong
{Word}
\n
\
@tab
\
@strong
{Word}
\n
\
@tab
\
@strong
{Word}
\n
";
print
NEW
$list
;
print
NEW
$list
;
print
NEW
"
\
@end
multitable
\n
";
print
NEW
"
\
@end
multitable
\n
";
print
STDERR
"
Skipping over old list...
\n
";
print
STDERR
"
Skipping over old list...
\n
";
...
...
Docs/manual.texi
View file @
816ac895
...
@@ -6929,7 +6929,7 @@ install MySQL, create some tables, then reconfigure
...
@@ -6929,7 +6929,7 @@ install MySQL, create some tables, then reconfigure
MySQL to use a different character set and reinstall it.)
MySQL to use a different character set and reinstall it.)
With the option @code{--with-extra-charset=LIST} you can define
With the option @code{--with-extra-charset=LIST} you can define
which additional character sets should be
incompiled in
the server.
which additional character sets should be
compiled into
the server.
Here @code{LIST} is either a list of character
Here @code{LIST} is either a list of character
sets separated with spaces,
sets separated with spaces,
...
@@ -8139,7 +8139,7 @@ version 4.0;
...
@@ -8139,7 +8139,7 @@ version 4.0;
@code{UNSIGNED} flag on storage (before, @code{UNSIGNED} was ignored for
@code{UNSIGNED} flag on storage (before, @code{UNSIGNED} was ignored for
these columns).
these columns).
@item
@item
Use
@code{ORDER BY column DESC} now always sorts @code{NULL} values
@code{ORDER BY column DESC} now always sorts @code{NULL} values
first; in 3.23 this was not always consistent.
first; in 3.23 this was not always consistent.
@item
@item
@code{SHOW INDEX} has 2 columns more (@code{Null} and @code{Index_type})
@code{SHOW INDEX} has 2 columns more (@code{Null} and @code{Index_type})
...
@@ -8188,8 +8188,8 @@ it is preferable to change the client to use the new 4.0 API.
...
@@ -8188,8 +8188,8 @@ it is preferable to change the client to use the new 4.0 API.
@item
@item
In the @code{MYSQL_FIELD} structure, @code{length} and @code{max_length} have
In the @code{MYSQL_FIELD} structure, @code{length} and @code{max_length} have
changed from @code{unsigned int} to @code{unsigned long}. This should not
changed from @code{unsigned int} to @code{unsigned long}. This should not
cause any
other problems than some warnings if you use these to
cause any
problems, except that they may generate warning messages when
@code{printf()} type function
.
used as arguments in the @code{printf()} class of functions
.
@item
@item
You should use @code{TRUNCATE TABLE} when you want to delete all rows
You should use @code{TRUNCATE TABLE} when you want to delete all rows
from a table and you don't care how many rows were deleted.
from a table and you don't care how many rows were deleted.
...
@@ -8315,8 +8315,8 @@ MySQL Version 3.22 and Version 3.23, you should not use the
...
@@ -8315,8 +8315,8 @@ MySQL Version 3.22 and Version 3.23, you should not use the
@item
@item
Check all your calls to @code{DATE_FORMAT()} to make sure there is a
Check all your calls to @code{DATE_FORMAT()} to make sure there is a
@samp{%} before each format character.
(Later MySQL Version 3.22
@samp{%} before each format character.
did allow
this syntax.)
(MySQL Version 3.22 and later already allowed
this syntax.)
@item
@item
@code{mysql_fetch_fields_direct} is now a function (it was a macro) and
@code{mysql_fetch_fields_direct} is now a function (it was a macro) and
...
@@ -8986,8 +8986,8 @@ You can avoid using @file{libg++.a} by running @code{configure} like this:
...
@@ -8986,8 +8986,8 @@ You can avoid using @file{libg++.a} by running @code{configure} like this:
shell> CXX=gcc ./configure
shell> CXX=gcc ./configure
@end example
@end example
If you are running gcc 3.0
and above, you can't use the above trick with
If you are running gcc 3.0
or above, you can't use the aforementioned trick
setting to
CXX=gcc.
of setting
CXX=gcc.
@node Linux-SPARC, Linux-Alpha, Linux-x86, Linux
@node Linux-SPARC, Linux-Alpha, Linux-x86, Linux
@subsubsection Linux SPARC Notes
@subsubsection Linux SPARC Notes
...
@@ -9078,7 +9078,7 @@ work). You must also use the @code{egcs} C++ compiler
...
@@ -9078,7 +9078,7 @@ work). You must also use the @code{egcs} C++ compiler
@node Linux-IA64, , Linux-MIPS, Linux
@node Linux-IA64, , Linux-MIPS, Linux
@subsubsection Linux IA64 Notes
@subsubsection Linux IA64 Notes
To get MySQL to compile on Linux I
a
64, we use the following compile line:
To get MySQL to compile on Linux I
A
64, we use the following compile line:
Using @code{gcc-2.96}:
Using @code{gcc-2.96}:
@example
@example
...
@@ -9088,7 +9088,7 @@ CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors \
...
@@ -9088,7 +9088,7 @@ CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors \
"--with-comment=Official MySQL binary" --with-extra-charsets=complex
"--with-comment=Official MySQL binary" --with-extra-charsets=complex
@end example
@end example
On I
a
64 the MySQL client binaries are using shared libraries. This means
On I
A
64 the MySQL client binaries are using shared libraries. This means
that if you install our binary distribution in some other place than
that if you install our binary distribution in some other place than
@file{/usr/local/mysql} you need to either modify @file{/etc/ld.so.conf}
@file{/usr/local/mysql} you need to either modify @file{/etc/ld.so.conf}
or add the path to the directory where you have @file{libmysqlclient.so}
or add the path to the directory where you have @file{libmysqlclient.so}
...
@@ -9368,8 +9368,9 @@ C:\> mysqladmin --user=root --password=your_password shutdown
...
@@ -9368,8 +9368,9 @@ C:\> mysqladmin --user=root --password=your_password shutdown
If you are using the old shareware version of MySQL Version
If you are using the old shareware version of MySQL Version
3.21 under Windows, the above command will fail with an error:
3.21 under Windows, the above command will fail with an error:
@code{parse error near 'SET OPTION password'}. The fix is in to upgrade
@code{parse error near 'SET OPTION password'}. The solution for
to the current MySQL version, which is freely available.
this is to download and upgrade to the latest MySQL version,
which is now freely available.
With the current MySQL versions you can easily add new users
With the current MySQL versions you can easily add new users
and change privileges with @code{GRANT} and @code{REVOKE} commands.
and change privileges with @code{GRANT} and @code{REVOKE} commands.
...
@@ -10402,7 +10403,7 @@ PHKL_22840 Streams cumulative
...
@@ -10402,7 +10403,7 @@ PHKL_22840 Streams cumulative
PHNE_22397 ARPA cumulative
PHNE_22397 ARPA cumulative
@end example
@end example
This will solve
a problem that one gets
@code{EWOULDBLOCK} from @code{recv()}
This will solve
the problem of getting
@code{EWOULDBLOCK} from @code{recv()}
and @code{EBADF} from @code{accept()} in threaded applications.
and @code{EBADF} from @code{accept()} in threaded applications.
If you are using @code{gcc} 2.95.1 on an unpatched HP-UX 11.x system,
If you are using @code{gcc} 2.95.1 on an unpatched HP-UX 11.x system,
...
@@ -21535,7 +21536,7 @@ binaries includes:
...
@@ -21535,7 +21536,7 @@ binaries includes:
@item HP-UX 11.0 @tab N @tab Y
@item HP-UX 11.0 @tab N @tab Y
@item Linux-Alpha @tab N @tab Y
@item Linux-Alpha @tab N @tab Y
@item Linux-Intel @tab Y @tab Y
@item Linux-Intel @tab Y @tab Y
@item Linux-I
a
64 @tab N @tab Y
@item Linux-I
A
64 @tab N @tab Y
@item Solaris-Intel @tab N @tab Y
@item Solaris-Intel @tab N @tab Y
@item Solaris-SPARC @tab Y @tab Y
@item Solaris-SPARC @tab Y @tab Y
@item Caldera (SCO) OSR5 @tab Y @tab Y
@item Caldera (SCO) OSR5 @tab Y @tab Y
...
@@ -28247,196 +28248,199 @@ A few are reserved because MySQL needs them and is
...
@@ -28247,196 +28248,199 @@ A few are reserved because MySQL needs them and is
@c START_OF_RESERVED_WORDS
@c START_OF_RESERVED_WORDS
@multitable @columnfractions .33 .33 .34
@c Reserved word list updated Fri May 3 08:41:00 2002 by arjen.
@item @strong{Word} @tab @strong{Word} @tab @strong{Word}
@c Reserved word list updated Wed May 1 10:50:08 2002 by arjen.
@c To regenerate, use Support/update-reserved-words.pl.
@c To regenerate, use Support/update-reserved-words.pl.
@item @code{ADD}
@multitable @columnfractions .33 .33 .34
@tab @code{ALL}
@item @strong{Word}
@tab @code{ALTER}
@tab @strong{Word}
@item @code{ANALYZE}
@tab @strong{Word}
@tab @code{AND}
@item @code{ADD}
@tab @code{AS}
@tab @code{ALL}
@item @code{ASC}
@tab @code{ALTER}
@tab @code{AUTO_INCREMENT}
@item @code{ANALYZE}
@tab @code{BDB}
@tab @code{AND}
@item @code{BERKELEYDB}
@tab @code{AS}
@tab @code{BETWEEN}
@item @code{ASC}
@tab @code{BIGINT}
@tab @code{AUTO_INCREMENT}
@item @code{BINARY}
@tab @code{BDB}
@tab @code{BLOB}
@item @code{BERKELEYDB}
@tab @code{BOTH}
@tab @code{BETWEEN}
@item @code{BY}
@tab @code{BIGINT}
@tab @code{CASCADE}
@item @code{BINARY}
@tab @code{CASE}
@tab @code{BLOB}
@item @code{CHANGE}
@tab @code{BOTH}
@tab @code{CHAR}
@item @code{BY}
@tab @code{CHARACTER}
@tab @code{CASCADE}
@item @code{COLUMN}
@tab @code{CASE}
@tab @code{COLUMNS}
@item @code{CHANGE}
@tab @code{CONSTRAINT}
@tab @code{CHAR}
@item @code{CREATE}
@tab @code{CHARACTER}
@tab @code{CROSS}
@item @code{COLUMN}
@tab @code{CURRENT_DATE}
@tab @code{COLUMNS}
@item @code{CURRENT_TIME}
@tab @code{CONSTRAINT}
@tab @code{CURRENT_TIMESTAMP}
@item @code{CREATE}
@tab @code{DATABASE}
@tab @code{CROSS}
@item @code{DATABASES}
@tab @code{CURRENT_DATE}
@tab @code{DAY_HOUR}
@item @code{CURRENT_TIME}
@tab @code{DAY_MINUTE}
@tab @code{CURRENT_TIMESTAMP}
@item @code{DAY_SECOND}
@tab @code{DATABASE}
@tab @code{DEC}
@item @code{DATABASES}
@tab @code{DECIMAL}
@tab @code{DAY_HOUR}
@item @code{DEFAULT}
@tab @code{DAY_MINUTE}
@tab @code{DELAYED}
@item @code{DAY_SECOND}
@tab @code{DELETE}
@tab @code{DEC}
@item @code{DESC}
@tab @code{DECIMAL}
@tab @code{DESCRIBE}
@item @code{DEFAULT}
@tab @code{DISTINCT}
@tab @code{DELAYED}
@item @code{DISTINCTROW}
@tab @code{DELETE}
@tab @code{DOUBLE}
@item @code{DESC}
@tab @code{DROP}
@tab @code{DESCRIBE}
@item @code{ELSE}
@tab @code{DISTINCT}
@tab @code{ENCLOSED}
@item @code{DISTINCTROW}
@tab @code{ESCAPED}
@tab @code{DOUBLE}
@item @code{EXISTS}
@tab @code{DROP}
@tab @code{EXPLAIN}
@item @code{ELSE}
@tab @code{FIELDS}
@tab @code{ENCLOSED}
@item @code{FLOAT}
@tab @code{ESCAPED}
@tab @code{FOR}
@item @code{EXISTS}
@tab @code{FOREIGN}
@tab @code{EXPLAIN}
@item @code{FROM}
@tab @code{FIELDS}
@tab @code{FULLTEXT}
@item @code{FLOAT}
@tab @code{FUNCTION}
@tab @code{FOR}
@item @code{GRANT}
@tab @code{FOREIGN}
@tab @code{GROUP}
@item @code{FROM}
@tab @code{HAVING}
@tab @code{FULLTEXT}
@item @code{HIGH_PRIORITY}
@tab @code{FUNCTION}
@tab @code{HOUR_MINUTE}
@item @code{GRANT}
@tab @code{HOUR_SECOND}
@tab @code{GROUP}
@item @code{IF}
@tab @code{HAVING}
@tab @code{IGNORE}
@item @code{HIGH_PRIORITY}
@tab @code{IN}
@tab @code{HOUR_MINUTE}
@item @code{INDEX}
@tab @code{HOUR_SECOND}
@tab @code{INFILE}
@item @code{IF}
@tab @code{INNER}
@tab @code{IGNORE}
@item @code{INNODB}
@tab @code{IN}
@tab @code{INSERT}
@item @code{INDEX}
@tab @code{INSERT_ID}
@tab @code{INFILE}
@item @code{INT}
@tab @code{INNER}
@tab @code{INTEGER}
@item @code{INNODB}
@tab @code{INTERVAL}
@tab @code{INSERT}
@item @code{INTO}
@tab @code{INSERT_ID}
@tab @code{IS}
@item @code{INT}
@tab @code{JOIN}
@tab @code{INTEGER}
@item @code{KEY}
@tab @code{INTERVAL}
@tab @code{KEYS}
@item @code{INTO}
@tab @code{KILL}
@tab @code{IS}
@item @code{LAST_INSERT_ID}
@tab @code{JOIN}
@tab @code{LEADING}
@item @code{KEY}
@tab @code{LEFT}
@tab @code{KEYS}
@item @code{LIKE}
@tab @code{KILL}
@tab @code{LIMIT}
@item @code{LAST_INSERT_ID}
@tab @code{LINES}
@tab @code{LEADING}
@item @code{LOAD}
@tab @code{LEFT}
@tab @code{LOCK}
@item @code{LIKE}
@tab @code{LONG}
@tab @code{LIMIT}
@item @code{LONGBLOB}
@tab @code{LINES}
@tab @code{LONGTEXT}
@item @code{LOAD}
@tab @code{LOW_PRIORITY}
@tab @code{LOCK}
@item @code{MASTER_SERVER_ID}
@tab @code{LONG}
@tab @code{MATCH}
@item @code{LONGBLOB}
@tab @code{MEDIUMBLOB}
@tab @code{LONGTEXT}
@item @code{MEDIUMINT}
@tab @code{LOW_PRIORITY}
@tab @code{MEDIUMTEXT}
@item @code{MASTER_SERVER_ID}
@tab @code{MIDDLEINT}
@tab @code{MATCH}
@item @code{MINUTE_SECOND}
@tab @code{MEDIUMBLOB}
@tab @code{MRG_MYISAM}
@item @code{MEDIUMINT}
@tab @code{NATURAL}
@tab @code{MEDIUMTEXT}
@item @code{NOT}
@tab @code{MIDDLEINT}
@tab @code{NULL}
@item @code{MINUTE_SECOND}
@tab @code{NUMERIC}
@tab @code{MRG_MYISAM}
@item @code{ON}
@tab @code{NATURAL}
@tab @code{OPTIMIZE}
@item @code{NOT}
@tab @code{OPTION}
@tab @code{NULL}
@item @code{OPTIONALLY}
@tab @code{NUMERIC}
@tab @code{OR}
@item @code{ON}
@tab @code{ORDER}
@tab @code{OPTIMIZE}
@item @code{OUTER}
@tab @code{OPTION}
@tab @code{OUTFILE}
@item @code{OPTIONALLY}
@tab @code{PARTIAL}
@tab @code{OR}
@item @code{PRECISION}
@tab @code{ORDER}
@tab @code{PRIMARY}
@item @code{OUTER}
@tab @code{PRIVILEGES}
@tab @code{OUTFILE}
@item @code{PROCEDURE}
@tab @code{PARTIAL}
@tab @code{PURGE}
@item @code{PRECISION}
@tab @code{READ}
@tab @code{PRIMARY}
@item @code{REAL}
@tab @code{PRIVILEGES}
@tab @code{REFERENCES}
@item @code{PROCEDURE}
@tab @code{REGEXP}
@tab @code{PURGE}
@item @code{RENAME}
@tab @code{READ}
@tab @code{REPLACE}
@item @code{REAL}
@tab @code{REQUIRE}
@tab @code{REFERENCES}
@item @code{RESTRICT}
@tab @code{REGEXP}
@tab @code{RETURNS}
@item @code{RENAME}
@tab @code{REVOKE}
@tab @code{REPLACE}
@item @code{RIGHT}
@tab @code{REQUIRE}
@tab @code{RLIKE}
@item @code{RESTRICT}
@tab @code{SELECT}
@tab @code{RETURNS}
@item @code{SET}
@tab @code{REVOKE}
@tab @code{SHOW}
@item @code{RIGHT}
@tab @code{SMALLINT}
@tab @code{RLIKE}
@item @code{SONAME}
@tab @code{SELECT}
@tab @code{SQL_AUTO_IS_NULL}
@item @code{SET}
@tab @code{SQL_BIG_RESULT}
@tab @code{SHOW}
@item @code{SQL_BIG_SELECTS}
@tab @code{SMALLINT}
@tab @code{SQL_BIG_TABLES}
@item @code{SONAME}
@tab @code{SQL_BUFFER_RESULT}
@tab @code{SQL_AUTO_IS_NULL}
@item @code{SQL_CALC_FOUND_ROWS}
@tab @code{SQL_BIG_RESULT}
@tab @code{SQL_LOG_BIN}
@item @code{SQL_BIG_SELECTS}
@tab @code{SQL_LOG_OFF}
@tab @code{SQL_BIG_TABLES}
@item @code{SQL_LOG_UPDATE}
@tab @code{SQL_BUFFER_RESULT}
@tab @code{SQL_LOW_PRIORITY_UPDATES}
@item @code{SQL_CALC_FOUND_ROWS}
@tab @code{SQL_MAX_JOIN_SIZE}
@tab @code{SQL_LOG_BIN}
@item @code{SQL_QUOTE_SHOW_CREATE}
@tab @code{SQL_LOG_OFF}
@tab @code{SQL_SAFE_UPDATES}
@item @code{SQL_LOG_UPDATE}
@tab @code{SQL_SELECT_LIMIT}
@tab @code{SQL_LOW_PRIORITY_UPDATES}
@item @code{SQL_SLAVE_SKIP_COUNTER}
@tab @code{SQL_MAX_JOIN_SIZE}
@tab @code{SQL_SMALL_RESULT}
@item @code{SQL_QUOTE_SHOW_CREATE}
@tab @code{SQL_WARNINGS}
@tab @code{SQL_SAFE_UPDATES}
@item @code{SSL}
@tab @code{SQL_SELECT_LIMIT}
@tab @code{STARTING}
@item @code{SQL_SLAVE_SKIP_COUNTER}
@tab @code{STRAIGHT_JOIN}
@tab @code{SQL_SMALL_RESULT}
@item @code{STRIPED}
@tab @code{SQL_WARNINGS}
@tab @code{TABLE}
@item @code{SSL}
@tab @code{TABLES}
@tab @code{STARTING}
@item @code{TERMINATED}
@tab @code{STRAIGHT_JOIN}
@tab @code{THEN}
@item @code{STRIPED}
@tab @code{TINYBLOB}
@tab @code{TABLE}
@item @code{TINYINT}
@tab @code{TABLES}
@tab @code{TINYTEXT}
@item @code{TERMINATED}
@tab @code{TO}
@tab @code{THEN}
@item @code{TRAILING}
@tab @code{TINYBLOB}
@tab @code{UNION}
@item @code{TINYINT}
@tab @code{UNIQUE}
@tab @code{TINYTEXT}
@item @code{UNLOCK}
@tab @code{TO}
@tab @code{UNSIGNED}
@item @code{TRAILING}
@tab @code{UPDATE}
@tab @code{UNION}
@item @code{USAGE}
@tab @code{UNIQUE}
@tab @code{USE}
@item @code{UNLOCK}
@tab @code{USING}
@tab @code{UNSIGNED}
@item @code{VALUES}
@tab @code{UPDATE}
@tab @code{VARBINARY}
@item @code{USAGE}
@tab @code{VARCHAR}
@tab @code{USE}
@item @code{VARYING}
@tab @code{USING}
@tab @code{WHEN}
@item @code{VALUES}
@tab @code{WHERE}
@tab @code{VARBINARY}
@item @code{WITH}
@tab @code{VARCHAR}
@tab @code{WRITE}
@item @code{VARYING}
@tab @code{YEAR_MONTH}
@tab @code{WHEN}
@item @code{ZEROFILL}
@tab @code{WHERE}
@item @code{WITH}
@tab @code{WRITE}
@tab @code{YEAR_MONTH}
@item @code{ZEROFILL}
@tab
@tab
@end multitable
@end multitable
@c END_OF_RESERVED_WORDS
@c END_OF_RESERVED_WORDS
...
@@ -36491,21 +36495,31 @@ Transactional @code{InnoDB} tables that have been changed will be invalidated
...
@@ -36491,21 +36495,31 @@ Transactional @code{InnoDB} tables that have been changed will be invalidated
when a @code{COMMIT} is performed.
when a @code{COMMIT} is performed.
A query cannot be cached if it contains one of the functions:
A query cannot be cached if it contains one of the functions:
@multitable @columnfractions .25 .25 .25 .25
@multitable @columnfractions .33 .33 .34
@item @strong{Function} @tab @strong{Function}
@item @strong{Function}
@tab @strong{Function} @tab @strong{Function}
@tab @strong{Function}
@item @code{User-Defined Functions} @tab @code{CONNECTION_ID}
@tab @strong{Function}
@tab @code{FOUND_ROWS} @tab @code{GET_LOCK}
@item @code{User-Defined Functions}
@item @code{RELEASE_LOCK} @tab @code{LOAD_FILE}
@tab @code{CONNECTION_ID}
@tab @code{MASTER_POS_WAIT} @tab @code{NOW}
@tab @code{FOUND_ROWS}
@item @code{SYSDATE} @tab @code{CURRENT_TIMESTAMP}
@item @code{GET_LOCK}
@tab @code{CURDATE} @tab @code{CURRENT_DATE}
@tab @code{RELEASE_LOCK}
@item @code{CURTIME} @tab @code{CURRENT_TIME}
@tab @code{LOAD_FILE}
@tab @code{DATABASE} @tab @code{ENCRYPT} (with one parameter)
@item @code{MASTER_POS_WAIT}
@item @code{LAST_INSERT_ID} @tab @code{RAND}
@tab @code{NOW}
@tab @code{UNIX_TIMESTAMP} (without parameters) @tab @code{USER}
@tab @code{SYSDATE}
@item @code{BENCHMARK} @tab
@item @code{CURRENT_TIMESTAMP}
@tab @tab
@tab @code{CURDATE}
@tab @code{CURRENT_DATE}
@item @code{CURTIME}
@tab @code{CURRENT_TIME}
@tab @code{DATABASE}
@item @code{ENCRYPT} (with one parameter)
@tab @code{LAST_INSERT_ID}
@tab @code{RAND}
@item @code{UNIX_TIMESTAMP} (without parameters)
@tab @code{USER}
@tab @code{BENCHMARK}
@end multitable
@end multitable
Nor can a query be cached if it contains user variables,
Nor can a query be cached if it contains user variables,
...
@@ -51224,7 +51238,7 @@ Fixed that open transactions in @code{BDB} tables are rolled back if the
...
@@ -51224,7 +51238,7 @@ Fixed that open transactions in @code{BDB} tables are rolled back if the
connection is closed unexpectedly.
connection is closed unexpectedly.
@item
@item
Added workaround for a bug in @code{gcc} 2.96 (intel) and @code{gcc} 2.9
Added workaround for a bug in @code{gcc} 2.96 (intel) and @code{gcc} 2.9
(I
a
64) in @code{gen_lex_hash.c}.
(I
A
64) in @code{gen_lex_hash.c}.
@item
@item
Fixed memory leak in the client library when using @code{host=} in the
Fixed memory leak in the client library when using @code{host=} in the
@file{my.cnf} file.
@file{my.cnf} file.
Makefile.am
View file @
816ac895
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
# Process this file with automake to create Makefile.in
# Process this file with automake to create Makefile.in
AUTOMAKE_OPTIONS
=
foreign
AUTOMAKE_OPTIONS
=
foreign
TAR
=
gtar
# These are built from source in the Docs directory
# These are built from source in the Docs directory
EXTRA_DIST
=
INSTALL-SOURCE README
\
EXTRA_DIST
=
INSTALL-SOURCE README
\
COPYING COPYING.LIB MIRRORS
COPYING COPYING.LIB MIRRORS
...
...
configure.in
View file @
816ac895
...
@@ -364,6 +364,9 @@ AC_PATH_PROG(SED, sed, sed)
...
@@ -364,6 +364,9 @@ AC_PATH_PROG(SED, sed, sed)
AC_PATH_PROG
(
CMP, cmp, cmp
)
AC_PATH_PROG
(
CMP, cmp, cmp
)
AC_PATH_PROG
(
CHMOD,
chmod
,
chmod
)
AC_PATH_PROG
(
CHMOD,
chmod
,
chmod
)
AC_PATH_PROG
(
HOSTNAME,
hostname
,
hostname
)
AC_PATH_PROG
(
HOSTNAME,
hostname
,
hostname
)
# Check for a GNU tar named 'gtar', or 'gnutar' (MacOS X) and
# fall back to 'tar' otherwise and hope that it's a GNU tar as well
AC_CHECK_PROGS
(
TAR, gnutar gtar
tar
)
dnl We use a path
for
perl so the script startup works
dnl We use a path
for
perl so the script startup works
dnl We make sure to use perl, not perl5,
in
hopes that the RPMs will
dnl We make sure to use perl, not perl5,
in
hopes that the RPMs will
dnl not depend on the perl5 binary being installed
(
probably a bug
in
RPM
)
dnl not depend on the perl5 binary being installed
(
probably a bug
in
RPM
)
...
...
include/Makefile.am
View file @
816ac895
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
BUILT_SOURCES
=
mysql_version.h m_ctype.h my_config.h
BUILT_SOURCES
=
mysql_version.h m_ctype.h my_config.h
pkginclude_HEADERS
=
dbug.h m_string.h my_sys.h my_list.h
\
pkginclude_HEADERS
=
dbug.h m_string.h my_sys.h my_list.h
\
mysql.h mysql_com.h mysqld_error.h mysql_embed.h
\
mysql.h mysql_com.h mysqld_error.h mysql_embed.h
\
my_pthread.h my_no_pthread.h raid.h errmsg.h
\
my_semaphore.h
my_pthread.h my_no_pthread.h raid.h errmsg.h
\
my_global.h my_net.h my_alloc.h
\
my_global.h my_net.h my_alloc.h
\
sslopt-case.h sslopt-longopts.h sslopt-usage.h
\
sslopt-case.h sslopt-longopts.h sslopt-usage.h
\
sslopt-vars.h
$(BUILT_SOURCES)
sslopt-vars.h
$(BUILT_SOURCES)
...
...
strings/Makefile.am
View file @
816ac895
...
@@ -45,7 +45,8 @@ EXTRA_DIST = ctype-big5.c ctype-czech.c ctype-euc_kr.c \
...
@@ -45,7 +45,8 @@ EXTRA_DIST = ctype-big5.c ctype-czech.c ctype-euc_kr.c \
ctype-gb2312.c ctype-gbk.c ctype-sjis.c
\
ctype-gb2312.c ctype-gbk.c ctype-sjis.c
\
ctype-tis620.c ctype-ujis.c ctype-latin1_de.c
\
ctype-tis620.c ctype-ujis.c ctype-latin1_de.c
\
ctype_autoconf.c
\
ctype_autoconf.c
\
strto.c strings-x86.s longlong2str-x86.s
\
strto.c strings-x86.s
\
longlong2str.c longlong2str-x86.s
\
strxmov.c bmove_upp.c strappend.c strcont.c strend.c
\
strxmov.c bmove_upp.c strappend.c strcont.c strend.c
\
strfill.c strcend.c is_prefix.c strstr.c strinstr.c
\
strfill.c strcend.c is_prefix.c strstr.c strinstr.c
\
strmake.c strnmov.c strmov.c strnlen.c
\
strmake.c strnmov.c strmov.c strnlen.c
\
...
...
support-files/mysql.server.sh
View file @
816ac895
...
@@ -13,6 +13,18 @@
...
@@ -13,6 +13,18 @@
# chkconfig: 2345 90 90
# chkconfig: 2345 90 90
# description: A very fast and reliable SQL database engine.
# description: A very fast and reliable SQL database engine.
# Comments to support LSB init script conventions
### BEGIN INIT INFO
# Provides: mysql
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 3 5
# Default-Stop: 3 5
# Short-Description: start and stop MySLQ
# Description: MySQL is a very fast and reliable SQL database engine.
### END INIT INFO
# The following variables are only set for letting mysql.server find things.
# The following variables are only set for letting mysql.server find things.
# If you want to affect other MySQL variables, you should make your changes
# If you want to affect other MySQL variables, you should make your changes
# in the /etc/my.cnf or other configuration files.
# in the /etc/my.cnf or other configuration files.
...
...
support-files/mysql.spec.sh
View file @
816ac895
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
Name: MySQL
Name: MySQL
Summary: MySQL: a very fast and reliable SQL database
engine
Summary: MySQL: a very fast and reliable SQL database
server
Group: Applications/Databases
Group: Applications/Databases
Summary
(
pt_BR
)
: MySQL: Um servidor SQL rpido e confivel.
Summary
(
pt_BR
)
: MySQL: Um servidor SQL rpido e confivel.
Group
(
pt_BR
)
: Aplicaes/Banco_de_Dados
Group
(
pt_BR
)
: Aplicaes/Banco_de_Dados
...
@@ -18,54 +18,32 @@ Icon: mysql.gif
...
@@ -18,54 +18,32 @@ Icon: mysql.gif
URL: http://www.mysql.com/
URL: http://www.mysql.com/
Packager: David Axmark <david@mysql.com>
Packager: David Axmark <david@mysql.com>
Vendor: MySQL AB
Vendor: MySQL AB
Requires: fileutils sh-utils
Provides: msqlormysql MySQL-server mysql
Provides: msqlormysql MySQL-server mysql
Obsoletes: mysql
Obsoletes: mysql
# Think about what you use here since the first step is to
# Think about what you use here since the first step is to
# run a rm -rf
# run a rm -rf
BuildRoot:
/var/tmp/mysql
BuildRoot:
%
{
_tmppath
}
/%
{
name
}
-%
{
version
}
-build
# From the manual
# From the manual
%description
%description
MySQL is a
true
multi-user, multi-threaded SQL
(
Structured Query
The MySQL
(
TM
)
software delivers a very fast, multi-threaded, multi-user,
Language
)
database server. MySQL is a client/server implementation
and robust SQL
(
Structured Query Language
)
database server. MySQL Server
that consists of a server daemon
(
mysqld
)
and many different client
is intended
for
mission-critical, heavy-load production systems as well
programs/libraries.
as
for
embedding into mass-deployed software. MySQL is a trademark of
MySQL AB.
The main goals of MySQL are speed, robustness and ease of use. MySQL
was originally developed because we needed a SQL server that could
The MySQL software has Dual Licensing, which means you can use the MySQL
handle very big databases with magnitude higher speed than what any
software free of charge under the GNU General Public License
database vendor could offer to us. And since we did not need all the
(
http://www.gnu.org/licenses/
)
.
You can also purchase commercial MySQL
features that made their server slow we made our own. We have now been
licenses from MySQL AB
if
you
do
not wish to be bound by the terms of
using MySQL since 1996
in
a environment with more than 40 databases,
the GPL. See the chapter
"Licensing and Support"
in
the manual
for
10,000 tables, of which more than 500 have more than 7 million
further info.
rows. This is about 200G of data.
The MySQL web site
(
http://www.mysql.com/
)
provides the latest
The base upon which MySQL is built is a
set
of routines that have been
news and information about the MySQL software. Also please see the
used
in
a highly demanding production environment
for
many
documentation and the manual
for
more information.
years. While MySQL is still
in
development, it already offers a rich
and highly useful
function
set.
See the documentation
for
more information.
%description
-l
pt_BR
O MySQL um servidor de banco de dados SQL realmente multiusurio e
\
multi-tarefa. A linguagem SQL a mais popular linguagem para banco de
\
dados no mundo. O MySQL uma implementao cliente/servidor que
\
consiste de um servidor chamado mysqld e diversos
\
programas/bibliotecas clientes. Os principais objetivos
do
MySQL so:
\
velocidade, robustez e facilidade de uso. O MySQL foi originalmente
\
desenvolvido porque ns na Tcx precisvamos de um servidor SQL que
\
pudesse lidar com grandes bases de dados e com uma velocidade muito
\
maior
do
que a que qualquer vendedor podia nos oferecer. Estamos
\
usando
\
o MySQL desde 1996 em um ambiente com mais de 40 bases de dados com 10.000
\
tabelas, das quais mais de 500 tm mais de 7 milhes de linhas. Isto o
\
equivalente a aproximadamente 50G de dados crticos. A base da construo
do
\
MySQL uma srie de rotinas que foram usadas em um ambiente de produo com
\
alta demanda por muitos anos. Mesmo o MySQL estando ainda em desenvolvimento,
\
ele j oferece um conjunto de funes muito ricas e teis. Veja a documentao
\
para maiores informaes.
%package client
%package client
Release: %
{
release
}
Release: %
{
release
}
...
@@ -86,7 +64,7 @@ Este pacote cont
...
@@ -86,7 +64,7 @@ Este pacote cont
%package bench
%package bench
Release: %
{
release
}
Release: %
{
release
}
Requires:
MySQL
-client MySQL-DBI-perl-bin perl
Requires:
%
{
name
}
-client
MySQL-DBI-perl-bin perl
Summary: MySQL - Benchmarks and
test
system
Summary: MySQL - Benchmarks and
test
system
Group: Applications/Databases
Group: Applications/Databases
Summary
(
pt_BR
)
: MySQL - Medies de desempenho
Summary
(
pt_BR
)
: MySQL - Medies de desempenho
...
@@ -104,7 +82,7 @@ Este pacote cont
...
@@ -104,7 +82,7 @@ Este pacote cont
%package devel
%package devel
Release: %
{
release
}
Release: %
{
release
}
Requires:
MySQL
-client
Requires:
%
{
name
}
-client
Summary: MySQL - Development header files and libraries
Summary: MySQL - Development header files and libraries
Group: Applications/Databases
Group: Applications/Databases
Summary
(
pt_BR
)
: MySQL - Medies de desempenho
Summary
(
pt_BR
)
: MySQL - Medies de desempenho
...
@@ -139,21 +117,29 @@ Provides: mysql-Max
...
@@ -139,21 +117,29 @@ Provides: mysql-Max
Obsoletes: mysql-Max
Obsoletes: mysql-Max
%description Max
%description Max
Optional MySQL server binary that supports
features
Optional MySQL server binary that supports
additional features like
like transactional tables. To activ
e this binary, just
install
this
transactional tables. To activat
e this binary, just
install
this
package
after
the MySQL package.
package
in
addition to
the MySQL package.
%package embedded
%package embedded
Release: %
{
release
}
Release: %
{
release
}
Requires: devel
Requires:
%
{
name
}
-
devel
Summary: MySQL - embedded library
Summary: MySQL - embedded library
Group: Applications/Databases
Group: Applications/Databases
Summary
(
pt_BR
)
: MySQL - Medies de desempenho
Summary
(
pt_BR
)
: MySQL - Medies de desempenho
Group
(
pt_BR
)
: Aplicaes/Banco_de_Dados
Group
(
pt_BR
)
: Aplicaes/Banco_de_Dados
Obsoletes: embedded
Obsoletes:
mysql-
embedded
%description embedded
%description embedded
This package contains the MySQL server as library.
This package contains the MySQL server as an embedded library.
The embedded MySQL server library makes it possible to run a
full-featured MySQL server inside the client application.
The main benefits are increased speed and more simple management
for
embedded applications.
The API is identical
for
the embedded MySQL version and the
client/server version.
%
{
see_base
}
%
{
see_base
}
...
@@ -188,9 +174,9 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
...
@@ -188,9 +174,9 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
--sysconfdir=/etc
\
--sysconfdir=/etc
\
--datadir=/usr/share
\
--datadir=/usr/share
\
--localstatedir=/var/lib/mysql
\
--localstatedir=/var/lib/mysql
\
--infodir=
/usr/info
\
--infodir=
%{_infodir}
\
--includedir=/usr/include
\
--includedir=/usr/include
\
--mandir=
/usr/man
\
--mandir=
%{_mandir}
\
--with-embedded-server
\
--with-embedded-server
\
--enable-thread-safe-client
\
--enable-thread-safe-client
\
--with-comment=
\"
Official MySQL RPM
\"
;
--with-comment=
\"
Official MySQL RPM
\"
;
...
@@ -217,12 +203,9 @@ fi
...
@@ -217,12 +203,9 @@ fi
RBR
=
$RPM_BUILD_ROOT
RBR
=
$RPM_BUILD_ROOT
MBD
=
$RPM_BUILD_DIR
/mysql-%
{
mysql_version
}
MBD
=
$RPM_BUILD_DIR
/mysql-%
{
mysql_version
}
if
test
-z
"
$RBR
"
-o
"
$RBR
"
=
"/"
then
# Clean up the BuildRoot first
echo
"RPM_BUILD_ROOT has stupid value"
[
"
$RBR
"
!=
"/"
]
&&
[
-d
$RBR
]
&&
rm
-rf
$RBR
;
exit
1
fi
rm
-rf
$RBR
mkdir
-p
$RBR
mkdir
-p
$RBR
#
#
...
@@ -248,7 +231,7 @@ mv Docs/manual.ps Docs/manual.ps.save
...
@@ -248,7 +231,7 @@ mv Docs/manual.ps Docs/manual.ps.save
make distclean
make distclean
mv
Docs/manual.ps.save Docs/manual.ps
mv
Docs/manual.ps.save Docs/manual.ps
#now build and save shared libraries
#
now build and save shared libraries
BuildMySQL
"--enable-shared --enable-thread-safe-client --without-server "
BuildMySQL
"--enable-shared --enable-thread-safe-client --without-server "
(
cd
libmysql/.libs
;
tar
cf
$RBR
/shared-libs.tar
*
.so
*
)
(
cd
libmysql/.libs
;
tar
cf
$RBR
/shared-libs.tar
*
.so
*
)
(
cd
libmysql_r/.libs
;
tar
rf
$RBR
/shared-libs.tar
*
.so
*
)
(
cd
libmysql_r/.libs
;
tar
rf
$RBR
/shared-libs.tar
*
.so
*
)
...
@@ -271,13 +254,14 @@ nm --numeric-sort sql/mysqld > sql/mysqld.sym
...
@@ -271,13 +254,14 @@ nm --numeric-sort sql/mysqld > sql/mysqld.sym
%install
-n
mysql-%
{
mysql_version
}
%install
-n
mysql-%
{
mysql_version
}
RBR
=
$RPM_BUILD_ROOT
RBR
=
$RPM_BUILD_ROOT
MBD
=
$RPM_BUILD_DIR
/mysql-%
{
mysql_version
}
MBD
=
$RPM_BUILD_DIR
/mysql-%
{
mysql_version
}
# Ensure that needed directories exists
# Ensure that needed directories exists
install
-d
$RBR
/etc/
{
logrotate.d,rc.d/init.d
}
install
-d
$RBR
/etc/
{
logrotate.d,rc.d/init.d
}
install
-d
$RBR
/var/lib/mysql/mysql
install
-d
$RBR
/var/lib/mysql/mysql
install
-d
$RBR
/usr/share/sql-bench
install
-d
$RBR
/usr/share/sql-bench
install
-d
$RBR
/usr/share/mysql-test
install
-d
$RBR
/usr/share/mysql-test
install
-d
$RBR
/usr/
{
sbin,share,man,include
}
install
-d
$RBR
%
{
_mandir
}
install
-d
$RBR
/usr/
doc/MySQL-%
{
mysql_version
}
install
-d
$RBR
/usr/
{
sbin,share,include
}
install
-d
$RBR
/usr/lib
install
-d
$RBR
/usr/lib
# Make install
# Make install
make
install
DESTDIR
=
$RBR
benchdir_root
=
/usr/share/
make
install
DESTDIR
=
$RBR
benchdir_root
=
/usr/share/
...
@@ -296,18 +280,6 @@ install -m644 $MBD/sql/mysqld.sym $RBR/usr/lib/mysql/mysqld.sym
...
@@ -296,18 +280,6 @@ install -m644 $MBD/sql/mysqld.sym $RBR/usr/lib/mysql/mysqld.sym
install
-m644
$MBD
/support-files/mysql-log-rotate
$RBR
/etc/logrotate.d/mysql
install
-m644
$MBD
/support-files/mysql-log-rotate
$RBR
/etc/logrotate.d/mysql
install
-m755
$MBD
/support-files/mysql.server
$RBR
/etc/rc.d/init.d/mysql
install
-m755
$MBD
/support-files/mysql.server
$RBR
/etc/rc.d/init.d/mysql
# Install docs
install
-m644
$RPM_BUILD_DIR
/mysql-%
{
mysql_version
}
/Docs/mysql.info
\
$RBR
/usr/info/mysql.info
for
file
in
README COPYING COPYING.LIB Docs/manual_toc.html Docs/manual.html
\
Docs/manual.txt Docs/manual.texi Docs/manual.ps
\
support-files/my-huge.cnf support-files/my-large.cnf
\
support-files/my-medium.cnf support-files/my-small.cnf
do
b
=
`
basename
$file
`
install
-m644
$MBD
/
$file
$RBR
/usr/doc/MySQL-%
{
mysql_version
}
/
$b
done
%pre
%pre
if
test
-x
/etc/rc.d/init.d/mysql
if
test
-x
/etc/rc.d/init.d/mysql
then
then
...
@@ -375,32 +347,43 @@ fi
...
@@ -375,32 +347,43 @@ fi
# database files.
# database files.
%files
%files
%attr
(
-, root, root
)
%doc /usr/doc/MySQL-%
{
mysql_version
}
/
%doc %attr
(
644, root, root
)
COPYING COPYING.LIB README
%doc %attr
(
644, root, root
)
Docs/manual.
{
html,ps,texi,txt
}
Docs/manual_toc.html
%doc %attr
(
644, root, root
)
support-files/my-
*
.cnf
%doc %attr
(
644, root, root
)
%
{
_infodir
}
/mysql.info
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/isamchk.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/isamlog.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/mysql_zap.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/mysqld.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/mysqld_multi.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/mysqld_safe.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/perror.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/replace.1
*
%attr
(
755, root, root
)
/usr/bin/isamchk
%attr
(
755, root, root
)
/usr/bin/isamchk
%attr
(
755, root, root
)
/usr/bin/isamlog
%attr
(
755, root, root
)
/usr/bin/isamlog
%attr
(
755, root, root
)
/usr/bin/
pack_isam
%attr
(
755, root, root
)
/usr/bin/
my_print_defaults
%attr
(
755, root, root
)
/usr/bin/myisamchk
%attr
(
755, root, root
)
/usr/bin/myisamchk
%attr
(
755, root, root
)
/usr/bin/myisamlog
%attr
(
755, root, root
)
/usr/bin/myisamlog
%attr
(
755, root, root
)
/usr/bin/myisampack
%attr
(
755, root, root
)
/usr/bin/myisampack
%attr
(
755, root, root
)
/usr/bin/mysql_fix_privilege_tables
%attr
(
755, root, root
)
/usr/bin/mysql_convert_table_format
%attr
(
755, root, root
)
/usr/bin/mysql_convert_table_format
%attr
(
755, root, root
)
/usr/bin/mysql_explain_log
%attr
(
755, root, root
)
/usr/bin/mysql_fix_privilege_tables
%attr
(
755, root, root
)
/usr/bin/mysql_install_db
%attr
(
755, root, root
)
/usr/bin/mysql_install_db
%attr
(
755, root, root
)
/usr/bin/mysql_setpermission
%attr
(
755, root, root
)
/usr/bin/mysql_setpermission
%attr
(
755, root, root
)
/usr/bin/mysql_zap
%attr
(
755, root, root
)
/usr/bin/mysql_zap
%attr
(
755, root, root
)
/usr/bin/mysqlbug
%attr
(
755, root, root
)
/usr/bin/mysqlbug
%attr
(
755, root, root
)
/usr/bin/mysqltest
%attr
(
755, root, root
)
/usr/bin/mysqld_multi
%attr
(
755, root, root
)
/usr/bin/mysqld_safe
%attr
(
755, root, root
)
/usr/bin/mysqlhotcopy
%attr
(
755, root, root
)
/usr/bin/mysqlhotcopy
%attr
(
755, root, root
)
/usr/bin/mysql_explain_log
%attr
(
755, root, root
)
/usr/bin/mysqltest
%attr
(
755, root, root
)
/usr/bin/pack_isam
%attr
(
755, root, root
)
/usr/bin/perror
%attr
(
755, root, root
)
/usr/bin/perror
%attr
(
755, root, root
)
/usr/bin/replace
%attr
(
755, root, root
)
/usr/bin/replace
%attr
(
755, root, root
)
/usr/bin/resolveip
%attr
(
755, root, root
)
/usr/bin/mysqld_safe
%attr
(
755, root, root
)
/usr/bin/resolve_stack_dump
%attr
(
755, root, root
)
/usr/bin/resolve_stack_dump
%attr
(
755, root, root
)
/usr/bin/mysqld_multi
%attr
(
755, root, root
)
/usr/bin/resolveip
%attr
(
755, root, root
)
/usr/bin/my_print_defaults
%attr
(
644, root, root
)
/usr/info/mysql.info
*
%attr
(
755, root, root
)
/usr/sbin/mysqld
%attr
(
755, root, root
)
/usr/sbin/mysqld
%attr
(
644, root, root
)
/usr/lib/mysql/mysqld.sym
%attr
(
644, root, root
)
/usr/lib/mysql/mysqld.sym
...
@@ -413,28 +396,20 @@ fi
...
@@ -413,28 +396,20 @@ fi
%files client
%files client
%attr
(
755, root, root
)
/usr/bin/msql2mysql
%attr
(
755, root, root
)
/usr/bin/msql2mysql
%attr
(
755, root, root
)
/usr/bin/mysql
%attr
(
755, root, root
)
/usr/bin/mysql
%attr
(
755, root, root
)
/usr/bin/mysql_find_rows
%attr
(
755, root, root
)
/usr/bin/mysqlaccess
%attr
(
755, root, root
)
/usr/bin/mysqlaccess
%attr
(
755, root, root
)
/usr/bin/mysqladmin
%attr
(
755, root, root
)
/usr/bin/mysqladmin
%attr
(
755, root, root
)
/usr/bin/mysqlbinlog
%attr
(
755, root, root
)
/usr/bin/mysqlcheck
%attr
(
755, root, root
)
/usr/bin/mysqlcheck
%attr
(
755, root, root
)
/usr/bin/mysql_find_rows
%attr
(
755, root, root
)
/usr/bin/mysqldump
%attr
(
755, root, root
)
/usr/bin/mysqldump
%attr
(
755, root, root
)
/usr/bin/mysqlimport
%attr
(
755, root, root
)
/usr/bin/mysqlimport
%attr
(
755, root, root
)
/usr/bin/mysqlshow
%attr
(
755, root, root
)
/usr/bin/mysqlshow
%attr
(
755, root, root
)
/usr/bin/mysqlbinlog
%attr
(
644, root, man
)
%doc /usr/man/man1/mysql.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/mysql.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/isamchk.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/mysqlaccess.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/isamlog.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/mysqladmin.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/mysql_zap.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/mysqldump.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/mysqlaccess.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/mysqlshow.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/mysqladmin.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/mysqld.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/mysqld_multi.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/mysqldump.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/mysqlshow.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/perror.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/replace.1
*
%attr
(
644, root, man
)
%doc /usr/man/man1/mysqld_safe.1
*
%post shared
%post shared
/sbin/ldconfig
/sbin/ldconfig
...
@@ -443,14 +418,30 @@ fi
...
@@ -443,14 +418,30 @@ fi
/sbin/ldconfig
/sbin/ldconfig
%files devel
%files devel
%defattr
(
644 root, root
)
%attr
(
755, root, root
)
/usr/bin/comp_err
%attr
(
755, root, root
)
/usr/bin/comp_err
%attr
(
755, root, root
)
/usr/include/mysql/
%attr
(
755, root, root
)
/usr/lib/mysql/
*
.a
%attr
(
755, root, root
)
/usr/bin/mysql_config
%attr
(
755, root, root
)
/usr/bin/mysql_config
%dir %attr
(
755, root, root
)
/usr/include/mysql
%dir %attr
(
755, root, root
)
/usr/lib/mysql
/usr/include/mysql/
*
/usr/lib/mysql/libdbug.a
/usr/lib/mysql/libheap.a
/usr/lib/mysql/libmerge.a
/usr/lib/mysql/libmyisam.a
/usr/lib/mysql/libmyisammrg.a
/usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.la
/usr/lib/mysql/libmysqlclient_r.a
/usr/lib/mysql/libmysqlclient_r.la
/usr/lib/mysql/libmystrings.a
/usr/lib/mysql/libmysys.a
/usr/lib/mysql/libnisam.a
/usr/lib/mysql/libvio.a
%files shared
%files shared
%defattr
(
755 root, root
)
# Shared libraries (omit for architectures that don't support them)
# Shared libraries (omit for architectures that don't support them)
%attr
(
755, root, root
)
/usr/lib/
*
.so
*
/usr/lib/
*
.so
*
%files bench
%files bench
%attr
(
-, root, root
)
/usr/share/sql-bench
%attr
(
-, root, root
)
/usr/share/sql-bench
...
@@ -464,10 +455,22 @@ fi
...
@@ -464,10 +455,22 @@ fi
%attr
(
644, root, root
)
/usr/lib/mysql/mysqld-max.sym
%attr
(
644, root, root
)
/usr/lib/mysql/mysqld-max.sym
%files embedded
%files embedded
%attr
(
755
, root, root
)
/usr/lib/mysql/libmysqld.a
%attr
(
644
, root, root
)
/usr/lib/mysql/libmysqld.a
%changelog
%changelog
*
Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
- Use more RPM macros
(
e.g. infodir, mandir
)
to make the spec
file more portable
- reorganized the installation of documentation files:
let
RPM
take care of this
- reorganized the file list: actually
install
man pages along
with the binaries of the respective subpackage
- don
't include libmysqld.a in the devel subpackage as well, if we
have a special "embedded" subpackage
- reworked the package descriptions
* Mon Oct 8 2001 Monty
* Mon Oct 8 2001 Monty
- Added embedded server as a separate RPM
- Added embedded server as a separate RPM
...
...
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