This is how I connect to my database on my Windows cmd: mysql -u mydb -h myip -p
.
It has always worked since I tried to swap my utf8 database to utf8mb4. The changes I apply with php or java work fine and I can see those characters correctly when loading from php, java or phpmyadmin but not on my cmd.
I have tried adding --default-character-set=utf8
and --default-character-set=utf8mb4
to the cmd connection with no succeed. It is curious, by the way, that if I run a simple sentence like SELECT '☺';
it shows that character correctly.
Am I missing something?