Whats the proper way to add a new user via a front end form?

I think you’re looking for a function but might also want to look at Gravity Form’s solution for this: https://www.gravityforms.com/add-ons/user-registration/

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