Sign in to follow this  
Followers 0
snaxau

EzMySql workaround for MySQL 5.5 on Win 7 x64

1 post in this topic

I installed MySql 5.5 x64, Autoit 3.3.8 x64 on my Win 7 64-bit PC and downloaded EzMySql_dll.au3, EzMySql.au3 and the example program. I edited the example with the appropriate MySql dir,

_EzMySql_Startup("C:\Program Files\MySQL\MySQL Server 5.5\lib")

When I ran it, it failed with:

Error: 1

Error string: 0

But it worked with the following (and created libmySQL_x64.dll in the script dir):

_EzMySql_Startup("")

To make it work both ways, I modified EzMySql.au3 with:

If @AutoItX64 = 0 Then

$sDll_Filename = "libmysql.dll"

Else

;$sDll_Filename = "libmySQL_x64.dll" ;this does not work so commented out

$sDll_Filename = "libmysql.dll" ;workaround for 64-bit MySql

EndIf

Now the example program works perfectly. Perhaps the author could include this fix in the next release?

For simple access to MySql, this UDF is great!

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0