Recent

Author Topic: libmysql.dll Problem  (Read 8118 times)

TheOddOne

  • Limited User (Deny Edit/Delete existing posts)
  • Jr. Member
  • *
  • Posts: 77
  • Hehe
    • SpawnScape614
libmysql.dll Problem
« on: November 22, 2014, 12:47:11 am »
I'm running a Windows 7 OS, 64 bit system with lazarus 1.2.6

I'm sorry to this but WHY is connecting to a database so hard. I've been trying for days to get my program linked with my online database. It's been having problems with finding two annoying, disgusting and vile files ( libmysql.dll and dbilib.dll ). I've tried sticking them everywhere lol, literally. System32, SystemWow32, Lazarus, the program directory and various other places. Although still saying it can't be found. Where are these files suppppposed to be located?
« Last Edit: November 22, 2014, 08:21:48 pm by AnnoyedChicken »
ShowMessage('Yes');

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Database mess up.
« Reply #1 on: November 22, 2014, 01:06:47 am »
maybe files can be found, but these are wrong versions of files?

mirce.vladimirov

  • Sr. Member
  • ****
  • Posts: 256
Re: Database mess up.
« Reply #2 on: November 22, 2014, 01:33:47 am »
I'm running a Windows 7 OS, 64 bit system with lazarus 1.2.6
...
 Where are these files suppppposed to be located?

I'm using MySQL 5.0, i develop my application on Win7 32 bit with Lazarus 32bit but it runs on XP, Vista, w7, w8 some are 32 and some are 64 bit.
Always copy libmysql.dll to c:/windows/system  and that's it. Works. Period.

TheOddOne

  • Limited User (Deny Edit/Delete existing posts)
  • Jr. Member
  • *
  • Posts: 77
  • Hehe
    • SpawnScape614
Re: Database mess up.
« Reply #3 on: November 22, 2014, 02:16:37 am »
Hmm, just tried that directory and got the same message. Here a screenshot too:

http://i.imgur.com/JU96FHp.png

When I change the connector to say MSSYQL, it then it can't find dbilib.dll.
ShowMessage('Yes');

sam707

  • Guest
Re: Database mess up.
« Reply #4 on: November 22, 2014, 06:27:39 am »
im using 64bits MySQL server and developping a 32bits application with NO PROBLEM, i did just put libmysql.dll (32bits version) in 2 places 1) in lazarus bin folder 2) in my app target bin folder

MySQL do not care if commands come from 16bits, 32bits, 64bits etc programs as it uses Tcp/Ip (or pipes) to communicate with programs. Connections are Alike!
« Last Edit: November 22, 2014, 06:29:16 am by sam707 »

TheOddOne

  • Limited User (Deny Edit/Delete existing posts)
  • Jr. Member
  • *
  • Posts: 77
  • Hehe
    • SpawnScape614
Re: Database mess up.
« Reply #5 on: November 22, 2014, 03:16:01 pm »
Where is the lazarus bin folder located? I can't find it in the directory.
ShowMessage('Yes');

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
Re: Database mess up.
« Reply #6 on: November 22, 2014, 04:48:25 pm »
normally c:\lazarus
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

TheOddOne

  • Limited User (Deny Edit/Delete existing posts)
  • Jr. Member
  • *
  • Posts: 77
  • Hehe
    • SpawnScape614
Re: Database mess up.
« Reply #7 on: November 22, 2014, 05:00:34 pm »
Hmm. I'll literally pay anyone $10 to come on teamviewer with me and help me sort this very small problem.
ShowMessage('Yes');

sam707

  • Guest
Re: Database mess up.
« Reply #8 on: November 22, 2014, 07:19:54 pm »
1) find the folder where reside lazarus.exe
2) copy the dll here to be able to use mysql inside the IDE
3) copy that same dll in the folder where you compile your application, that is needed at standalone runtime

thats it!!!

TheOddOne

  • Limited User (Deny Edit/Delete existing posts)
  • Jr. Member
  • *
  • Posts: 77
  • Hehe
    • SpawnScape614
Re: Database mess up.
« Reply #9 on: November 22, 2014, 08:21:16 pm »
I did that 5 times repeating myself for sure and still displays the same message.
ShowMessage('Yes');

exdatis

  • Hero Member
  • *****
  • Posts: 668
    • exdatis

 

TinyPortal © 2005-2018