~ubuntu-branches/ubuntu/natty/mysql-5.1/natty

« back to all changes in this revision

Viewing changes to INSTALL-WIN-SOURCE

Tags: 5.1.54-1ubuntu1
* Synchronize from Debian Experimental:
* Merge from debian unstable:
  + debian/control:
     * Update maintainer according to spec.
     * Move section from "misc" to "database".
     * Added libmysqlclient16-dev an empty transitional package. 
     * Added mysql-client-core-5.1 package.
     * Suggest mailx for mysql-server-5.1
     * Add mysql-testsuite package so you can run the testsuite seperately.
  + debian/additions/my.cnf:
    * Remove language options. Error message files are located in a different directory in Mysql
      5.0. Setting the language option to use /usr/share/mysql/english breaks Mysql 5.0. Both 5.0
      and 5.1 use a different value that works. (LP: #316974)
  + Add apparmor profile:
    + debian/apparmor-profile: apparmor-profile
    + debian/rules, debian/mysql-server-5.1.files: install apparmor profile
    + debian/mysql-server-5.1.dirs: add etc/apparmor.d/fore-complain
    + debian/mysql-server-5.1.postrm: remove symlink in force-complain/ on purge.
    + debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    + debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    + debian/mysql-server-5.1.postinst: reload apparmor profiles
  * Convert the package from sysvinit to upstart:
    + debian/mysql-server-5.1.mysql.upstart: Add upstart script.
    + debian/mysql-server-5.1.mysql.init: Dropped, unused now with upstart.
    + debian/additions/mysqld_safe_syslog.cnf: Dropped, unused now with upstart.
    + debian/additons/my.cnf: Remove pid declaration and setup error logging to /var/log/mysql since
      we're not piping anything around logger anymore.
    + debian/rules, debian/mysql-server-5.1.logcheck.ignore.{paranoid,worstation},
      debian/mysql-server-5.1.logcheck.ignore.server: : Remove references to mysqld_safe
    + debian/patches/38_scripts_mysqld_safe.sh_signals.dpatch: Dropped
  * Added -fno-strict-aliasing to CFLAGS to get around mysql testsuite build failures.
  * Add Apport hook (LP: #354188):
    + debian/mysql-server-5.1.py: apport package hook
    + debian/rules: Make it installable
  * debian/mysql-server-5.1.mysql-server.logrotate: Check to see if mysql is running before
    running logrotate. (LP: #513135)
  * Make the testsuite installable. (LP: #530752)
    + debian/mysql-server-5.1.files, debian/rules: install apport package hook
  * debian/mysql-server-5.1.preinst: Set mysql user's home directory
    to /nonexistent to protect against having the /var/lib/mysql
    user-writeable. If an attacker can trick mysqld into creating
    dot files in the home directory, he could do .rhost-like attacks
    on the system. (LP: #293258)
  * debian/control: mysql-client-5.1 should depend on mysql-core-client-5.1.
    (LP: #590952)
  * debian/mysql-server.5.1.postinst: Specify the mysql user when installing 
    the mysql databases. (LP: #591875)
  * Installing mysql_config_pic in /usr/bin so users of libmysqld-pic
    can extract the appropriate compile flags. (LP: #605021) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
2.5.10. Installing MySQL from Source on Windows
3
 
 
4
 
   These instructions describe how to build binaries from source for
5
 
   MySQL 5.1 on Windows. Instructions are provided for building
6
 
   binaries from a standard source distribution or from the Bazaar
7
 
   tree that contains the latest development source.
8
 
 
9
 
Note
 
1
2.11.7. Installing MySQL from Source on Windows
 
2
 
 
3
   These instructions describe how to build binaries from source
 
4
   for MySQL 5.1 on Windows. Instructions are provided for
 
5
   building binaries from a standard source distribution or from
 
6
   the Bazaar tree that contains the latest development source.
 
7
   Note
10
8
 
11
9
   The instructions here are strictly for users who want to test
12
 
   MySQL on Microsoft Windows from the latest source distribution or
13
 
   from the Bazaar tree. For production use, we do not advise using a
14
 
   MySQL server built by yourself from source. Normally, it is best
15
 
   to use precompiled binary distributions of MySQL that are built
16
 
   specifically for optimal performance on Windows by Oracle
17
 
   Corporation. Instructions for installing binary distributions are
18
 
   available in Section 2.5, "Installing MySQL on Windows."
 
10
   MySQL on Microsoft Windows from the latest source
 
11
   distribution or from the Bazaar tree. For production use, we
 
12
   do not advise using a MySQL server built by yourself from
 
13
   source. Normally, it is best to use precompiled binary
 
14
   distributions of MySQL that are built specifically for
 
15
   optimal performance on Windows by Oracle Corporation.
 
16
   Instructions for installing binary distributions are
 
17
   available in Section 2.3, "Installing MySQL on Microsoft
 
18
   Windows."
19
19
 
20
20
   To build MySQL on Windows from source, you must satisfy the
21
21
   following system, compiler, and resource requirements:
24
24
       Windows Vista is supported when using Visual Studio 2005
25
25
       provided you have installed the following updates:
26
26
 
27
 
          + Microsoft Visual Studio 2005 Professional Edition - ENU
28
 
            Service Pack 1 (KB926601)
 
27
          + Microsoft Visual Studio 2005 Professional Edition -
 
28
            ENU Service Pack 1 (KB926601)
29
29
            (http://support.microsoft.com/?kbid=926601)
30
30
 
31
31
          + Security Update for Microsoft Visual Studio 2005
37
37
            (http://support.microsoft.com/?kbid=932232)
38
38
 
39
39
     * CMake, which can be downloaded from http://www.cmake.org.
40
 
       After installing, modify your path to include the cmake
41
 
       binary.
42
 
 
43
 
     * Microsoft Visual C++ 2005 Express Edition, Visual Studio .Net
44
 
       2003 (7.1), or Visual Studio 2005 (8.0) compiler system.
45
 
 
46
 
     * If you are using Visual C++ 2005 Express Edition, you must
47
 
       also install an appropriate Platform SDK. More information and
48
 
       links to downloads for various Windows platforms is available
49
 
       from
50
 
       http://www.microsoft.com/downloads/details.aspx?familyid=0baf2
51
 
       b35-c656-4969-ace8-e4c0c0716adb.
52
 
 
53
 
     * If you are compiling from a Bazaar tree or making changes to
54
 
       the parser, you need bison for Windows, which can be
 
40
       After installing, modify your PATH environment variable
 
41
       to include the directory where cmake is located.
 
42
 
 
43
     * Microsoft Visual C++ 2005 Express Edition, Visual Studio
 
44
       .Net 2003 (7.1), or Visual Studio 2005 (8.0) compiler
 
45
       system.
 
46
 
 
47
     * If you are using Visual C++ 2005 Express Edition, you
 
48
       must also install an appropriate Platform SDK. More
 
49
       information and links to downloads for various Windows
 
50
       platforms is available from
 
51
       http://www.microsoft.com/downloads/details.aspx?familyid=
 
52
       0baf2b35-c656-4969-ace8-e4c0c0716adb.
 
53
 
 
54
     * If you are compiling from a Bazaar tree or making changes
 
55
       to the parser, you need bison for Windows, which can be
55
56
       downloaded from
56
 
       http://gnuwin32.sourceforge.net/packages/bison.htm. Download
57
 
       the package labeled "Complete package, excluding sources".
58
 
       After installing the package, modify your path to include the
59
 
       bison binary and ensure that this binary is accessible from
60
 
       Visual Studio.
 
57
       http://gnuwin32.sourceforge.net/packages/bison.htm.
 
58
       Download the package labeled "Complete package, excluding
 
59
       sources". After installing the package, modify your PATH
 
60
       environment variable to include the directory where bison
 
61
       is located.
 
62
       Note
 
63
       On Windows, the default location for bison is the
 
64
       C:\Program Files\GnuWin32 directory. Some utilities,
 
65
       including m4, may fail to find bison because of the space
 
66
       in the directory name. You can resolve this by installing
 
67
       into a directory that does not contain a space; for
 
68
       example C:\GnuWin32.
61
69
 
62
 
     * Cygwin might be necessary if you want to run the test script
63
 
       or package the compiled binaries and support files into a Zip
64
 
       archive. (Cygwin is needed only to test or package the
65
 
       distribution, not to build it.) Cygwin is available from
66
 
       http://cygwin.com.
 
70
     * Cygwin might be necessary if you want to run the test
 
71
       script or package the compiled binaries and support files
 
72
       into a Zip archive. (Cygwin is needed only to test or
 
73
       package the distribution, not to build it.) Cygwin is
 
74
       available from http://cygwin.com.
67
75
 
68
76
     * 3GB to 5GB of disk space.
69
77
 
70
 
   The exact system requirements for Visual Studio can be found here:
71
 
   http://msdn.microsoft.com/vstudio/Previous/2003/sysreqs/default.as
72
 
   px and
73
 
   http://msdn.microsoft.com/vstudio/products/sysreqs/default.aspx
74
 
 
75
 
   You also need a MySQL source distribution for Windows, which can
76
 
   be obtained two ways:
77
 
 
78
 
     * Obtain a source distribution packaged by Oracle Corporation.
79
 
       These are available from http://dev.mysql.com/downloads/.
80
 
 
81
 
     * Package a source distribution yourself from the latest Bazaar
82
 
       developer source tree. For instructions on pulling the latest
83
 
       source files, see Section 2.3.3, "Installing from the
84
 
       Development Source Tree."
 
78
   You also need a MySQL source distribution for Windows, which
 
79
   can be obtained two ways:
 
80
 
 
81
     * Obtain a source distribution packaged by Oracle
 
82
       Corporation. These are available from
 
83
       http://dev.mysql.com/downloads/.
 
84
 
 
85
     * Package a source distribution yourself from the latest
 
86
       Bazaar developer source tree. For instructions on pulling
 
87
       the latest source files, see Section 2.11.3, "Installing
 
88
       from a Development Source Tree."
85
89
 
86
90
   If you find something not working as expected, or you have
87
 
   suggestions about ways to improve the current build process on
88
 
   Windows, please send a message to the win32 mailing list. See
89
 
   Section 1.6.1, "MySQL Mailing Lists."
90
 
 
91
 
2.5.10.1. Building MySQL from Source Using CMake and Visual Studio
92
 
 
93
 
   You can build MySQL on Windows by using a combination of cmake and
94
 
   Microsoft Visual Studio .NET 2003 (7.1), Microsoft Visual Studio
95
 
   2005 (8.0), Microsoft Visual Studio 2008 (9.0) or Microsoft Visual
96
 
   C++ 2005 Express Edition. You must have the appropriate Microsoft
97
 
   Platform SDK installed.
98
 
 
99
 
Note
 
91
   suggestions about ways to improve the current build process
 
92
   on Windows, please send a message to the win32 mailing list.
 
93
   See Section 1.6.1, "MySQL Mailing Lists."
 
94
   Note
100
95
 
101
96
   To compile from the source code on Windows you must use the
102
 
   standard source distribution (for example, mysql-5.1.49.tar.gz).
103
 
   You build from the same distribution as used to build MySQL on
104
 
   Unix, Linux and other platforms. Do not use the Windows Source
105
 
   distributions as they do not contain the necessary configuration
106
 
   script and other files.
 
97
   standard source distribution (for example, mysql-5.1.55.zip)
 
98
   or mysql-5.1.55.tar.gz). You build from the same distribution
 
99
   as used to build MySQL on Unix, Linux and other platforms. Do
 
100
   not use the Windows Source distributions as they do not
 
101
   contain the necessary configuration script and other files.
107
102
 
108
103
   Follow this procedure to build MySQL:
109
104
 
110
 
    1. If you are installing from a packaged source distribution,
111
 
       create a work directory (for example, C:\workdir), and unpack
112
 
       the source distribution there using WinZip or another Windows
113
 
       tool that can read .zip files. This directory is the work
114
 
       directory in the following instructions.
115
 
 
116
 
Note
117
 
       You must run the commands in the win directory from the
118
 
       top-level source directory. Do not change into the win
119
 
       directory, as the commands will not be executed correctly.
120
 
 
121
 
    2. Start a command shell. If you have not configured the PATH and
122
 
       other environment variables for all command shells, you may be
123
 
       able to start a command shell from the Start Menu within the
124
 
       Windows Visual Studio menu that contains the necessary
125
 
       environment changes.
126
 
 
127
 
    3. Within the command shell, navigate to the work directory and
128
 
       run the following command:
 
105
    1. If you are installing from a packaged source
 
106
       distribution, create a work directory (for example,
 
107
       C:\workdir), and unpack the source distribution there
 
108
       using WinZip or another Windows tool that can read .zip
 
109
       files. This directory is the work directory in the
 
110
       following instructions.
 
111
       Note
 
112
       Commands that are located in the win directory should be
 
113
       executed from the top-level source directory. Do not
 
114
       change location into the win directory, as the commands
 
115
       will not execute correctly.
 
116
 
 
117
    2. Start a command shell. If you have not configured the
 
118
       PATH and other environment variables for all command
 
119
       shells, you may be able to start a command shell from the
 
120
       Start Menu within the Windows Visual Studio menu that
 
121
       contains the necessary environment changes.
 
122
 
 
123
    3. Within the command shell, navigate to the work directory
 
124
       and run the following command:
129
125
C:\workdir>win\configure.js options
 
126
 
130
127
       If you have associated the .js file extension with an
131
 
       application such as a text editor, then you may need to use
132
 
       the following command to force configure.js to be executed as
133
 
       a script:
 
128
       application such as a text editor, then you may need to
 
129
       use the following command to force configure.js to be
 
130
       executed as a script:
134
131
C:\workdir>cscript win\configure.js options
 
132
 
135
133
       These options are available for configure.js:
136
134
 
137
 
          + WITH_INNOBASE_STORAGE_ENGINE: Enable the InnoDB storage
138
 
            engine.
 
135
          + WITH_INNOBASE_STORAGE_ENGINE: Enable the InnoDB
 
136
            storage engine.
139
137
 
140
138
          + WITH_PARTITION_STORAGE_ENGINE: Enable user-defined
141
139
            partitioning.
142
140
 
143
 
          + WITH_ARCHIVE_STORAGE_ENGINE: Enable the ARCHIVE storage
144
 
            engine.
 
141
          + WITH_ARCHIVE_STORAGE_ENGINE: Enable the ARCHIVE
 
142
            storage engine.
145
143
 
146
144
          + WITH_BLACKHOLE_STORAGE_ENGINE: Enable the BLACKHOLE
147
145
            storage engine.
148
146
 
149
 
          + WITH_EXAMPLE_STORAGE_ENGINE: Enable the EXAMPLE storage
150
 
            engine.
 
147
          + WITH_EXAMPLE_STORAGE_ENGINE: Enable the EXAMPLE
 
148
            storage engine.
151
149
 
152
150
          + WITH_FEDERATED_STORAGE_ENGINE: Enable the FEDERATED
153
151
            storage engine.
154
152
 
155
 
          + WITH_NDBCLUSTER_STORAGE_ENGINE: Enable the NDBCLUSTER
156
 
            storage engine in the MySQL server; cause binaries for
157
 
            the MySQL Cluster management and data node, management
158
 
            client, and other programs to be built.
159
 
            This option is supported only in MySQL Cluster NDB 7.0
160
 
            (NDBCLUSTER storage engine versions 6.4.0 and later)
161
 
            using the MySQL Cluster sources. It cannot be used to
162
 
            enable clustering support in other MySQL source trees or
163
 
            distributions.
 
153
          + WITH_NDBCLUSTER_STORAGE_ENGINE: Enable the
 
154
            NDBCLUSTER storage engine in the MySQL server; cause
 
155
            binaries for the MySQL Cluster management and data
 
156
            node, management client, and other programs to be
 
157
            built.
 
158
            This option is supported only in MySQL Cluster NDB
 
159
            7.0 and later (NDBCLUSTER storage engine versions
 
160
            6.4.0 and later) using the MySQL Cluster sources. It
 
161
            cannot be used to enable clustering support in other
 
162
            MySQL source trees or distributions.
164
163
 
165
 
          + MYSQL_SERVER_SUFFIX=suffix: Server suffix, default none.
 
164
          + MYSQL_SERVER_SUFFIX=suffix: Server suffix, default
 
165
            none.
166
166
 
167
167
          + COMPILATION_COMMENT=comment: Server comment, default
168
168
            "Source distribution".
170
170
          + MYSQL_TCP_PORT=port: Server port, default 3306.
171
171
 
172
172
          + DISABLE_GRANT_OPTIONS: Disables the --bootstrap,
173
 
            --skip-grant-tables, and --init-file options for mysqld.
174
 
            This option is available as of MySQL 5.1.15.
 
173
            --skip-grant-tables, and --init-file options for
 
174
            mysqld. This option is available as of MySQL 5.1.15.
175
175
       For example (type the command on one line):
176
176
C:\workdir>win\configure.js WITH_INNOBASE_STORAGE_ENGINE
177
177
             WITH_PARTITION_STORAGE_ENGINE MYSQL_SERVER_SUFFIX=-pro
178
178
 
 
179
 
179
180
    4. From the work directory, execute the win\build-vs9.bat
180
181
       (Windows Visual Studio 2008), win\build-vs8.bat (Windows
181
 
       Visual Studio 2005), or win\build-vs71.bat (Windows Visual
182
 
       Stidion 2003) script, depending on the version of Visual
183
 
       Studio you have installed. The script invokes CMake, which
184
 
       generates the mysql.sln solution file.
185
 
       You can also use the corresponding 64-bit file (for example
186
 
       win\build-vs8_x64.bat or win\build-vs9_x64.bat) to build the
187
 
       64-bit version of MySQL. However, you cannot build the 64-bit
188
 
       version with Visual Studio Express Edition. You must use
189
 
       Visual Studio 2005 (8.0) or higher.
 
182
       Visual Studio 2005), or win\build-vs71.bat (Windows
 
183
       Visual Studio 2003) script, depending on the version of
 
184
       Visual Studio you have installed. The script invokes
 
185
       CMake, which generates the mysql.sln solution file.
 
186
       You can also use the corresponding 64-bit file (for
 
187
       example win\build-vs8_x64.bat or win\build-vs9_x64.bat)
 
188
       to build the 64-bit version of MySQL. However, you cannot
 
189
       build the 64-bit version with Visual Studio Express
 
190
       Edition. You must use Visual Studio 2005 (8.0) or higher.
190
191
 
191
 
    5. From the work directory, open the generated mysql.sln file
192
 
       with Visual Studio and select the proper configuration using
193
 
       the Configuration menu. The menu provides Debug, Release,
194
 
       RelwithDebInfo, MinRelInfo options. Then select Solution >
195
 
       Build to build the solution.
196
 
       Remember the configuration that you use in this step. It is
197
 
       important later when you run the test script because that
198
 
       script needs to know which configuration you used.
 
192
    5. From the work directory, open the generated mysql.sln
 
193
       file with Visual Studio and select the proper
 
194
       configuration using the Configuration menu. The menu
 
195
       provides Debug, Release, RelwithDebInfo, MinRelInfo
 
196
       options. Then select Solution > Build to build the
 
197
       solution.
 
198
       Remember the configuration that you use in this step. It
 
199
       is important later when you run the test script because
 
200
       that script needs to know which configuration you used.
199
201
 
200
202
    6. Test the server. The server built using the preceding
201
 
       instructions expects that the MySQL base directory and data
202
 
       directory are C:\mysql and C:\mysql\data by default. If you
203
 
       want to test your server using the source tree root directory
204
 
       and its data directory as the base directory and data
205
 
       directory, you need to tell the server their path names. You
206
 
       can either do this on the command line with the --basedir and
207
 
       --datadir options, or by placing appropriate options in an
208
 
       option file. (See Section 4.2.3.3, "Using Option Files.") If
209
 
       you have an existing data directory elsewhere that you want to
210
 
       use, you can specify its path name instead.
 
203
       instructions expects that the MySQL base directory and
 
204
       data directory are C:\mysql and C:\mysql\data by default.
 
205
       If you want to test your server using the source tree
 
206
       root directory and its data directory as the base
 
207
       directory and data directory, you need to tell the server
 
208
       their path names. You can either do this on the command
 
209
       line with the --basedir and --datadir options, or by
 
210
       placing appropriate options in an option file. (See
 
211
       Section 4.2.3.3, "Using Option Files.") If you have an
 
212
       existing data directory elsewhere that you want to use,
 
213
       you can specify its path name instead.
211
214
       When the server is running in standalone fashion or as a
212
 
       service based on your configuration, try to connect to it from
213
 
       the mysql interactive command-line utility.
214
 
       You can also run the standard test script, mysql-test-run.pl.
215
 
       This script is written in Perl, so you'll need either Cygwin
216
 
       or ActiveState Perl to run it. You may also need to install
217
 
       the modules required by the script. To run the test script,
218
 
       change location into the mysql-test directory under the work
219
 
       directory, set the MTR_VS_CONFIG environment variable to the
220
 
       configuration you selected earlier (or use the --vs-config
221
 
       option), and invoke mysql-test-run.pl. For example (using
222
 
       Cygwin and the bash shell):
 
215
       service based on your configuration, try to connect to it
 
216
       from the mysql interactive command-line utility.
 
217
       You can also run the standard test script,
 
218
       mysql-test-run.pl. This script is written in Perl, so
 
219
       you'll need either Cygwin or ActiveState Perl to run it.
 
220
       You may also need to install the modules required by the
 
221
       script. To run the test script, change location into the
 
222
       mysql-test directory under the work directory, set the
 
223
       MTR_VS_CONFIG environment variable to the configuration
 
224
       you selected earlier (or use the --vs-config option), and
 
225
       invoke mysql-test-run.pl. For example (using Cygwin and
 
226
       the bash shell):
223
227
shell> cd mysql-test
224
228
shell> export MTR_VS_CONFIG=debug
225
229
shell> ./mysql-test-run.pl --force --timer
227
231
 
228
232
   When you are satisfied that the programs you have built are
229
233
   working correctly, stop the server. Now you can install the
230
 
   distribution. One way to do this is to use the make_win_bin_dist
231
 
   script in the scripts directory of the MySQL source distribution
232
 
   (see Section 4.4.2, "make_win_bin_dist --- Package MySQL
233
 
   Distribution as ZIP Archive"). This is a shell script, so you must
234
 
   have Cygwin installed if you want to use it. It creates a Zip
235
 
   archive of the built executables and support files that you can
236
 
   unpack in the location at which you want to install MySQL.
237
 
 
238
 
   It is also possible to install MySQL by copying directories and
239
 
   files directly:
240
 
 
241
 
    1. Create the directories where you want to install MySQL. For
242
 
       example, to install into C:\mysql, use these commands:
 
234
   distribution. One way to do this is to use the
 
235
   make_win_bin_dist script in the scripts directory of the
 
236
   MySQL source distribution (see Section 4.4.2,
 
237
   "make_win_bin_dist --- Package MySQL Distribution as ZIP
 
238
   Archive"). This is a shell script, so you must have Cygwin
 
239
   installed if you want to use it. It creates a Zip archive of
 
240
   the built executables and support files that you can unpack
 
241
   in the location at which you want to install MySQL.
 
242
 
 
243
   It is also possible to install MySQL by copying directories
 
244
   and files directly:
 
245
 
 
246
    1. Create the directories where you want to install MySQL.
 
247
       For example, to install into C:\mysql, use these
 
248
       commands:
243
249
C:\> mkdir C:\mysql
244
250
C:\> mkdir C:\mysql\bin
245
251
C:\> mkdir C:\mysql\data
246
252
C:\> mkdir C:\mysql\share
247
253
C:\> mkdir C:\mysql\scripts
248
 
       If you want to compile other clients and link them to MySQL,
249
 
       you should also create several additional directories:
 
254
 
 
255
       If you want to compile other clients and link them to
 
256
       MySQL, you should also create several additional
 
257
       directories:
250
258
C:\> mkdir C:\mysql\include
251
259
C:\> mkdir C:\mysql\lib
252
260
C:\> mkdir C:\mysql\lib\debug
253
261
C:\> mkdir C:\mysql\lib\opt
 
262
 
254
263
       If you want to benchmark MySQL, create this directory:
255
264
C:\> mkdir C:\mysql\sql-bench
256
 
       Benchmarking requires Perl support. See Section 2.15, "Perl
257
 
       Installation Notes."
258
 
 
259
 
    2. From the work directory, copy into the C:\mysql directory the
260
 
       following files and directories:
 
265
 
 
266
       Benchmarking requires Perl support for MySQL. See Section
 
267
       2.15, "Perl Installation Notes."
 
268
 
 
269
    2. From the work directory, copy into the C:\mysql directory
 
270
       the following files and directories:
261
271
C:\> cd \workdir
262
272
C:\workdir> mkdir C:\mysql
263
273
C:\workdir> mkdir C:\mysql\bin
265
275
C:\workdir> copy sql\Release\mysqld.exe C:\mysql\bin\mysqld.exe
266
276
C:\workdir> xcopy scripts\*.* C:\mysql\scripts /E
267
277
C:\workdir> xcopy share\*.* C:\mysql\share /E
268
 
       If you want to compile other clients and link them to MySQL,
269
 
       you should also copy several libraries and header files:
 
278
 
 
279
       If you want to compile other clients and link them to
 
280
       MySQL, you should also copy several libraries and header
 
281
       files:
270
282
C:\workdir> copy lib\Release\mysqlclient.lib C:\mysql\lib\debug
271
283
C:\workdir> copy lib\Release\libmysql.* C:\mysql\lib\debug
272
284
C:\workdir> copy lib\Release\zlib.* C:\mysql\lib\debug
276
288
C:\workdir> copy include\*.h C:\mysql\include
277
289
C:\workdir> copy libmysql\libmysql.def C:\mysql\include
278
290
 
279
 
Note
280
 
       If you have compiled a Debug, rather than Release solution,
281
 
       you can replace Release with Debug in the source file names
282
 
       shown above.
 
291
       Note
 
292
       If you have compiled a Debug solution, rather than a
 
293
       Release solution, install it by replacing Release with
 
294
       Debug in the source file names just shown.
283
295
       If you want to benchmark MySQL, you should also do this:
284
296
C:\workdir> xcopy sql-bench\*.* C:\mysql\bench /E
285
297
 
286
 
   After installation, set up and start the server in the same way as
287
 
   for binary Windows distributions. This includes creating the
288
 
   system tables by running mysql_install_db. For more information,
289
 
   see Section 2.5, "Installing MySQL on Windows."
 
298
   After installation, set up and start the server in the same
 
299
   way as for binary Windows distributions. This includes
 
300
   creating the system tables by running mysql_install_db. For
 
301
   more information, see Section 2.3, "Installing MySQL on
 
302
   Microsoft Windows."