Board index » delphi » configuring MyODBC

configuring MyODBC

Hello,
        I'm using MySQL as a DataBaseServer and I want to acces his
database(eg: the directory is 'Test' and the 'table' is 'tableOne'). I
downloaded the MyODBC driver and I run the 'setup' program).
        Now I want to modify the 'tableOne' from an interface created
in Delphi5(here I have controls that can acces the ODBC defined
tables). When I want to activate the database(with the alias
'sampleMySQL') is opened a window that ask for user and password(I
created users without password in mysql tables).
        I get the erros 'Invalid configuration parameters'. In ODBC
administrators what changes I have to make(at User DSN, System DSN,
File DSN)?
I have installed BDEadministrator.
Thank you anticipate,
                        Nemecsek Gyorke
                        nemec...@personal.ro
 

Re:configuring MyODBC


Sorry, I don't know anything about MySQL, but why use the ODBC driver if you
can access MySQL directly from Delphi ? See
http://www.productivity.org/projects/mysql/.

Quote
"Nemecsek Gyorke" <romaup...@yahoo.com> wrote in message

news:9ft6pt84536bc90nfbeo735kljtc257c0d@4ax.com...
Quote
> Hello,
> I'm using MySQL as a DataBaseServer and I want to acces his
> database(eg: the directory is 'Test' and the 'table' is 'tableOne'). I
> downloaded the MyODBC driver and I run the 'setup' program).
> Now I want to modify the 'tableOne' from an interface created
> in Delphi5(here I have controls that can acces the ODBC defined
> tables). When I want to activate the database(with the alias
> 'sampleMySQL') is opened a window that ask for user and password(I
> created users without password in mysql tables).
> I get the erros 'Invalid configuration parameters'. In ODBC
> administrators what changes I have to make(at User DSN, System DSN,
> File DSN)?
> I have installed BDEadministrator.
> Thank you anticipate,
> Nemecsek Gyorke
> nemec...@personal.ro

Re:configuring MyODBC


Passwords and other configuration information are provided in the
"Parameters" property of the TDatabase.  (You will need an explicit
TDatabase.)  

It's the same as with any other ODBC connection.

(and BTW, I am personally in favor of using ODBC for the connection versus
hooking to MySQL directly.  You never know when you'll need to change
databases.  But that's only an opinion.)

In article <9ft6pt84536bc90nfbeo735kljtc257...@4ax.com>, Nemecsek Gyorke

Quote
<romaup...@yahoo.com> wrote:
> Hello,
>         I'm using MySQL as a DataBaseServer and I want to acces his
> database(eg: the directory is 'Test' and the 'table' is 'tableOne'). I
> downloaded the MyODBC driver and I run the 'setup' program).
>         Now I want to modify the 'tableOne' from an interface created
> in Delphi5(here I have controls that can acces the ODBC defined
> tables). When I want to activate the database(with the alias
> 'sampleMySQL') is opened a window that ask for user and password(I
> created users without password in mysql tables).
>         I get the erros 'Invalid configuration parameters'. In ODBC
> administrators what changes I have to make(at User DSN, System DSN,
> File DSN)?
> I have installed BDEadministrator.
> Thank you anticipate,
>                         Nemecsek Gyorke
>                         nemec...@personal.ro

Re:configuring MyODBC


In control panel you can modify property of  "SampleMYSQL",
CHANGE user and password.
Quote
Nemecsek Gyorke <romaup...@yahoo.com> wrote in message

news:9ft6pt84536bc90nfbeo735kljtc257c0d@4ax.com...
Quote
> Hello,
> I'm using MySQL as a DataBaseServer and I want to acces his
> database(eg: the directory is 'Test' and the 'table' is 'tableOne'). I
> downloaded the MyODBC driver and I run the 'setup' program).
> Now I want to modify the 'tableOne' from an interface created
> in Delphi5(here I have controls that can acces the ODBC defined
> tables). When I want to activate the database(with the alias
> 'sampleMySQL') is opened a window that ask for user and password(I
> created users without password in mysql tables).
> I get the erros 'Invalid configuration parameters'. In ODBC
> administrators what changes I have to make(at User DSN, System DSN,
> File DSN)?
> I have installed BDEadministrator.
> Thank you anticipate,
> Nemecsek Gyorke
> nemec...@personal.ro

Other Threads