Recent

Author Topic: Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus  (Read 11051 times)

jaggerdan

  • New Member
  • *
  • Posts: 14
Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus
« on: October 30, 2010, 02:37:32 pm »
I have searched hi and low on how to do this.  I've tried the suggestions elsewhere on this forum to no avail.  There HAS to be a way to easily connect to mysql 5.1  %)  Check this out  http://bugs.freepascal.org/view.php?id=17406    Michael Van Canneyt (administrator)  has something here but I can't get it to work.  He uses the standard sqldb components instead of zeoslib.  Maybe someone with more experience with FPC can post details on how to do it.

bdexterholland

  • Jr. Member
  • **
  • Posts: 58
  • uh?
Re: Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus
« Reply #1 on: November 10, 2010, 05:25:32 pm »
Well, he said that's not possible.
[sleep .....]

Lacak2

  • Guest
Re: Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus
« Reply #2 on: November 11, 2010, 05:11:10 am »
Try download latest snapshot, bug is already fixed (at least in 2.5 branch), so it should work now.

danilo666

  • Newbie
  • Posts: 4
Re: Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus
« Reply #3 on: November 11, 2010, 11:06:19 am »
I made this conection with lazarus downloading the package manager, I downloaded the Dlls and mysql client, I used Lampp like server of mysql.

I hope help you.

jaggerdan

  • New Member
  • *
  • Posts: 14
Re: Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus
« Reply #4 on: November 14, 2010, 03:14:09 pm »
Try download latest snapshot, bug is already fixed (at least in 2.5 branch), so it should work now.

Thank you, could you provide more details how to do this?
« Last Edit: November 14, 2010, 03:25:00 pm by jaggerdan »

jaggerdan

  • New Member
  • *
  • Posts: 14
Re: Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus
« Reply #5 on: November 14, 2010, 03:17:36 pm »
I made this conection with lazarus downloading the package manager, I downloaded the Dlls and mysql client, I used Lampp like server of mysql.

I hope help you.

Thank you for your reply.  I think you are using windows version.  I am using linux ubuntu.
« Last Edit: November 14, 2010, 03:25:14 pm by jaggerdan »

Lacak2

  • Guest
Re: Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus
« Reply #6 on: November 15, 2010, 05:39:34 am »
Try download latest snapshot, bug is already fixed (at least in 2.5 branch), so it should work now.

Thank you, could you provide more details how to do this?

Download and install from ftp://www.hu.freepascal.org/pub/lazarus/snapshots/
-or-
http://www.hu.freepascal.org/lazarus/

look for 2.5.1 or 2.4.3 versin of FPC (I am not sure if it is fixed also in 2.4 branch, so you must try)

jaggerdan

  • New Member
  • *
  • Posts: 14
Re: Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus
« Reply #7 on: November 20, 2010, 02:48:56 pm »
Try download latest snapshot, bug is already fixed (at least in 2.5 branch), so it should work now.

Thank you, could you provide more details how to do this?

Download and install from ftp://www.hu.freepascal.org/pub/lazarus/snapshots/
-or-
http://www.hu.freepascal.org/lazarus/

look for 2.5.1 or 2.4.3 versin of FPC (I am not sure if it is fixed also in 2.4 branch, so you must try)

Thank you Lacak2,
I have the snapshot of 2.5.1 (fpc-2.5.1.i386-linux.tar.gz) but i am unsure what to do with it.  Could you please provide details on how to update to this version? I am using Lazarus 9.28.2.  Any help would be greatly appreciated

Lacak2

  • Guest
Re: Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus
« Reply #8 on: November 22, 2010, 04:59:08 am »
I am not very familiar with Linux (I am using Lazarus/FPC only under Windows and there is prebuild package, which can be downloaded from above mentioned ftp site).
I think, that you must set in Lazarus Environment/Options paths to FPC 2.5.1 directories ... may be, someone other can be more precise.

bdexterholland

  • Jr. Member
  • **
  • Posts: 58
  • uh?
Re: Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus
« Reply #9 on: February 03, 2011, 02:15:29 pm »
On last december, I've connected to MySQL 5.1 using libmysql.dll from MySQL 5.0.
[sleep .....]

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7592
Re: Connecting to mysql 5.1 with Ubuntu 10.04 Lazarus
« Reply #10 on: February 03, 2011, 02:49:58 pm »

look for 2.5.1 or 2.4.3 versin of FPC (I am not sure if it is fixed also in 2.4 branch, so you must try)

No, only since yesterday. 

btw
For Zeos, you must derive your own connection helper (some interface) for 5.1 iirc.
But I know this only from monitoring forums, I use postgres.