Why is com.mysql.jdbc.Driver forever going to open in MATLAB?

I have a problem with com.mysql.jdbc.Driver in MATLAB and I hope someone else comes across it and can help me. Basically my problem is that on one machine every time I call database('mysql.jdbc.Driver', ...)

this call takes approximately 30 seconds. I would just do it as usual, except that when I run the same script on a different machine, the call database

takes about 15 seconds the first time, and less than 1 second each time thereafter. Once I have a database connection, the queries being executed take the same amount of time no matter what machine I'm on.

Does anyone else come across (and are solving) this problem? My best guess is that there is some kind of environmental issue causing the problem, but I have no idea where to start looking.

0


source to share


1 answer


It turns out it was some sort of network / service issue. When I disabled some of the unnecessary services (Wireless Zero Configuration among others), I went from consecutive 20 seconds to create a few millisecond connection. I wish I had paid more attention to the services I changed, but hopefully this helps someone else.



Thanks to Mr. Fooz for suggesting something else, this allowed me to confirm that this is a system issue and not a MATLAB specification.

0


source







All Articles