注册 登录
编程论坛 JAVA论坛

Mac 系统下安装mysql,录入中文乱码报错,求助!

Angus_wei 发布于 2018-06-03 00:33, 1568 次点击
通过以下方式创建:

support-files文件夹里面没有文件,那么就要在/etc下新建

$ cd /etc

$ sudo vim



提示一下错误:

E325: ATTENTION

Found a swap file by the name ".

owned by: root dated: Fri Jun 1 23:27:42 2018

file name: /private/etc/

modified: YES

user name: root host name: CarpeDiemdeMacBook-Pro.local

process ID: 2174

While opening file "



(1) Another program may be editing the same file. If this is the case,

be careful not to end up with two different instances of the same

file when making changes. Quit, or continue with caution.

(2) An edit session for this file crashed.

If this is the case, use ":recover" or "vim -r

to recover the changes (see ":help recovery").

If you did this already, delete the swap file ".

to avoid this message.



Swap file ". already exists!

(O)pen Read-Only, (E)dit anyway, (R)ecover,( D)elete it, (Q)uit, (A)bort:

补充:

刚刚学习mysql,同时第一次使用mac系统,求各位大佬解答,谢谢!
2 回复
#2
Angus_wei2018-06-03 21:39
修改mysql中文乱码问题
cd /etc
sudo vim

[client]
default-character-set=utf8
[mysqld]
character-set-server=utf8

已解决
1