How to insert an array of terms using wp_insert_term?

As far as the codex for wp_insert_term says, it is not possible to insert an array directly. Put all your terms in an array, then foreach over it and inside every turn, call wp_insert_term once per term.

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