This paper is concerned with the stochastic linear quadratic optimal control problems (LQproblems, for short) for which the coefficients are allowed to be random and the costfunctionals are allowed to have negative weights on the square of control variables. Wepropose a new method, the equivalent cost functional method, to deal with the LQ problems.Comparing to the classical methods, the new method is simple, flexible and non-abstract.The new method can also be applied to deal with nonlinear optimization problems.