 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Paula R. T. Coelho Guest
|
Posted: Wed Jan 14, 2004 2:19 pm Post subject: dbExpress error: Invalid Username/password |
|
|
I have a CLX app with Delphi 7 + MySQL 4.
My SQLConnection has the following parameters:
Connected: True
ConnectionName: MySQLConnection
DriverName: MySQL
GetDriverFunc: getSQLDriverMYSQL
KeepConnection: True
LibraryName: dbexpmysql.dll
LoadParamsOnConnect: True
LoginPrompt: False
Name: SQLConnection1
Params:
DriverName: MySQL
HostName: localhost
Database: afsps
User_Name: guest
Password: mypassword
BlobSize: -1
ErrorResourceFile:
LocaleCode: 0000
TableScope: [tsTable,tsView]
Tag: 0
VeorLib: libmysql.dll
When I activate the connection in design time it is ok, but in run time I
have the error "dbExpress error: Invalid Username/password", and then when I
come back to design time the parameters in Params are lost.
What is happening?
Thanks
Paula
|
|
| Back to top |
|
 |
Juliano Malacarne Guest
|
Posted: Wed Jan 14, 2004 6:33 pm Post subject: Re: dbExpress error: Invalid Username/password |
|
|
Hello Paula,
there can be some possibilities:
- you have different versions of libmysql.dll or dbexpmysql.dll in different
directories. In this case, the executable might trying to reach the database
through a wrong version dll
- I've heard and seen something about a bug in Delphi concerning losing
parameters in desing time. You can workaround it putting explicitily in your
code:
SQLConnection1.Params.Clear;
SQLConnection1.Params.Add('DriverName=MySQL');
SQLConnection1.Params.Add('BlobSize=-1');
SQLConnection1.Params.Add('LocaleCode=0000');
SQLConnection1.Params.Add('HostName=' + sServer);
SQLConnection1.Params.Add('Database=' + sDataBase);
SQLConnection1.Params.Add('User_Name=' + sUser);
SQLConnection1.Params.Add('Password=' + sPassword);
I hope this helps.
Juliano
"Paula R. T. Coelho" <pcoelho (AT) usp (DOT) br> wrote
| Quote: | I have a CLX app with Delphi 7 + MySQL 4.
My SQLConnection has the following parameters:
Connected: True
ConnectionName: MySQLConnection
DriverName: MySQL
GetDriverFunc: getSQLDriverMYSQL
KeepConnection: True
LibraryName: dbexpmysql.dll
LoadParamsOnConnect: True
LoginPrompt: False
Name: SQLConnection1
Params:
DriverName: MySQL
HostName: localhost
Database: afsps
User_Name: guest
Password: mypassword
BlobSize: -1
ErrorResourceFile:
LocaleCode: 0000
TableScope: [tsTable,tsView]
Tag: 0
VeorLib: libmysql.dll
When I activate the connection in design time it is ok, but in run time I
have the error "dbExpress error: Invalid Username/password", and then when
I
come back to design time the parameters in Params are lost.
What is happening?
Thanks
Paula
|
|
|
| Back to top |
|
 |
Tiago A. de Andrade Guest
|
Posted: Wed Jan 14, 2004 8:12 pm Post subject: Re: dbExpress error: Invalid Username/password |
|
|
Hey Paula,
Bom ver os brazucas detonando aqui no news da Borland. Quanto a sua dúvida,
creio que o driver dbExpress que veio c/ o D7 não suporta o MySQL 4x. Acho
que só vai até o 3.x (alguma coisa, ñ lembro...)
[]'s
--
Tiago Ambrosini de Andrade
Desenvolvedor
Sinergia Soluções
Campos dos Goytacazes - RJ
"Paula R. T. Coelho" <pcoelho (AT) usp (DOT) br> escreveu na mensagem
news:40054ff2 (AT) newsgroups (DOT) borland.com...
| Quote: | I have a CLX app with Delphi 7 + MySQL 4.
My SQLConnection has the following parameters:
Connected: True
ConnectionName: MySQLConnection
DriverName: MySQL
GetDriverFunc: getSQLDriverMYSQL
KeepConnection: True
LibraryName: dbexpmysql.dll
LoadParamsOnConnect: True
LoginPrompt: False
Name: SQLConnection1
Params:
DriverName: MySQL
HostName: localhost
Database: afsps
User_Name: guest
Password: mypassword
BlobSize: -1
ErrorResourceFile:
LocaleCode: 0000
TableScope: [tsTable,tsView]
Tag: 0
VeorLib: libmysql.dll
When I activate the connection in design time it is ok, but in run time I
have the error "dbExpress error: Invalid Username/password", and then when
I
come back to design time the parameters in Params are lost.
What is happening?
Thanks
Paula
|
|
|
| Back to top |
|
 |
Juliano Malacarne Guest
|
Posted: Thu Jan 15, 2004 1:52 pm Post subject: Re: dbExpress error: Invalid Username/password |
|
|
O driver que vem com o Delphi 7 realmente não suporta o MySQL. Mas acredito
que a Paula já esteja usando o driver que suporta, pois em tempo de
desenvolvimento ela consegue conectar. O que pode estar acontecendo é ter
duas DLL's instaladas e na hora de rodar por fora do Delphi o aplicativo
está encontrando outra.
"Tiago A. de Andrade" <tiago (AT) sinergiasolucoes (DOT) com.br> wrote
| Quote: | Hey Paula,
Bom ver os brazucas detonando aqui no news da Borland. Quanto a sua
dúvida,
creio que o driver dbExpress que veio c/ o D7 não suporta o MySQL 4x. Acho
que só vai até o 3.x (alguma coisa, ñ lembro...)
[]'s
--
Tiago Ambrosini de Andrade
Desenvolvedor
Sinergia Soluções
Campos dos Goytacazes - RJ
"Paula R. T. Coelho" <pcoelho (AT) usp (DOT) br> escreveu na mensagem
news:40054ff2 (AT) newsgroups (DOT) borland.com...
I have a CLX app with Delphi 7 + MySQL 4.
My SQLConnection has the following parameters:
Connected: True
ConnectionName: MySQLConnection
DriverName: MySQL
GetDriverFunc: getSQLDriverMYSQL
KeepConnection: True
LibraryName: dbexpmysql.dll
LoadParamsOnConnect: True
LoginPrompt: False
Name: SQLConnection1
Params:
DriverName: MySQL
HostName: localhost
Database: afsps
User_Name: guest
Password: mypassword
BlobSize: -1
ErrorResourceFile:
LocaleCode: 0000
TableScope: [tsTable,tsView]
Tag: 0
VeorLib: libmysql.dll
When I activate the connection in design time it is ok, but in run time
I
have the error "dbExpress error: Invalid Username/password", and then
when
I
come back to design time the parameters in Params are lost.
What is happening?
Thanks
Paula
|
|
|
| Back to top |
|
 |
Paula R. T. Coelho Guest
|
Posted: Thu Jan 15, 2004 2:14 pm Post subject: Re: dbExpress error: Invalid Username/password |
|
|
Oi Juliano e Tiago, que legal ler em portugues por aqui, e obrigada pela
ajuda.
Estive olhando as dll e de fato, apesar de existir apenas 1 arquivo
dbexpmysql.dll, tenho nada menos do que 8 arquivos do libmySQL.dll no micro
!
A minha primeira tentativa seria usar o arquivo que vem no diretorio do
MySQL e copiar para o system e para o diretorio da Borland: alguma sugestao
de qual seria o arquivo mais apropriado e para quais diretorios eu deveria
copia-lo?
O arquivo aparece nos seguintes diretorios: mysqlbin, program
filesmysqlcc, windowssystem, zeosdbo, mysqllibdebug, mysqllibopt,
dbtools, Delphi7bin
"Juliano Malacarne" <juliano (AT) direcao (DOT) com> wrote
| Quote: | O driver que vem com o Delphi 7 realmente não suporta o MySQL. Mas
acredito
que a Paula já esteja usando o driver que suporta, pois em tempo de
desenvolvimento ela consegue conectar. O que pode estar acontecendo é ter
duas DLL's instaladas e na hora de rodar por fora do Delphi o aplicativo
está encontrando outra.
"Tiago A. de Andrade" <tiago (AT) sinergiasolucoes (DOT) com.br> wrote in message
news:400591dd (AT) newsgroups (DOT) borland.com...
Hey Paula,
Bom ver os brazucas detonando aqui no news da Borland. Quanto a sua
dúvida,
creio que o driver dbExpress que veio c/ o D7 não suporta o MySQL 4x.
Acho
que só vai até o 3.x (alguma coisa, ñ lembro...)
[]'s
--
Tiago Ambrosini de Andrade
Desenvolvedor
Sinergia Soluções
Campos dos Goytacazes - RJ
"Paula R. T. Coelho" <pcoelho (AT) usp (DOT) br> escreveu na mensagem
news:40054ff2 (AT) newsgroups (DOT) borland.com...
I have a CLX app with Delphi 7 + MySQL 4.
My SQLConnection has the following parameters:
Connected: True
ConnectionName: MySQLConnection
DriverName: MySQL
GetDriverFunc: getSQLDriverMYSQL
KeepConnection: True
LibraryName: dbexpmysql.dll
LoadParamsOnConnect: True
LoginPrompt: False
Name: SQLConnection1
Params:
DriverName: MySQL
HostName: localhost
Database: afsps
User_Name: guest
Password: mypassword
BlobSize: -1
ErrorResourceFile:
LocaleCode: 0000
TableScope: [tsTable,tsView]
Tag: 0
VeorLib: libmysql.dll
When I activate the connection in design time it is ok, but in run
time
I
have the error "dbExpress error: Invalid Username/password", and then
when
I
come back to design time the parameters in Params are lost.
What is happening?
Thanks
Paula
|
|
|
| Back to top |
|
 |
Juliano Malacarne Guest
|
Posted: Thu Jan 15, 2004 3:55 pm Post subject: Re: dbExpress error: Invalid Username/password |
|
|
Oi Paula,
o arquivo mais apropriado deve ser o que estiver no diretório do MySQL. Para
saber qual é, vai testando um por um colocando no diretório da aplicação.
Aí, depois execute o aplicativo por fora do Delphi. Como a aplicação vai
pegar o arquivo que estiver no diretório, se funcionar é porque é aquele.
Juliano
"Paula R. T. Coelho" <pcoelho (AT) usp (DOT) br> wrote
| Quote: | Oi Juliano e Tiago, que legal ler em portugues por aqui, e obrigada pela
ajuda.
Estive olhando as dll e de fato, apesar de existir apenas 1 arquivo
dbexpmysql.dll, tenho nada menos do que 8 arquivos do libmySQL.dll no
micro
!
A minha primeira tentativa seria usar o arquivo que vem no diretorio do
MySQL e copiar para o system e para o diretorio da Borland: alguma
sugestao
de qual seria o arquivo mais apropriado e para quais diretorios eu deveria
copia-lo?
O arquivo aparece nos seguintes diretorios: mysqlbin, program
filesmysqlcc, windowssystem, zeosdbo, mysqllibdebug, mysqllibopt,
dbtools, Delphi7bin
"Juliano Malacarne" <juliano (AT) direcao (DOT) com> wrote in message
news:40069b35 (AT) newsgroups (DOT) borland.com...
O driver que vem com o Delphi 7 realmente não suporta o MySQL. Mas
acredito
que a Paula já esteja usando o driver que suporta, pois em tempo de
desenvolvimento ela consegue conectar. O que pode estar acontecendo é
ter
duas DLL's instaladas e na hora de rodar por fora do Delphi o aplicativo
está encontrando outra.
"Tiago A. de Andrade" <tiago (AT) sinergiasolucoes (DOT) com.br> wrote in message
news:400591dd (AT) newsgroups (DOT) borland.com...
Hey Paula,
Bom ver os brazucas detonando aqui no news da Borland. Quanto a sua
dúvida,
creio que o driver dbExpress que veio c/ o D7 não suporta o MySQL 4x.
Acho
que só vai até o 3.x (alguma coisa, ñ lembro...)
[]'s
--
Tiago Ambrosini de Andrade
Desenvolvedor
Sinergia Soluções
Campos dos Goytacazes - RJ
"Paula R. T. Coelho" <pcoelho (AT) usp (DOT) br> escreveu na mensagem
news:40054ff2 (AT) newsgroups (DOT) borland.com...
I have a CLX app with Delphi 7 + MySQL 4.
My SQLConnection has the following parameters:
Connected: True
ConnectionName: MySQLConnection
DriverName: MySQL
GetDriverFunc: getSQLDriverMYSQL
KeepConnection: True
LibraryName: dbexpmysql.dll
LoadParamsOnConnect: True
LoginPrompt: False
Name: SQLConnection1
Params:
DriverName: MySQL
HostName: localhost
Database: afsps
User_Name: guest
Password: mypassword
BlobSize: -1
ErrorResourceFile:
LocaleCode: 0000
TableScope: [tsTable,tsView]
Tag: 0
VeorLib: libmysql.dll
When I activate the connection in design time it is ok, but in run
time
I
have the error "dbExpress error: Invalid Username/password", and
then
when
I
come back to design time the parameters in Params are lost.
What is happening?
Thanks
Paula
|
|
|
| Back to top |
|
 |
|
|
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
|
|