White and yellow fluid is the formation of pus. The presence of infection can create pus. Firstly, You should get an x-ray done and the doctor will check for infection. In such cases, Root canal treatment is needed. In advanced cases, surgical treatment is required. You can share an x-ray with us so that we can guide you soon.