环境:
ubuntu 16.04
mysql 5.7

打开/etc/mysql/my.cnf 发现里面没有[mysql]、[mysqld]等内容
在这里插入图片描述
google一下,Why is /etc/mysql/my.cnf EMPTY?

这并非为空,而是有两行配置指向了其他地方的配置文件

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/

打开/etc/mysql/mysql.conf.d/里面的mysqld.cnf
在这里插入图片描述
发现配置文件可以写在这里

GitHub 加速计划 / li / linux-dash
10
2
下载
A beautiful web dashboard for Linux
最近提交(Master分支:26 天前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐