Export all content from wordpress

WordPress already has this available under Tools > Export.

You can export all of your posts, comments, authors, etc. into an XML file which you can them Import into a new (or not new) installation.

I believe this has been part of the core since WordPress 2.1.

Where to Find Export in WordPress

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)