How to export comments? I have two Drupal website setups. One is development and another one is live. In my live setup lot of comments are there. I want to export all comments and import to development setup.
How can I do that?
The best way to migrate content is the Migrate module, in the module page you can find many Case studies with code inside and in the documentation page you will find all the information that you need.

Inside the Migrate module folder you can find the Beer.inc file, which is an example of how you can do simple mappings. For more complicated migrations you can look into Wine.inc.