🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.dbexpress
Article #87

CBuilder 6 using DBExpress to connect to Mysql

#87
From: Aaron
Date: Thu, 12 Aug 2004 18:28
36 lines
2031 bytes
I am trying to use mysql db in a Cbuilder 6 app.  from what I have read I
should use DBExpress.
So I did the following.
Created a SQLConnection with the following properties
Connected - false
ConnectionName - MSConnection
DriverName - MYSQL
GetDriverFunction - getSQLDriverMYSQL
Keep Connection - true
LibraryName - dbexpmys.dll
LoadParamsonConnect - false
LoginPrompt - true
Name - SQLConnection1
Params - none
VendorLib - LIBMYSQL.dll

then i created a TSQLTable object with the following properties
Name - SQLTable1
NoMetaData - false
ObjectView - false
SQLConnection - SQLConnection1   --->pointing to the SQLCONNECTION object I
jsut created above
tableName - C:\mysql\data\test\appusernames.frm



when I try to set the table to active I get a password prompt.  no matter
what I put in here I get an error message "DBX Error: Invalid
Username/Password"
since this is the test database it shouldnt even need a password.  so I set
the loginprompt field to FALSE and I still get the error message.

Does anyone know what I am doing wrong?  if not, does anyone have CBuilder6
working with mysql and if so, how did you set it up???

HELP!
Technical Details
Message-ID: <411bb6d2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: fb4e2,84c3ce95504f366f,start
X-Google-Attributes: gidfb4e2,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Aaron" <mryamz@comcast.net>
From: "Aaron" <mryamz@comcast.net>
Newsgroups: borland.public.cppbuilder.database.dbexpress
Subject: CBuilder 6 using DBExpress to connect to Mysql
Date: Thu, 12 Aug 2004 14:28:45 -0400
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 141.151.143.121
Message-ID: <411bb6d2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1092335314 141.151.143.121 (12 Aug 2004 11:28:34 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail