The oscillator frequency $\omega$ says nothing about the actual oscillator phase. Let us suppose that your oscillator oscillates freely like this: $$x(t) = A_0\cdot\cos(\omega t + \phi_0),\; t<0.$$ At $t=0$ it has a phase $\phi_0$. Depending on its value the oscillator can be moving forward or backward with some velocity. If you switch your external force on at $t=0$ and onwards, say, to push your particle in a positive direction, then, depending on the particle phase, the force will accelerate or decelerate the particle.
Generally you write down the external force in the same way: $$F_\text{ext}(t)=F_0\cdot \cos(\omega t +\Phi_0).$$ This expression stays in the driven oscillator equation, namely, in the right-hand side. The resonance happens always, i.e., the external force will supply energy to the particle, but this supplying can start immediately if the force direction and the particle velocity direction coincide. Otherwise the external force first slows down the particle and only then starts pumping its amplitude.
The particle velocity phase is shifted with respect to the particle coordinate $$v(t) = -A \sin(\omega t + \phi_0)=A\cos(\omega t + \phi_0 +\pi/2),\; t<0.\;$$ So, when $\Phi_0 =\phi_0 +\pi/2\;$ the force is in phase with velocity (not with coordinate) - you have not only the same direction for the velocity and for the force, but also coincidence of instants when both the velocity and the force become zero (no time intervals with their opposite signs).
EDIT: The permanent phase shift of $\pi/2$ in a resonant case with friction (as described in user17581 answer) is a self-established thing and its meaning is simple - the external force in the end compensates exactly the friction force; the latter being proportional to velocity which is shifted by $\pi/2$ with respect to the coordinate time-dependence (so the oscillator oscillates as if it were free, without losses).
This is just a footnote to Name's answer (which you should accept because it's correct) to give a slightly more intuition based argument.
If the driving force changes slowly compared to the natural frequency of the system then the system can move fast enough to stay in phase with the driving force. So most of the time the system is already moving in the direction the driving force is pushing it, and the force will accelerate the motion so the resulting amplitude of the oscillation will be big.
If the frequency of the driving force is a lot higher than the natural frequency of the system then the system cannot move fast enough to stay in phase with the driving force. This means some of the time the driving force is acting opposite to direction the system is moving, so it's slowing the motion not accelerating it. This means the amplitude of the motion will be reduced.
Best Answer
Your equation gives the natural frequency of the mass-spring system.This is the frequency with which the system oscillates if you displace it from equilibrium and then release it.
The driving frequency is the frequency of an oscillating force applied to the system from an external source. Therefore the driving frequency can be anything you choose; there is no formula or equation for it!
If you start to apply, and then continue to apply, a driving force to your mass-spring system, its motion initially will be the sum of oscillations at its natural frequency and oscillations at the frequency of the driving force. As time goes on the oscillations at the natural frequency will die away (because of damping forces) and only the oscillations at the frequency of the driving force will remain.