Recent

Author Topic: MySQL Library Error  (Read 26958 times)

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
MySQL Library Error
« on: September 25, 2008, 03:13:48 pm »
Hi all,

I have installed SQLdb package, when I make a connection I get this error.

Can not load default MySQL library ("libmysql.dll" or "libmysql.dll"). Check your installation.

Any help would be appreciated.
Thanks

bobo

  • Full Member
  • ***
  • Posts: 171
MySQL Library Error
« Reply #1 on: September 26, 2008, 05:11:25 am »
That DLL has nothing to do with Lazarus or Freepascal.

You need to download it from mysql.com so Lazarus/Freepascal can access MySQL databases.

1. Go to http://dev.mysql.com/downloads/mysql/5.0.html#win32

2. Click on Pick a mirror for the "Without installer" version (win32 or win64 section) whichever Windows you have

3. Click on "No thanks, just take me to the downloads!"

4. Download the .zip file from your closest location

5. Unzip it

6. Copy the libmysql.dll from the /bin directory of the unzipped files to your \windows\system32 directory

7. Delete the unzipped files and the downloaded .zip file itself

8. Done.

skaner1900

  • Jr. Member
  • **
  • Posts: 59
Re: MySQL Library Error
« Reply #2 on: December 01, 2011, 11:26:42 pm »
but which version I need?
http://dev.mysql.com/downloads/mysql/
here are two files with same names and else sizes...
which is correct?
(x86, 32bit)

skaner1900

  • Jr. Member
  • **
  • Posts: 59
Re: MySQL Library Error
« Reply #3 on: December 02, 2011, 12:00:46 am »
hmmm there aren't libmysql.dll... :/

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: MySQL Library Error
« Reply #4 on: December 02, 2011, 03:27:25 am »
Quote
but which version I need?
http://dev.mysql.com/downloads/mysql/
here are two files with same names and else sizes...
which is correct?
You need the client library. Just download any of the package on that page (according to your platform of course), the MSI and ZIP version is actually the same, both have server and client libraries. I suggest taking the smaller ZIP.

skaner1900

  • Jr. Member
  • **
  • Posts: 59
Re: MySQL Library Error
« Reply #5 on: December 02, 2011, 08:28:29 am »
so... i did it... and... in all zips aren't any libraries, only in msi installer i found libmysql.dll but in version 5.5.18...

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: MySQL Library Error
« Reply #6 on: December 02, 2011, 09:37:56 am »
Looks like I've found a dedicated connector download page:
http://dev.mysql.com/downloads/connector/c/

skaner1900

  • Jr. Member
  • **
  • Posts: 59
Re: MySQL Library Error
« Reply #7 on: December 03, 2011, 03:08:21 pm »
Yeah... here is only 6.0.0, but I need 5.0 :/
or newest component

 

TinyPortal © 2005-2018