----- Original Message -----
From: "Martijn van Iersel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 2:45 AM
Subject: installing mysql together with application


> Hello
>
> I want to distribute my java database application
> together with mysql, and I want to make it as easy as
> possible.
>
> Right now a new user has to:
> - download and install mysql
> - run the mysql server with mysqld --standalone or a
> similar command
> - download my program and run it.
>
> To make this easier for the user, I tried to zip mysql
> together with my program (the whole c:\mysql directory
> except the data directory), and to issue the mysqld
> --standalone command each time the user starts my
> program, but it doesn't work (it would be too easy,
> wouldn't it?). When I try that, see below for the
> errors that appear in mysql.err:
>
> I want my program in a single zip file, and that you
> only have to unzip it, type "setup" and then "run" to
> make it work. Is there a better way to achieve this?
> It only has to work under Windows (I am assuming here
> that linux users are smart enough to set up mysql by
> themselves)
>
> thanks in advance
> Martijn van Iersel

You're going to have to pass at least the "--basedir" flag to mysqld for it
to be able to find it's configuration files. You'll also have to have at the
very least a "bare" data directory, with the mysql grant tables installed,
and a MySQL configuration file located in it for this to work.

    -Mark


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to