HOW TO: Use 32Bit libmysql.dll with hMailServer and 64Bit MySQL

This section contains user-submitted tutorials.
Post Reply
percepts
Senior user
Senior user
Posts: 5282
Joined: 2009-10-20 16:33
Location: Sceptred Isle

HOW TO: Use 32Bit libmysql.dll with hMailServer and 64Bit MySQL

Post by percepts » 2014-12-28 04:28

If you are running 32bit hMailserver and 64bit MySQL then the following applies to you.

hMailserver works quite happily with 64bit MySQL but since hMailserver is a 32bit application it requires the 32bit version of libmysql.dll

The current latest releases of MySQL from Oracle come with MySQL WORKBENCH which is a 32bit gui admin tool for MySQL and Workbench comes with latest 32bit version of libmysql.dll

So after installing MySQL AND Workbench you will find the latest version of libmysql.dll in folder

C:\program Files (x86)\MySQL\workbench folder\libmysql.dll

for hmailserver to work with MySQL you need to copy this file to

"drive:\path to\hmailserver\bin"

infact for easiest install of hmailserver with MySQL you should manually create "drive:\path to\hmailserver\bin" and put libmysql.dll into it before attempting hmailserver install to drive:\path to\hmailserver

and then your install of hmailserver should work.

Note: forthcoming hMailserver 5.7 will have option to use 32bit or 64bit version of hmailserver.

If you use 32bit hMailserver and 32bit MySQL then use libmysql.dll from "drive:\program files (x86)\path to MySQL Server\lib\libmysql.dll"
If you use 32bit hMailserver and 64bit MySQL then use libmysql.dll from instructions above (from workbench)"

If you use 64bit hMailserver and 32bit MySQL then at time of writing this I don't know if forthcoming hmail install will provide 32bit libmysql.dll but suggest upgraqding to 64bit MySQL if you can"
If you use 64bit hMailserver and 64bit MySQL then use libmysql.dll from "drive:\program files\path to MySQL Server\lib\libmysql.dll"

Hazark
New user
New user
Posts: 26
Joined: 2014-05-08 23:17

Re: HOW TO: Use 32Bit libmysql.dll with hMailServer and 64Bit MySQL

Post by Hazark » 2015-09-24 11:05

MySQL C Connector also have the required "libmysql.dll", and it can be downloaded as a ZIP file. If you don't want to install Workbench only for DLL, this will work for you.

https://dev.mysql.com/downloads/connector/c/

Select "Windows (x86, 32-bit), ZIP Archive", libmysql.dll is in /lib folder inside ZIP. Extract that and discard other files.

Post Reply