BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cannot connect MySQL

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Alan
Guest





PostPosted: Thu Mar 10, 2005 12:10 am    Post subject: Cannot connect MySQL Reply with quote



I tried to connect to MySQL 4 by setting up a connection of the
TSLConnection component, however, it made me mad.

I got connected using DOS prompt to connect the database by typing:
mysql -h blah -u blah -pblah
use blahdatabase

There was no problem at all.

Now I tried to setup in dbExpress Connection Editor, use the same values for
hostname, database, username, password. However, when I test the connection
by pressing the 'tick' button, it failed:
Parameter Not Set SQL Server Errors: ss denied user: blah blah
blah....(Using password: YES)

I think I came across before but cannot remember how did I fix that.


Back to top
Cameron
Guest





PostPosted: Thu Mar 31, 2005 6:13 am    Post subject: Re: Cannot connect MySQL Reply with quote



couple of things you can try

1. check what version of dbexpmysql.dll you are using. There are several
versions floating around and you need the right one for your version of
mysql.

2. check you user in MySQL Administrator, and ensure he is allowed access
from your hostname. Users can be allowed access from different hosts. I
think dbexpress passes the computers name as the host eg therefore he needs
access for that computer name. the username is passed in the form
myusername@hostname

hth
cam


"Alan" <NOSPAMalan_pltse (AT) yahoo (DOT) com.au> wrote

Quote:
I tried to connect to MySQL 4 by setting up a connection of the
TSLConnection component, however, it made me mad.

I got connected using DOS prompt to connect the database by typing:
mysql -h blah -u blah -pblah
use blahdatabase

There was no problem at all.

Now I tried to setup in dbExpress Connection Editor, use the same values
for
hostname, database, username, password. However, when I test the
connection
by pressing the 'tick' button, it failed:
Parameter Not Set SQL Server Errors: ss denied user: blah blah
blah....(Using password: YES)

I think I came across before but cannot remember how did I fix that.





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.