Page 1 of 1

Connecting using IPv6

Posted: Tue 03 Feb 2015 19:44
by NickXCT
I'm trying to connect to a MySQL server using IPv6. I can connect to the server using the IPv4 address with dbExpress driver and I can connect to the server using the IPv6 address using the MySQL Workbench (so I know the IPv6 address works over the network). But I cannot get the dbExpress driver to work with the IPv6 address. I have the following parameters:

DriverUnit=DbxDevartMySql
DriverPackageLoader=TDBXDynalinkDriverLoader,DBXCommonDriver200.bpl
MetaDataPackageLoader=TDBXDevartMySqlMetaDataCommandFactory,DbxDevartMySqlDriver200.bpl
ProductName=DevartMySQL
GetDriverFunc=getSQLDriverMySQLDirect
LibraryName=dbexpmda40.dll
VendorLib=not used
MaxBlobSize=-1
FetchAll=True
EnableBoolean=False
UseUnicode=True
HostName=xxxx:xxxx:xxxx:x:xxxx:xxxx:xxxx:xxxx
DataBase=databasename
User_Name=loginid
Password=loginpw
IPVersion=IPv6

Where xxxx:xxxx:xxxx:x:xxxx:xxxx:xxxx:xxxx is the IPv6 address.

Can you tell me what I'm doing wrong?

Re: Connecting using IPv6

Posted: Wed 04 Feb 2015 09:56
by ViktorV
Thank you for the information. We have reproduced and fixed the issue. The fix will be included in the next dbExpress Driver for MySQL build.

Re: Connecting using IPv6

Posted: Wed 04 Feb 2015 11:34
by NickXCT
That's great.

Can you tell me where the problem lies? E.g. can I work round this by not using the BuiltIn module?

Re: Connecting using IPv6

Posted: Wed 04 Feb 2015 13:05
by ViktorV
To solve the problem, you can delete the "coIPVersion = 109" constant declaration in the dbxmda.pas module.

Re: Connecting using IPv6

Posted: Wed 11 Feb 2015 14:39
by NickXCT
Thanks for that. That fixed the problem. :D

Re: Connecting using IPv6

Posted: Thu 12 Feb 2015 09:04
by ViktorV
Glad to see that the issue was resolved. Feel free to contact us if you have any further questions about dbExpress driver for MySQL.