How to add a class to edit_post_link?

Assuming you are reading this answer in the future (December 2015 or later).

Starting from WordPress 4.4.0, The $class argument was added. So:

edit_post_link( __('Edit'), '', '', 0, 'post-edit-link btn btn-default' );

See edit_post_link documentation.

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