您现在的位置是: 首页 > 运维 查看MySQL默认读取的配置文件
查看MySQL默认读取的配置文件
2020-08-29 【运维】 1404人已围观 2784次浏览
简介查看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 路由跳转后不在顶部
相关文章
- linux下各文件夹的结构说明及用途介绍
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
- CentOS 7 安装 Golang 环境
- ElasticSearch安装踩坑指南
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- mysql 索引过长1071-max key length is 767 byte
- Linux 修改默认的 ssh 22 端口
- CentOS 安装Node.js
- Linux 服务器之间传输大文件(压缩文件、查看MD5、后台传输)
- docker mysql 导入 SQL 脚本
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- Debian apt 使用国内镜像
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- nuxt 项目完整部署方案
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
站长推荐
猜你喜欢
- LNMP 手动更新 SSL 证书
- gulp3 在 node12 上运行出现异常 primordials is not defined
- CentOS 安装 Docker
- npm 出现 Unexpected token < in JSON at position 21330
- mysql 索引过长1071-max key length is 767 byte
- SpringBoot 定时任务 多线程
- PHP 中list()出现Undefined offset: 0错误
- Linux no space left on device 出现设备上没有空间问题
- Vue 路由跳转错误 NavigationDuplicated: Avoided redundant navigation to current location
- Python自动生成和安装requirements.txt文件中的依赖