Allow user only create specific tags

I found the solution to this problem here.
This code doesn’t allow user to create new tags from the back or front end but only use the existing custom ones that admin have set in the post_tag taxonomy.

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