Updated mysql apply command