By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,367 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

question: load_file('proc/self/environ') - possible?

P: 1
hello.
i tried to load_file('proc/self/environ'),but its returns NULL.
/etc/passwd is loaded,and currect_user have file_priv Y.
it is possible?
Apr 26 '12 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 1,033
Why do you want to load that?
I think the output of 'env' is the same?

Expand|Select|Wrap|Line Numbers
  1. mysql -e "INSERT INTO env(t) values ('`env`');
or

Expand|Select|Wrap|Line Numbers
  1. env >/tmp/env.txt
  2. load data infile '/tmp/env.txt' into table env;
Apr 28 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.