mysql安装步骤(3)注意事项

方式一费时长,且需要Linux环境安装了cmake;

方式二速度快不依赖cmake,但是本地连接时必须加上参数-h127.0.0.1,否则自定义sock路径的情况下会报以下错误:

1
2
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
>