Mysql Error 1055 in mac


Malam malam asyik ngoding eh ketemu error ginian di mac, kalau kebetulan ada yang error seperti ini juga ikuti tips dibawah ini, error ini muncul ketika menggunakan group by, seumur umur ngoding baru kali ini ketemu error ginian.

Kalau kalian ketemu error seperti ini lakukan langkah berikut

Buat folder di /usr/local/mysql/etc

sudo mkdir /usr/local/mysql/etc

Kemudian copy settingan default my.cnf

Ā sudo cp /usr/local/mysql/support-files/my-default.cnfĀ  /usr/local/mysql/etc/my.cnf

Setelah itu edit my.cnf yang di /usr/local/mysql/etc/my.cnf tambahkan dipaling bawah

sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY$

restart mysql done selesai

Semoga bermanfaat happy coding

Published by

susiloharjo

Khoirunnas anfa'ahum linnas A Father, Husband and love to learn person Love my Family, Electronics, Photography, Robot, Dreaming, Programming

Ditunggu komennya ...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.