Search the MySQL manual:

2.3.7 Windows Source Distribution

You will need the following:

Building MySQL:

  1. Create a work directory (for example, `workdir').
  2. Unpack the source distribution in the aforementioned directory.
  3. Start the VC++ 6.0 compiler.
  4. In the File menu, select Open Workspace.
  5. Open the `mysql.dsw' workspace you find on the work directory.
  6. From the Build menu, select the Set Active Configuration menu.
  7. Click over the screen selecting mysqld - Win32 Debug and click OK.
  8. Press F7 to begin the build of the debug server, libraries, and some client applications.
  9. When the compilation finishes, copy the libraries and the executables to a separate directory.
  10. Compile the release versions that you want, in the same way.
  11. Create the directory into which to install the MySQL stuff (for example, `c:\mysql').
  12. From the `workdir' directory copy into the c:\mysql directory the following directories:
    • `Data'
    • `Docs'
    • `Share'
  13. Create the directory `c:\mysql\bin' and copy into it all the servers and clients that you just compiled.
  14. If you want, also create the `c:\mysql\lib' directory and copy the libraries that you just compiled.
  15. Do a clean using Visual Studio.

Set up and start the server in the same way as for the binary Windows distribution. See section 2.1.1.2 Preparing the Windows MySQL Environment.

User Comments

Posted by Radu Ursu on Tuesday March 4 2003, @6:12am[Delete] [Edit]

Hi,
Is the source compatible VC7?
I would like to give it a try.

Thanks,
Radu.

Add your own comment.