How do I detect which page I’m on within a paginated post?

The pagination query var on singular posts is page, not paged.

echo get_query_var( 'page' );

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