Mysql version : 8.0.12 on WAMP Server (apache 2.4.33)
In my.ini I added (then restarted mysql multiple times):
[mysql]
default-character-set=utf8mb4
[mysqld]
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
I have a mysql table stores
with a column coordinates varchar(255) utf8mb4_unicode_ci
.
I get this error while trying to update stores
column:
SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xFAC3OJ]...' for column 'coordinates' at row 1 (SQL: update `stores` set `updated_at` = 2018-09-12 11:01:48, `coordinates` = ST_GeomFromText('POINT(-117.161084 32.715738)') where `id` = 3)
What am I doing wrong?
I tried the query directly in the phpMyAdmin and I get the same error.