- Download MySQL Windows version *without installer*
- Unzip this file somewhere, and then put everything in
C:/Program Files/MySQL/mysqlsources/.
- Right click My Computer, then Advanced/Environment Variables.
Add a User variable MYSQL_HOME with value C:\Program
Files\MySQL\mysqlsources.
- You should have everything installed to make packages
on Windows.
- In addition to the above, you need MinGW-utils. Simply
download the tarball and
then do tar xvfz mingw-utils-<version>.tar.gz in C:/MinGW.
- Follow the instructions in README.windows:
- cd into C:/Program Files/MySQL/mysqlsources/lib/opt
- Create LIBMYSQL.def by typing reimp --only-def
libmySQL.lib
- Create libmySQL.a by typing dlltool --dllname
libmySQL.dll --def LIBMYSQL.def --output-lib libmySQL.a -k
- Now biocLite("RMySQL", type =
"source") should install no problem.