Solve $d^2y/dx^2 =k/ y^2$ , where $k$ is constant. I require a solution where I can find $x=f(t)$

I have tried using $p=Dy/dx$ and putting $k= dp/dy p y^2$ and doing indefinite integration. Someone please help me out and plz find $x=f(t)$.