Re: connector mxj problems on linux
Eric Herman <[email protected]>
| Newsgroups | gmane.comp.db.mysql.java |
|---|---|
| Message-ID | <1146157563.7390.66.camel@localhost> |
On Thu, 2006-04-27 at 11:56 +0200, Diego Zanga wrote:
> The first "thing" i see is that the path used is an absolute
> path /tmp/test-mxj
> so it works as works on my system: however when moving from absolute
> path to relative path "./tmp/test-mxj" this takes to an error.
>
Yes. That is correct. As I said before, this has been addressed in the
source tree of 5.0 branch of Connector/MXJ. However, in the mean time,
when creating directories, rather than using the "." to specify working
directory, using System.getProperty("user.dir") will avoid the errors
that you are
seeing.
String userDirStr = System.getProperty("user.dir");
File userDir = new File(userDirStr);
File baseDir = new File(userDir, "npaMysql");
This should avoid the "datadir" and socket file creation, and PID file
creation problems.
Alternatively use of java.io.File's canonical path would also work, I
suspect.
> I've still no idea where the "--no-defaults" problem comes from :O)
> i'm testing ...
Please keep me posted.
Cheers,
-- Eric
>
>
> cya, thx
--
Eric Herman, Software Developer
MySQL AB, www.mysql.com
Mobile: +1 206 913 8942
Are you MySQL certified? www.mysql.com/certification
--
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe: http://lists.mysql.com/[email protected]