Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

BuildingMysqlclientlibOnWindows

INADA Naoki edited this page Sep 11, 2016 · 1 revision

This is personal memo. It isn't a proper step.

  1. Download MySQL source
  2. unzip it
  3. Install cmake
> cmake -DBUILD_CONFIG=mysql_release -DCMAKE_INSTALL_PREFIX=c:\mysql  -DWITH_BOOST=boost -G "Visual Studio 14 2015 Win64"
> "c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com" MySQL.sln /build RelWithDebInfo
> cmake.exe -DCMAKE_INSTALL_PREFIX=C:\mysql -P include\cmake_install.cmake
> copy COPYING c:\mysql
> mkdir c:\mysql\lib
> copy libmysql\Release\mysqlclient.lib c:\mysql\lib

This build step builds all binaries including MySQL server. It took long time. I'll build only clientlib in next time.

Clone this wiki locally
Morty Proxy This is a proxified and sanitized view of the page, visit original site.