Change user for select into outfile file permission
I have to be able to write files to a secure Windows server location where the user is something other than {user}@localhost. Is there a way to pass a username and password in the select into outfile command? I cannot have the write-to location be open to the world because the data are confidential.
![](https://secure.gravatar.com/avatar/4cdeb605762fa1e4ed8917a0fb9baf26?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
![](https://secure.gravatar.com/avatar/d1f3a28af2a27cd30cc7fbbe47cc57b8?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
Could you please describe this in more detail and let us know how it should be connected with dbForge?
-
Jim VanO commented
If I want to write an outfile to a particular folder to which only jv23@domain_name has full permission given confidential nature of data, I cannot write the file using dbForge. dbForge returns errcode 1 - Can't create/write to file and errcode 2 - No such file or directory. Some place (I can't remember where) I found out the reason for the error was that dbForge was passing the MySQL username @ localhost, which is not the domain user, there was no way to change the user writing the file, and I have no permission to change the folder permissions.