Prevention
People can get infected with Mycoplasma pneumoniae more than once. While there is no vaccine to prevent M. pneumoniae infections, there are things people can do to protect themselves and others.
Good hygiene
Like many respiratory germs, Mycoplasma pneumoniae most commonly spread from coughing and sneezing. The best way to keep from getting or spreading M. pneumoniae is to wash your hands often, especially after coughing or sneezing.
Preventive antibiotics
Doctors generally do not prescribe antibiotics to help prevent someone else from getting sick (for example, a close contact of an infected person).