Users credentials and syncing from third party with WooCommerce

You can use wp-api. Its really easy and best. The documentation is also very clear and vast. Its provide a small plugin which can do everything you want.
http://wp-api.org/

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