1.

Solve : getting a file to work?

Answer»

I am trying to INSTALL mysql. They say i need to get this file in dos.

C:\> C:\Program Files\MySQL\MySQL Server 5.1\BIN\mysqld --console

well wen i run dos, it wont come up as c:\
It goes to C:\DOCUME~1\ADMINI~1>

if i type in the first code after the last code i get
"C:\Program' is not recognized as an internal or external command.

I am running windows 2000
what do i do?The space in the name, "program files" is messing things up. Put the whole path in quotes:

[size=13]C:\> "C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --console[/size]

Alternatively, open up thebin folder, then drag mysqld.exe into the console window, then add the
--console switch.Are you sure that the bin directory isn't in the path ENVIRONMENT variable (mySQL may do this on installation).

At the command console, type:

path [return]

See if the path to the mySQL bin is included.

Quote

C:\> C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld


Ok, looking at that, and not know what type of windows you use, i'm seeing errors that WOULD show up on windows xp professional anyways. It might help... with your directory c:\program files

There is a space, and dos windows does not like spaces in directories so, what you would type instead would be

c:\progra~1\

Reason for this would be that when typing in folder names, DOS windows has an 8 character limit, so including the ~1 there is 8 characters... You have to set this up like that. Also, the reason it is ~1, represents that it is the first folder created with that name. Here is how it works

say i have a folder under the C: DRIVE called testingfiles then i have another called testingfilesother

this is what i would type into dos windows to get to the directories

testing files would be
cd c:/testin~1
note: this still obeys the 8 character limit, and assuming it was the first file created, then it will work

Testingfilesother would be
cd c:/testin~2



Discussion

No Comment Found