Hi there,
some distributions, debian for instance, disable tcp connections to mysql by
default
try with:
mysql -uusername -ppassword -h localhost
if it is not listening for tcp connections you may need to remove the line
that says 'skip-networking' from your my.cnf
Ivan
appfused wrote:
>
> I just tried to install appfuse on a linux box that has tomcat 5,mysql4.1
> however when it comes to do the dbunit task, it can't connect to the
> database although the user name and password work from the command line. I
> use
>
> mysql -uusername -ppassword
>
> Any thoughts? should i be using a driver different from the one that ships
> with appfuse?
>
> See below for the error message.
>
> [INFO] [dbunit:operation {execution: test-compile}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing database operation: CLEAN_INSERT
>
> Embedded error: Communications link failure due to underlying exception:
>
> ** BEGIN NESTED EXCEPTION **
>
> java.net.ConnectException
> MESSAGE: Connection refused
>
> STACKTRACE:
>
> java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
>
>
--
View this message in context:
http://www.nabble.com/Mysql-4.1-tf3507972s2369.html#a9826055
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]