MySQL AB は、サービスとして MySQL の一連のバイナリディストリビューションを提供します。これらのバイナリディストリビューションは、社内でコンパイルするか、ユーザが当社にマシンへのアクセスを提供してくれる場所でコンパイルされます。
        プラットフォーム固有のパッケージ形式で提供するバイナリ(項2.1. 「標準 MySQL のクイックインストール」
        を参照)のほかに、tar
        形式の圧縮アーカイブ(.tar.gz)によってさまざまなプラットフォーム用のバイナリディストリビューションも提供します。
      
        これらのディストリビューションは、Build-tools/Do-compile
        スクリプトを使用して生成されます。このスクリプトは、ソースコードをコンパイルし、scripts/make_binary_distribution
        を使用してバイナリ tar.gz
        アーカイブを作成します。これらのバイナリは、以下のコンパイラとオプションによってコンフィギャおよびビルドされます。
      
MySQL AB の開発システムでビルドされるバイナリは以下のとおりです。
            Linux 2.4.xx x86 with gcc 2.95.3
          
            CFLAGS="-O2 -mcpu=pentiumpro" CXX=gcc CXXFLAGS="-O2
            -mcpu=pentiumpro -felide-constructors" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --enable-assembler --disable-shared
            --with-client-ldflags=-all-static
            --with-mysqld-ldflags=-all-static
          
            Linux 2.4.xx Intel Itanium 2 with ecc
            (Intel C++ Itanium Compiler 7.0)
          
            CC=ecc CFLAGS="-O2 -tpp2 -ip -nolib_inline" CXX=ecc
            CXXFLAGS="-O2 -tpp2 -ip -nolib_inline" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
          
            Linux 2.4.xx Intel Itanium with ecc
            (Intel C++ Itanium Compiler 7.0)
          
            CC=ecc CFLAGS=-tpp1 CXX=ecc CXXFLAGS=-tpp1
            ./configure --prefix=/usr/local/mysql
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile
          
            Linux 2.4.xx alpha with ccc (Compaq C
            V6.2-505 / Compaq C++ V6.3-006)
          
            CC=ccc CFLAGS="-fast -arch generic" CXX=cxx
            CXXFLAGS="-fast -arch generic -noexceptions -nortti"
            ./configure --prefix=/usr/local/mysql
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile --with-mysqld-ldflags=-non_shared
            --with-client-ldflags=-non_shared --disable-shared
          
            Linux 2.4.xx s390 with gcc 2.95.3
          
            CFLAGS="-O2" CXX=gcc CXXFLAGS="-O2
            -felide-constructors" ./configure --prefix=/usr/local/mysql
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile --disable-shared
            --with-client-ldflags=-all-static
            --with-mysqld-ldflags=-all-static
          
            Linux 2.4.xx x86_64 (AMD64) with gcc
            3.2.1
          
            CXX=gcc ./configure --prefix=/usr/local/mysql
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile --disable-shared
          
            Sun Solaris 8 x86 with gcc 3.2.3
          
            CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer" CXX=gcc
            CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors
            -fno-exceptions -fno-rtti" ./configure
            --prefix=/usr/local/mysql
            --localstatedir=/usr/local/mysql/data
            --libexecdir=/usr/local/mysql/bin
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile --disable-shared
            --with-innodb
          
            Sun Solaris 8 sparc with gcc 3.2
          
            CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer" CXX=gcc
            CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors
            -fno-exceptions -fno-rtti" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --enable-assembler --with-named-z-libs=no
            --with-named-curses-libs=-lcurses --disable-shared
          
            Sun Solaris 8 sparc 64bit with gcc 3.2
          
            CC=gcc CFLAGS="-O3 -m64 -fno-omit-frame-pointer"
            CXX=gcc CXXFLAGS="-O3 -m64 -fno-omit-frame-pointer
            -felide-constructors -fno-exceptions -fno-rtti" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --enable-assembler --with-named-z-libs=no
            --with-named-curses-libs=-lcurses --disable-shared
          
            Sun Solaris 9 sparc with gcc 2.95.3
          
            CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer" CXX=gcc
            CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors
            -fno-exceptions -fno-rtti" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --enable-assembler --with-named-curses-libs=-lcurses
            --disable-shared
          
            Sun Solaris 9 sparc with cc-5.0 (Sun
            Forte 5.0)
          
            CC=cc-5.0 CXX=CC ASFLAGS="-xarch=v9" CFLAGS="-Xa
            -xstrconst -mt -D_FORTEC_ -xarch=v9" CXXFLAGS="-noex -mt
            -D_FORTEC_ -xarch=v9" ./configure --prefix=/usr/local/mysql
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile --enable-assembler
            --with-named-z-libs=no --enable-thread-safe-client
            --disable-shared
          
            IBM AIX 4.3.2 ppc with gcc 3.2.3
          
            CFLAGS="-O2 -mcpu=powerpc -Wa,-many " CXX=gcc
            CXXFLAGS="-O2 -mcpu=powerpc -Wa,-many -felide-constructors
            -fno-exceptions -fno-rtti" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --with-named-z-libs=no --disable-shared
          
            IBM AIX 4.3.3 ppc with xlC_r (IBM Visual
            Age C/C++ 6.0)
          
            CC=xlc_r CFLAGS="-ma -O2 -qstrict -qoptimize=2
            -qmaxmem=8192" CXX=xlC_r CXXFLAGS ="-ma -O2 -qstrict
            -qoptimize=2 -qmaxmem=8192" ./configure
            --prefix=/usr/local/mysql
            --localstatedir=/usr/local/mysql/data
            --libexecdir=/usr/local/mysql/bin
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile --with-named-z-libs=no
            --disable-shared --with-innodb
          
            IBM AIX 5.1.0 ppc with gcc 3.3
          
            CFLAGS="-O2 -mcpu=powerpc -Wa,-many" CXX=gcc
            CXXFLAGS="-O2 -mcpu=powerpc -Wa,-many -felide-constructors
            -fno-exceptions -fno-rtti" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --with-server-suffix="-pro" --enable-thread-safe-client
            --enable-local-infile --with-named-z-libs=no
            --disable-shared
          
            HP-UX 10.20 pa-risc1.1 with gcc 3.1
          
            CFLAGS="-DHPUX -I/opt/dce/include -O3 -fPIC"
            CXX=gcc CXXFLAGS="-DHPUX -I/opt/dce /include
            -felide-constructors -fno-exceptions -fno-rtti -O3 -fPIC"
            ./configure --prefix=/usr/local/mysql
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile --with-pthread
            --with-named-thread-libs=-ldce --with-lib-ccflags=-fPIC
            --disable-shared
          
            HP-UX 11.11 pa-risc2.0 64bit with aCC (HP
            ANSI C++ B3910B A.03.33)
          
            CC=cc CXX=aCC CFLAGS=+DD64 CXXFLAGS=+DD64
            ./configure --prefix=/usr/local/mysql
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile --disable-shared
          
            HP-UX 11.11 pa-risc2.0 32bit with aCC (HP
            ANSI C++ B3910B A.03.33)
          
            CC=cc CXX=aCC CFLAGS="+DAportable"
            CXXFLAGS="+DAportable" ./configure --prefix=/usr/local/mysql
            --localstatedir=/usr/local/mysql/data
            --libexecdir=/usr/local/mysql/bin
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile --disable-shared
            --with-innodb
          
            Apple Mac OS X 10.2 powerpc with gcc 3.1
          
            CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer" CXX=gcc
            CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors
            -fno-exceptions -fno-rtti" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --disable-shared
          
            FreeBSD 4.7 i386 with gcc 2.95.4
          
            CFLAGS=-DHAVE_BROKEN_REALPATH ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --enable-assembler --with-named-z-libs=not-used
            --disable-shared
          
            QNX Neutrino 6.2.1 i386 with gcc
            2.95.3qnx-nto 20010315
          
            CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer" CXX=gcc
            CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors
            -fno-exceptions -fno-rtti" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --disable-shared
          
以下のバイナリは、他のユーザによって MySQL AB に提供されたサードパーティのシステム上でビルドされています。これらのバイナリは、好意によって提供されています。MySQL AB は、これらのシステムを完全に管理しているわけではないので、これらのシステム上でビルドされたバイナリに対しては限られたサポートしか提供できません。
            SCO Unix 3.2v5.0.6 i386 with gcc 2.95.3
          
            CFLAGS="-O3 -mpentium" LDFLAGS=-static CXX=gcc
            CXXFLAGS="-O3 -mpentium -felide-constructors" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --with-named-z-libs=no --enable-thread-safe-client
            --disable-shared
          
            SCO OpenUnix 8.0.0 i386 with CC 3.2
          
            CC=cc CFLAGS="-O" CXX=CC ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --with-named-z-libs=no --enable-thread-safe-client
            --disable-shared
          
            Compaq Tru64 OSF/1 V5.1 732 alpha with
            cc/cxx (Compaq C V6.3-029i / DIGITAL C++
            V6.1-027)
          
            CC="cc -pthread" CFLAGS="-O4 -ansi_alias -ansi_args
            -fast -inline speed -speculate all" CXX="cxx -pthread"
            CXXFLAGS="-O4 -ansi_alias -fast -inline speed -speculate all
            -noexceptions -nortti" ./configure --prefix=/usr/local/mysql
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile --with-prefix=/usr/local/mysql
            --with-named-thread-libs="-lpthread -lmach -lexc -lc"
            --disable-shared --with-mysqld-ldflags=-all-static
          
            SGI Irix 6.5 IP32 with gcc 3.0.1
          
            CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer"
            CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors
            -fno-exceptions -fno-rtti" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --disable-shared
          
            FreeBSD 5.0 sparc64 with gcc 3.2.1
          
            CFLAGS=-DHAVE_BROKEN_REALPATH ./configure
            --prefix=/usr/local/mysql
            --localstatedir=/usr/local/mysql/data
            --libexecdir=/usr/local/mysql/bin
            --with-extra-charsets=complex --enable-thread-safe-client
            --enable-local-infile --disable-shared
            --with-innodb
          
以下のコンパイルオプションは、MySQL AB がかつて提供していたバイナリパッケージに使用されていたものです。これらのバイナリは現在では更新されていませんが、参考のためにここにコンパイルオプションを記載します。
            Linux 2.2.xx sparc with egcs 1.1.2
          
            CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer" CXX=gcc
            CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors
            -fno-exceptions -fno-rtti" ./configure
            --prefix=/usr/local/mysql --with-extra-charsets=complex
            --enable-thread-safe-client --enable-local-infile
            --enable-assembler --disable-shared
          
            Linux 2.2.x with x686 with gcc 2.95.2
          
            CFLAGS="-O3 -mpentiumpro" CXX=gcc CXXFLAGS="-O3
            -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti"
            ./configure --prefix=/usr/local/mysql --enable-assembler
            --with-mysqld-ldflags=-all-static --disable-shared
            --with-extra-charsets=complex
          
            SunOS 4.1.4 2 sun4c with gcc 2.7.2.1
          
            CC=gcc CXX=gcc CXXFLAGS="-O3 -felide-constructors"
            ./configure --prefix=/usr/local/mysql --disable-shared
            --with-extra-charsets=complex --enable-assembler
          
            SunOS 5.5.1 (and above) sun4u with egcs
            1.0.3a or 2.90.27 or gcc 2.95.2 and newer
          
            CC=gcc CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3
            -felide-constructors -fno-exceptions -fno-rtti" ./configure
            --prefix=/usr/local/mysql --with-low-memory
            --with-extra-charsets=complex --enable-assembler
          
            SunOS 5.6 i86pc with gcc 2.8.1
          
            CC=gcc CXX=gcc CXXFLAGS=-O3 ./configure
            --prefix=/usr/local/mysql --with-low-memory
            --with-extra-charsets=complex
          
            BSDI BSD/OS 3.1 i386 with gcc 2.7.2.1
          
            CC=gcc CXX=gcc CXXFLAGS=-O ./configure
            --prefix=/usr/local/mysql
            --with-extra-charsets=complex
          
            BSDI BSD/OS 2.1 i386 with gcc 2.7.2
          
            CC=gcc CXX=gcc CXXFLAGS=-O3 ./configure
            --prefix=/usr/local/mysql
            --with-extra-charsets=complex
          
            AIX 2 4 with gcc 2.7.2.2
          
            CC=gcc CXX=gcc CXXFLAGS=-O3 ./configure
            --prefix=/usr/local/mysql
            --with-extra-charsets=complex
          
上記のいずれかの設定に関してさらに最適なオプションをお持ちの方は、そのオプションを MySQL 社内メーリングリストに随時お送りください。 See 項1.7.1.1. 「MySQL メーリングリスト」。
MySQL バージョン3.22 より前の RPM ディストリビューションは、ユーザによる寄贈です。バージョン 3.22 以降の RPM は、MySQL AB によって作成されています。
        MySQL
        のデバッグバージョンをコンパイルする場合は、前述の
        configure 行に --with-debug
        オプションまたは --with-debug=full
        オプションを追加し、すべての
        -fomit-frame-pointer
        オプションを削除してください。
      
Windows ディストリビューションについては、項2.1.1. 「Windows への MySQL のインストール」 を参照してください。
This is a translation of the MySQL Reference Manual that can be found at dev.mysql.com. The original Reference Manual is in English, and this translation is not necessarily as up to date as the English version.

