8. From the Build menu, select Build Solution.
9. Debug versions of the programs and libraries are placed in the
directories. Release versions of the programs and libraries are placed in the
and
lib_release
10. You should test you build before installation. See
Build".
11. To install, use the instructions in
Windows".
2.10.8.3. Installing MySQL from a Source Build on Windows
When you are satisfied that the program you have built is working correctly, stop the server. Now you
can install the distribution. There are two ways to do this, either by using the supplied installation script
or by copying the files individually by hand.
To use the script method you must have Cygwin installed as the script is a Shell script. To execute
the installation process, run the
source distribution (see
Archive"). This is a shell script, so you must have Cygwin installed if you want to use it. It creates a
Zip archive of the built executables and support files that you can unpack to your desired installation
location.
It is also possible to install MySQL by copying directories and files manually:
1. Create the directories where you want to install MySQL. For example, to install into C:\mysql, use
these commands:
shell>
mkdir C:\mysql
shell>
mkdir C:\mysql\bin
shell>
mkdir C:\mysql\data
shell>
mkdir C:\mysql\share
shell>
mkdir C:\mysql\scripts
If you want to compile other clients and link them to MySQL, you should also create several
additional directories:
shell>
mkdir C:\mysql\include
shell>
mkdir C:\mysql\lib
shell>
mkdir C:\mysql\lib\debug
shell>
mkdir C:\mysql\lib\opt
If you want to benchmark MySQL, create this directory:
shell>
mkdir C:\mysql\sql-bench
Benchmarking requires Perl support. See
2. From the work directory, copy into the
shell>
cd \workdir
C:\workdir>
C:\workdir>
C:\workdir>
C:\workdir>
If you want to compile other clients and link them to MySQL, you should also copy several libraries
and header files:
C:\workdir>
C:\workdir>
C:\workdir>
C:\workdir>
Installing MySQL from Source on Windows
directories.
Section 2.10.8.3, "Installing MySQL from a Source Build on
make_win_bin_dist
Section 4.4.2,
"make_win_bin_dist
copy client_release\*.exe C:\mysql\bin
copy client_debug\mysqld.exe C:\mysql\bin\mysqld-debug.exe
xcopy scripts\*.* C:\mysql\scripts /E
xcopy share\*.* C:\mysql\share /E
copy lib_debug\mysqlclient.lib C:\mysql\lib\debug
copy lib_debug\libmysql.* C:\mysql\lib\debug
copy lib_debug\zlib.* C:\mysql\lib\debug
copy lib_release\mysqlclient.lib C:\mysql\lib\opt
Section 2.10.8.4, "Testing a Windows Source
script in the
— Package MySQL Distribution as Zip
Section 2.22, "Perl Installation
directory the following directories:
C:\mysql
93
and
client_debug
lib_debug
client_release
directory of the MySQL
scripts
Notes".
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers