How to limit the amount of images uploaded to the media library within post.php

How to limit the amount of images uploaded to the media library within post.php

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