Mac mysql running sql file Chinese garbled problem

Stop foolishly changing the mysql encoding format.

There is a problem with the encoding of the .sql file, just change the encoding format of the sql file to utf-8.

How to modify mac?

vscode is the coolest.

Open the .sql file with vscode, and then click the code in the lower right corner. Then select "Save with Encoding"

Then just enter a space and save it.

 

View the encoding format of the file under Mac

vim file

:set fileencoding

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324657767&siteId=291194637