Mom is telling me to stay in unhappy marriage

Nobody understands!! I went to my mom, who is my absolute friend. I told her I don’t want this marriage anymore. I’m over it. I’m over my husband’s bullshit and I’m not settling for it anymore. But she tells me I can’t leave because we have a daughter together. I am so upset!! She is old fashioned and she stayed with my dad for years even though she was unhappy. That is exactly why I want to leave my husband. I want to avoid being like them after 30 years. Am I wrong? I feel so misunderstood 🤦🏽‍♀️