[mysql] fixed Eugeny/ajenti#480