sql - MySQL select into outfile /tmp no output -


I can not find the following code to generate any output MySQL user "All" grant level, writeable / tmp , The query returns a result set.

  mysql> Test_table WHERE condition = Select 'test' from field - & gt; Output '/tmp/test.csv' - & gt; Inherent field ',' - & gt; OK, affected by 1 line (0.00 seconds) mysql & gt; [1] + mysql has been stopped [Root @ web 1 ~] # cat /tmp/test.csv cat: '' - & gt; '/tmp/test.csv' is not a file or directory ending with LINES  

Do I see a different output from MySQL in case of failure?

Can I confirm more than the result "1 row affected"?

The files generated by the Outfile Clause are created on the MySQL server host. Please make sure that you are considering the mysql server host, because it appears that you are on a client host that probably does not host mysql server.

Look at the About About Outfile section for documentation. / P>


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -