db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Re: [OT] MySql and JDBC under Linux
Date Thu, 24 Jun 2004 17:21:32 GMT
hi thomas,

it works now. i had to substitute localhost by 127.0.0.1

jdbc:mysql://127.0.0.1:3306/ojb

another strange thing is that i cannot use the machines real ip-addr to 
connect. it has to be 127.0.0.1

jakob

Am Do Juni 24 2004 16.08 schrieb Thomas Dudziak:
> Jakob Braeuchi wrote:
> >hi thomas,
> >
> >i'm a linux rookie so i simply installed it with default settings. wht
> > puzzles me is that mysqlcc works but jdbc does not.
>
> mysqlcc probably uses Unix Pipes rather than TCP/IP. When used from a
> different machine to connect to your MySQL, it shouldn't work anymore.
> Since you probably used the MySQL package supplied by SUSE, there is the
> possibility that TCP/IP was disabled per default. Check the
> configuration of mysql, should be somewhere in /etc, or the init.d
> script. Also, the rpm tool of SUSE should be able to show you a list of
> installed files for the MySQL package, and where they were installed.
> On my Mandrake 10, I had the same issue with PostgreSQL, though the
> error message was a bit more helpful: it actually told me to check
> whether TCP/IP connections were enabled.
> You might also want to check out the Connector/J doc:
>
> http://dev.mysql.com/doc/connector/j/en/index.html
>
> I'm no MySQL expert myself. I guess I was lucky so far for MySQL simply
> worked (Windows and Linux).
>
> Tom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message