The LQ control problem for infinite dimensional stochastic systems is solved. The fomulas for the optimal control in the feedback form and for the optimal cost are found.