How to safely trigger password reset emails for thousands of users

How to safely trigger password reset emails for thousands of users

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