How to show 1 random post result without using an array?

Set posts_per_page to 1. Instead of asking for one page worth of results that contains 99999999 posts, ask for only 1 post per page instead.

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