I would like to alert message while another user is editing or update data in wordpress admin panel, what should i do?

WordPress displays warning as shown in below screenshot when you try to edit post/page which is being edited by other.

Wordpress Warning

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