What do the numbers mean at the end of add_action(‘save_post’)…?

The 10 is the priority (relative to other added actions) and the 2 is simply the number of arguments that my_save_post() will accept.

See the codex.

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