A greenish-yellow, slightly grainy stool like this is common in a 2-month-old and usually isn't a sign of trouble. It often happens with a mismatch between foremilk and hindmilk if you're breastfeeding, or simply varies from feed to feed.
Next Steps
Keep feeding as you have been. If you're using formula, a recent brand change can also turn stool greenish for a few days, and that settles on its own.
Health Tips
Please see your paediatrician if the stool turns watery, shows blood or mucus, looks pale or white, or your baby seems unwell, feeds poorly or isn't gaining weight.