The shareware
version looks in c:\mysql for the data files by default. So you
put the binaryies on d: run it from d: and the datafiles will still
have to be on c: (if you run it as a service with --install)
Basically if you need to run it as a service the shareware version
must have data in the default directory. You can run it with SRVANY.EXE
but in my experience if you do this and stop the service it will not
properly shutdown the database and you risk data loss.
I don't think your dos terminal is hanging. What is happening is
mysql is running but it does not background itself so the prompt
does not return, try opening another command prompt and accessing mysql.
You should probably start mysql from RUN under the start menu, or
using
start d:\mysql\bin\mysql --basedir=d:\mysql
from a command prompt if you want to get your prompt back after you run
it.
steve
JJ Hendriksen wrote:
>
> Hi!
>
> >>> > You can install the shareware version anywhere, but if you don't
> store
> >>> it in C: then you have startup arguments to where you have installed
> >>> it! For example: mysqld --basedir=d:/mysql
> >>> The above is explained in the MySQL README file you got with the
> >>> shareware version.
> > Joost-Jan> I tried to, but mysql crashes when I try to start it this way ...
> > If you can describe exactly what happens, we may be able to help you!
>
> Well.. here it goes. I have got a MySQL server running (under NT)
> on my C drive. I stop the service MySQL by entering "mysqld --remove".
> Than I change dir to d:\mysql (where i would like mysql to run). I enter:
> "d:\mysql\bin\mysqld.exe --basedir=d:\mysql". Now my dos terminal hangs!
> I kill the mysqld with my task manager. Next, I tried to install the new
> mysql (on my D drive) as a service through the command: "mysqld --install".
> But when I look in the task manager, there is currently NO mysqld.exe ..:(
> Can't get it to work....
>
> Hope you can help me!
>
> Regards,
>
> Joost-Jan
>
> ----------------------------------
> E-Mail: JJ Hendriksen <jj-mail@stripped>
> Date: 07-Oct-99
> Time: 17:51:02
>
> This message was sent by XFMail
> ----------------------------------
>
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail win32-thread659@stripped
>
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail win32-unsubscribe@stripped instead.