How do you allow users tag a photo

Have a look at register_taxonomy_for_object_type() and this discussion, this might get you started.

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