Archive for October 17th, 2008

mysql output csv file

In : mysql, Posted by on Oct.10, 2008

Here is the code to output result to csv file.

SELECT order_id,product_name,qty
FROM orders
INTO OUTFILE '/tmp/orders.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'

Tags :


sendmail 451 Name server timeout

In : linux, system, Posted by on Oct.10, 2008

This is something related to sendmail IPv6 support.

  1. cd /etc/mail
  2. sendmail.mc and add the following at the end of the file:
  3. define(`confBIND_OPTS’, `WorkAroundBrokenAAAA’)dnl
  4. type make
  5. restart sendmail
Tags :