Installing MySQL from Source on Windows
93
8. From the Build menu, select Build Solution.
9. Debug versions of the programs and libraries are placed in the
client_debug
and
lib_debug
directories. Release versions of the programs and libraries are placed in the
client_release
and
lib_release
directories.
10. You should test you build before installation. See
Section 2.10.8.4, “Testing a Windows Source
Build”
.
11. To install, use the instructions in
Section 2.10.8.3, “Installing MySQL from a Source Build on
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
make_win_bin_dist
script in the
scripts
directory of the MySQL
source distribution (see
Section 4.4.2, “
make_win_bin_dist
— Package MySQL Distribution as Zip
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
Section 2.22, “Perl Installation Notes”
.
2. From the work directory, copy into the
C:\mysql
directory the following directories:
shell>
cd \workdir
C:\workdir>
copy client_release\*.exe C:\mysql\bin
C:\workdir>
copy client_debug\mysqld.exe C:\mysql\bin\mysqld-debug.exe
C:\workdir>
xcopy scripts\*.* C:\mysql\scripts /E
C:\workdir>
xcopy share\*.* C:\mysql\share /E
If you want to compile other clients and link them to MySQL, you should also copy several libraries
and header files:
C:\workdir>
copy lib_debug\mysqlclient.lib C:\mysql\lib\debug
C:\workdir>
copy lib_debug\libmysql.* C:\mysql\lib\debug
C:\workdir>
copy lib_debug\zlib.* C:\mysql\lib\debug
C:\workdir>
copy lib_release\mysqlclient.lib C:\mysql\lib\opt
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...