Customer is not showing in back-end (Magento 2)

Sometimes the customer is not displaying in Customer admin grid, it happens because of reindexing is not complete.

You can be solved by below trick: Run below query first in MySQL:

update magento.indexer_state set status='invalid' where status ='working'

then run below command

php -d memory_limit=1024M bin/magento indexer:reindex