output file location

If I have the mysql server on window xp, I try to export a table to a csv file.  If I run a query like

select * from <table_name> into outfile 'test.csv',

where does the file go?  On Linux, I can find it.  But on window,  I just cannot find it.  I know it is on the server side.  The file is successfully made but just can't find it.
johnyu1997Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobOwner (Aidellio)Commented:
It's probably in the data directory:

C:\ProgramData\MySQL\MySQL Server 5.1\data
0
johnyu1997Author Commented:
I did a whole search on all my drives in the server and I found nothing.  But when I run the script again, it says the file already exists.
0
RobOwner (Aidellio)Commented:
are you running the mysql command on your computer or the server?  if you have mysql installed on your computer then it will be on your computer! :)
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

johnyu1997Author Commented:
I did a full search on the client side also too but just can't find it.
0
RobOwner (Aidellio)Commented:
And you're searching hidden locations.  The path I posted above is in a hidden directory "ProgramData"
0
RobOwner (Aidellio)Commented:
Can you just change the command to:

select * from <table_name> into outfile 'c:\\test.csv'

Then just look in the c drive
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
johnyu1997Author Commented:
It says it can't read and write to c drive but it can write to my data drive.  Anyway, it works.
0
RobOwner (Aidellio)Commented:
Good to hear. There's only so long I can bang my head against the wall before I just walk around it.... :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.