c# - Hudson CI can't reach MySQL Server -
i have multiple unit tests have connect mysql server retrieve or modify data (i know more integration tests, let's not dive now). full suite of nunit tests pass no issues both in nunit gui , in nunit console.
i automating our build process using hudson continuous integration. part of introduced batch command invoke nunit console execute tests after building full solution:
"c:\program files (x86)\nunit 2.5.10\bin\net-2.0\nunit-console.exe" /framework:net-4.0 tests\mytestproject\bin\debug\mytestproject.dll /xml=mytestproject.dll.xml /config:debug exit 0
it should work exception tests tha connect database server:
mysql.data.mysqlclient.mysqlexception : unable connect of specified mysql hosts.
so hudson can't reach mysql server, when connection string same if executed tests manually. hudson , server in same machine way, dev box now. also, few tests not need database pass no problems.
why hudson can't reach mysql server?
update: not tests failing, tests use connection string require shared memory, this:
server=localhost;user id=root;pooling=false;persist security info=true;connection reset=true;allow user variables=true;password=;protocol=sharedmemory; shared memory name=mysql
tests not include sharedmemory pass.
set /trace=debug
nunit-console.exe
, perhaps you'll see more information going on under hood
Comments
Post a Comment