The correct equation of motion for a free-falling object as written in the OP is incorrect. Rather, we have
$$m\frac{dv}{dt}=mg-kv^2 \tag 1$$
Dividing by $v=\frac{dx}{dt}$ reveals that
$$\frac{dv}{dx}=\frac{g}{v}-\frac{k}m v$$
Then, we have
$$\int_{x_0}^x dx' = \frac{m}{k}\int_{v_0}^v \frac{\nu}{\frac{mg}k-\nu^2}\,d\nu \tag 2$$
where we note that the integration limits cannot embed $v=\sqrt{mg/k}=v_{\infty}$, which is the terminal velocity. Aside, in $(2)$, $v_0$ is the speed of the object when $x=x_0$.
The solution to $(2)$ is given by
$$x=x_0+\frac{m}{2k}\log\left|\frac{v_{\infty}^2-v_0^2}{v_{\infty}^2-v^2}\right| \tag 3$$
Unfortunately, $(3)$ does not provide much insight into the dynamics of the free-falling object. It provides only a relationship between the position of the object and its speed at that position.
It is better to rearrange $(1)$ as
$$\int_{0}^t d\tau =\frac{m}{k}\int_{v(0)}^{v(t)} \frac{1}{v_{\infty}^2-\nu^2}\,d\nu \tag 4$$
We can evaluate the integral on the right-hand side of $(4)$ by enforcing the substitution $\nu = v_{\infty}\tanh(z)$. Proceeding we find that
$$t=\sqrt{\frac{m}{kg}} \left(\text{artanh}(v(t)/v_{\infty})-\text{artanh}(v(0)/v_{\infty})\right)\tag 5$$
Solving $(5)$ for $v(t)$ reveals
$$v(t)=v_{\infty}\left(\frac{\frac{1+v(0)/v_{\infty}}{1-v(0)/v_{\infty}}e^{2t/\sqrt{mg/k}}-1}{\frac{1+v(0)/v_{\infty}}{1-v(0)/v_{\infty}}e^{2t/\sqrt{mg/k}}+1}\right)$$
which provides a more useful form than $(3)$. For example, we see from $(5)$ that if $v(0)>v_{\infty}$, then $v(t)$ decreases to $v_{\infty}$ while if $v(0)<v_{\infty}$, then $v(t)$ increases to $v_{\infty}$.