您现在的位置是: 首页 > 运维 查看MySQL默认读取的配置文件
查看MySQL默认读取的配置文件
2020-08-29 【运维】 2690人已围观 5158次浏览
简介查看MySQL默认读取的配置文件
自建MySQL服务时,特别是在拿到一台其他人搭建好的运行环境的服务器时,在想修改MySQL配置时就会出现找不到MySQL当前读取的配置文件路径在那里,导致无法修改的问题
在MySQL是启动状态的情况下,执行下面的命令可以看出当前MySQL运行的配置文件
mysql --help|grep 'my.cnf'
一般情况下,都会返回下面的信息,如果是自定义的配置文件路径,则有可能会不同
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf
可以看到默认的配置文件启动顺序,依次就是上面返回的4条记录(中间是空格间隔),这时候再从左到右依次查看,就能找到需要修改配置文件的路径
很赞哦! (0)
下一篇:Vue 路由跳转后不在顶部
相关文章
- LNMP定时备份任务教程(支持排除指定文件夹)
- 解决443端口被VMWare Workstation占用
- 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
- sentinel directive while not in sentinel mode 问题解决
- linux下各文件夹的结构说明及用途介绍
- Debian/Ubuntu无netstat命令解决方案
- Linux 常用命令 持续更新中...
- CentOS 安装JDK
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- ElasticSearch安装踩坑指南
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- 解决Mac突然没声音的问题
- SpringBoot 启动测试时出现提示 Test class should have exactly one public zero-argument constructor
- 防止Time Machine备份Parallels Desktop的虚拟硬盘文件
- nuxt 项目完整部署方案
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- Nginx转发阿里云OSS内网流量
- start.spring.io访问太慢,构建SpringBoot项目失败
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- cmder vim方向键无法使用 解决方案
- Debian apt 使用国内镜像