How to fix “Incorrect string value” errors?
Mysql support only 3 bytes in «basic» utf8.
So in case of use some new characters like emoji it gives Incorrect string value error.
To fix this error you need change encoding utf8 to utf8bm4.
Sanasol
How to fix “Incorrect string value” errors?
Mysql support only 3 bytes in «basic» utf8.
So in case of use some new characters like emoji it gives Incorrect string value error.
To fix this error you need change encoding utf8 to utf8bm4.
VPS #1 — Франция
VPS #2 — Канада
VPS #3 — Нидерланды
mysql —
haproxy — балансирует запросы на два mysql мастера.
haproxy.cfg
На каждый сервер идёт свой поддомен.
Чтобы завалить сервис необходимо положить как минимум 2 хоста из 3.
Для этого надо знать какие хосты держат mysql сервера.
В противном случае класть придётся все хосты, дабы вывести из строя сервис.
Class db does not exist eloquent
A facade root has not been set
and other terrible errors.
This post for those who like me using Eloquent outside Laravel.
With config like this:
Sometime need to log queries or just count it.
Almost all google results show code like this:
But outside Laravel you will get errors written above.
I spent some time to get it work.
And now i got solution
To get work query logs outside Laravel use this