The commands
Import MySQLdb
MySQLdb.connect(user="root", passwd="1234", charset="utf8mb4")
Work on Linux. But on Windows it throws the following exception:
Operational Error (2019, can't initialize character set utf8mb4 (path: c:\\mysql\\\\share\\charsets\\) ")
That path doesn't even exist on my computer, nor in my code.
I'm using MySQLdb version 1.2.5 and mysql 5.7.18.
Using charset=utf8 is not enough because I need to query something like this \U00023456 (4 bytes unicode code points) .