I have been to Bangkok and Pattaya alone over 30 times
Basically it's safe there unless you stray into unknown areas
Generally in Bar areas and massage parlour areas have no problem
Just read the posts here and go ro popular shops/bar/night clubs
Solo travelers have more freedom on choice