Solved

select into outfile permission denied on windows 8

Posted on 2014-01-08
1
2,517 Views
Last Modified: 2014-01-08
Hello

I am trying to run a select into outfile command from mysql 5.6 command line on windows 8 and I get a permission denied error. I have run the command prompt as administrator.

I have tried writing the output file as:

c:\outout.txt
c:\\output.txt
c:/output.txt

This is the error i get

ERROR 1 (HY000): Can't create/write to file 'C:\output.txt' (Errcode: 13 - Permi
ssion denied)

This is a cut down version of the statement

mysql> select * from testdb.web_vehicles into outfile 'C:\\output.TXT';
ERROR 1 (HY000): Can't create/write to file 'C:\output.TXT' (Errcode: 13 - Permi
ssion denied)

thanks a lot
0
Comment
Question by:andieje
1 Comment
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 39766086
The default NTFS permissions on Windows is more secure in newer versions, try sending the output file to C:\Temp\output.txt or your documents folder (i.e., C:\users\%username%\documents).
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now