[Delphi6] SQL Connection naar een MySQL server

Pagina: 1
Acties:
  • 122 views sinds 30-01-2008
  • Reageer

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
In Delphi 6 Enterprise zit een component om een SQL connectie te maken naar bijvoorbeeld een MySQL database server. Nou heb ik dit geprobeerd, maar zodra ik die SQLConnection op active wil zetten dan geeft hij als error:
"Unable to Load LIBMYSQL.dll."
Dit bestand staat niet op mijn HD.
Zit dit bestand niet standaard in Delphi ofzo, en hoe krijg ik dit wel goed voor elkaar in Delphi?

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • Knutselsmurf
  • Registratie: December 2000
  • Laatst online: 17-09 20:57

Knutselsmurf

LED's make things better

Ik ben ooit bezig geweest om vanuit Access een mySQL DB aa te spreken, en daarvoor moest ik de mysql-client installeren. Misschien dat dat ook in jouw geval een oplossing is?

- This line is intentionally left blank -


  • Onno
  • Registratie: Juni 1999
  • Niet online
Staat dat niet in de manual die je bij Delphi gekregen hebt? >:)

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
Hier gaat het om (staat in de Help van Delphi):
Specifies the client software library (DLL) supplied by the database vendor.

property VendorLib: string;

Description

VendorLib is the library supplied by the database vendor to support client-side use of the database. Most applications do not need to use VendorLib directly, because this property is set automatically when the DriverName property is set.

Note:The association between a vendor library and a driver name is stored in the dbxdrivers.ini file when you install the associated dbExpress driver.

The file named by this property must be running on the same system as your application when it is deployed. Typically, it is installed when the database is installed rather than with your application.

Note:The VendorLib, LibraryName, and GetDriverFunc properties all reflect the values in the dbxdrivers.ini file. Because these property values are published (stored with the connection component), it is possible to deploy an application without deploying the dbxdrivers.ini file.

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
En dit hoort er volgens mij ook nog bij, gaat ook over een DLL:
Specifies the dbExpress driver that TSQLConnection uses to establish a connection.

property LibraryName: string;

Description

LibraryName is the dbExpress library associated with the driver specified by DriverName. Most applications do not need to use LibraryName directly, because this property is set automatically when the DriverName property is set.

Note:The association between a dbExpress library and a driver name is stored in the dbxdrivers.ini file when you install the dbExpress driver.

The file named by this property is the only dbExpress file that must be deployed with your application.

Note:The LibraryName, GetDriverFunc, and VenderLib properties all reflect the values in the dbxdrivers.ini file. Because these property values are published (stored with the connection component), it is possible to deploy an application without deploying the dbxdrivers.ini file.

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • brammetje
  • Registratie: Oktober 2000
  • Laatst online: 12-01-2025
libmysql.dll staat als het goed is in de lib-dir van je mysql-install.
anders is tie misschien wel te vinden op www.mysql.com of op: http://www.fichtner.net/delphi/mysql.delphi.phtml

  • Tim Schuhmacher
  • Registratie: Januari 2000
  • Laatst online: 17-09 12:33

Tim Schuhmacher

abasios

Ik heb dit probleem dus ook (wat jelmervos beschrijft). Maar ik heb het bestant dus wel in mijn LIB dir staan van mysql.
Wat kan dan nu de oorzaak zijn?

( ik weet dat het een oude topic is )

  • xoror
  • Registratie: November 1999
  • Niet online
ik geloof dat de mysql driver die bij delphi 6 (db express) wordt verwacht nog van een oude versie is. als je de allerlaatste dll neerzet werkt het niet. moet je de mailinglist maar nalezen.

Mitsubishi Warmtepomp Uitlezen / Besturen | Optimaliseren


  • Tim Schuhmacher
  • Registratie: Januari 2000
  • Laatst online: 17-09 12:33

Tim Schuhmacher

abasios

Dit snap ik niet.

Welke driver is te nieuwe of te oud? En welke mailingslist?

  • xoror
  • Registratie: November 1999
  • Niet online
je moet geloof ik een oudere libmysql hebben om het zaakje te laten draaien.

mysql heeft een mailinglist. maar ik geloof dat ik het op de borland usenet groepen heb gelezen.

Mitsubishi Warmtepomp Uitlezen / Besturen | Optimaliseren


Verwijderd

je kan toch ook MyODBC gebruiken?(is wel een progje exta maar oke)

  • Tim Schuhmacher
  • Registratie: Januari 2000
  • Laatst online: 17-09 12:33

Tim Schuhmacher

abasios

MyODBC - dat zit niet standaard bij Delphi 6. toch?

Dat vond ik namelijk zo handig dat het met de standaard componenten moet kunnen. (en zulke ingewikkelede en zware dingen hoef het ook niet te kunnen.

Maar ik zal eens in die mailigslisten die xoror noemt kijken (en hoop ik vinden)

  • xoror
  • Registratie: November 1999
  • Niet online
myodbc moet je downen van de mysql.com site.

Mitsubishi Warmtepomp Uitlezen / Besturen | Optimaliseren


  • yodax
  • Registratie: Januari 2000
  • Laatst online: 28-04 08:47
Hmmmz, ik heb op de BorCon 2001 gehoord dat het niet mogelijk is om met dbExpress een connectie te maken naar mySQL. (dit zei een van de sprekers) Er schenen nog veel fouten te zitten in de implementatie. Sowieso is dbExpress brak, het ondersteund de helft van BDE enabled datasets of van DATASNAP datasets.

Moet het toch zou ik het maar via ODBC doen, met een BDE connectie.

  • prototype
  • Registratie: Juni 2001
  • Niet online

prototype

Cheer Bear

dbexpress is idd niet al te stoer.

je kan bijv geen grid aan een dataset afkomstig van een dbexpress ding koppelen (client dataset wel, maar dat wil je niet).

komt omdat dbexpress driver voor mysql geen bi-directional cursor support.

  • yodax
  • Registratie: Januari 2000
  • Laatst online: 28-04 08:47
prototype:(client dataset wel, maar dat wil je niet)
Wil je niet?, in een datasnap omgeving moet je wel. En ik doe niet anders. Het is echter wel verstandig om de TDatasetProvider in de stellen om de records incremental op te halen (bij grote tabbellen dan)

Als je 1maal weet hoe de provider componenten in elkaar steken met updates is er goed mee te werken.

  • mulder
  • Registratie: Augustus 2001
  • Laatst online: 17-09 15:54

mulder

ik spuug op het trottoir

oogjes open, snaveltjes dicht


  • 9900578Heck
  • Registratie: Juli 2001
  • Laatst online: 21-07 09:24
waarom gebruik je geen ado?
daar moet het ook mee kunnen
Pagina: 1