How can create a custom plugin to call my webapi after any registration or membership plugin functionality

How can create a custom plugin to call my webapi after any registration or membership plugin functionality

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