6.6.1 Delphi 6 MySql 5
Posted: 03.03.2007, 19:01
Several things....
In Delphi 6, the .pas files will not compile until I edited every file so that the Include directive eg.{$I ZCore.inc} is after the "uses" statement. Here is what the beginning of ZClasses.pas looks like now:
unit ZClasses;
interface
uses
SysUtils, Classes;
{$I ZCore.inc}
const
ZEOS_VERSION = '6.6.1 - beta';
.......
After doing that for all the .pas files everything compiled properly and I was able to install the components.
Now the problem that I still have...I cannot connect to MySQL 5.0.27.
I always get the "Requested database driver not found" message when I try to change the ZConnect property "connected" to true.
ZConnect "protocol" is mysql
host is localhost (also tried my IP Address)
port 3306
user root
password (mypassword)
database test (as I know it exists)
I have placed libmySql.dll from the MySQL 5 in my windows\system32 directory and in the exe directory.
I have tried libmySQL50.dll as well in both those places...still no joy.
I also tried renaming them to libmysql.dll.
Interestingly, when I try the "simple" example it works??
Any suggestions other than that I must be daft.
Best regards,
John
In Delphi 6, the .pas files will not compile until I edited every file so that the Include directive eg.{$I ZCore.inc} is after the "uses" statement. Here is what the beginning of ZClasses.pas looks like now:
unit ZClasses;
interface
uses
SysUtils, Classes;
{$I ZCore.inc}
const
ZEOS_VERSION = '6.6.1 - beta';
.......
After doing that for all the .pas files everything compiled properly and I was able to install the components.
Now the problem that I still have...I cannot connect to MySQL 5.0.27.
I always get the "Requested database driver not found" message when I try to change the ZConnect property "connected" to true.
ZConnect "protocol" is mysql
host is localhost (also tried my IP Address)
port 3306
user root
password (mypassword)
database test (as I know it exists)
I have placed libmySql.dll from the MySQL 5 in my windows\system32 directory and in the exe directory.
I have tried libmySQL50.dll as well in both those places...still no joy.
I also tried renaming them to libmysql.dll.
Interestingly, when I try the "simple" example it works??
Any suggestions other than that I must be daft.
Best regards,
John