DOS commands & MySQL installation

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Got Apache & PHP successfully installed - that was the easy part. MySQL is causing me some problems.

Now, I've got three different sets of installation instructions here. Two of them are telling me to find a file called my- example.cnf and move it to the root directory and rename it to my.cnf. One of these sets of instructions is telling me to edit this file as well. The biggest problem with this whole thing is that I can't find a my-example.cnf file.

Two of these sets of instructions are telling me to go into DOS to set up MySQL as a service in WinXP. I am completely clueless in DOS - I have no idea what to do. When the prompt comes up it's in the "My Documents & Settings" folder - how do I get to the mySQL bin folder?

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

Here are some DOS commands:
type cd directoryname to go to the directory.
type cd .. to go down a level.
type C: (or drivename) to go to the root of that drive.
So if you are in documents and settings,
type cd .., then cd mysqldirectory
dir will list all the files in that directory.
dir /p will do the same thing but will pause after every page.
to execute a file, as long as it has a valid .exe .com .bat extension, just type in the filename. So to execute filename.exe, type in filename

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

Busy's picture

He has: 6,151 posts

Joined: May 2001

did you install PHP/MySQL/Apache as a set or seperate, if you did it as a set try it on Netscape.

my-sample can be displaying without the .cnf at the end, look in your mysql folder (this is the only folder mine is in, but I'm running win98se)

PHPMyAdmin is great for MySQL if you dont want to do all the long coding

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Thanks, mairving! I did manage to get in there but it said that this service has already been installed...weird. Would you believe that there are basically no resources on DOS on the 'net? No beginner's guides or anything like that.

Busy - I installed them all separately. Thanks for the tips on my-example (it is example that I should be looking for, right? I think that's what my instructions said) Thanks for the tip on PHPMyAdmin.

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

The only thing bad about using PhpMyAdmin is that you don't really learn the SQL commands since it does those for you. It is like the difference between knowing HTML and using a WYSIWYG editor. It makes it harder to troubleshoot the code.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Well, maybe I'll do a little bit of both, we'll see. I probably won't get to that for awhile yet anyway.

mmi's picture

They have: 457 posts

Joined: Jan 2001

Busy's picture

He has: 6,151 posts

Joined: May 2001

Mairving, your right about PHPMyAdmin, but when I started using MySQL (not very long ago) I didnt know where to type the commands (still dont lol), I figured at the DOS prompt but dont know DOS and none of the tuts tell you where, they just say: "copy this ..." or "type this ..." dont say how, where, to save as what if needed to be saved (example from text editor).
Mairving you want to sell a fraction of your brain Smiling your very clued up

MMI is there a link you dont have something for Smiling

Megan - "my-example" file is spelt that way "my-example" in its properties it says .cnf but dosnt show it, doing a search for it only brings up the one, i searched for my-example. the file actually shows a shortcut icon but its not a shortcut

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

Quote: Originally posted by Busy

Mairving you want to sell a fraction of your brain Smiling your very clued up

Well now, if I sold you a fraction of my brain, I wouldn't have any left.

The point is that it is a good idea to learn SQL if you plan to use it. Learn how to SELECT, JOIN, INSERT, UPDATE, etc and you will be a long way towards accomplishing your goal.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

mmi's picture

They have: 457 posts

Joined: Jan 2001

Quote: MMI is there a link you dont have something for

yeah, a job Sad

here's an intro to SQL (very sketchy summary)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.