13 Ocak 2018 Cumartesi

MySQL "The user specified as a definer ('applica1'@'localhost') does not exist ve "this is incompatible with sql_mode=only_full_group_by" Hatalarının Çözümü

MySQL ' de

1.)SQL Error [1449] [HY000]: The user specified as a definer ('applica1'@'localhost') does not exist The user specified as a definer ('applica1'@'localhost') does not exist

hatasını alıyorsanız aşağıda ki sorguyu çalıştırmanız problemi çözecektir.

        grant all on *.* to 'applica1'@'localhost' identified by 'password' with grant option;

2.)this is incompatible with sql_mode=only_full_group_by

hatasını alıyorsanız aşağıda ki sorguyu çalıştırıp Database'e disconnect olup tekrar connect olduğunuz takdirde hata çözülmüş olacaktır.

set global       sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_ DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';

set session sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';

Herkese iyi çalışmalar...