1: windows
Find \ ProgramData \ MySQL \ my.ini, this is the mysql configuration file
In [client] the node
Add the following coded information
[client]
# pipe=
# socket=MYSQL
port=3306
default-character-set=utf8 #utf8mb4
default-collation=utf8_general_ci #utf8mb4
2: linux, empathy
Find mysqld use whereis or which specific installation location or mysql
General configuration files in the / etc directory.
Then add in the port below
default-character-set=utf8 #utf8mb4
default-collation=utf8_general_ci #utf8mb4
It can be.
then
serviece mysqld restart
Restart ,, mysql service