您现在的位置是: 首页 > 运维 查看MySQL默认读取的配置文件
查看MySQL默认读取的配置文件
2020-08-29 【运维】 1789人已围观 3899次浏览
简介查看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 修改默认的 ssh 22 端口
- 【Docker】unauthorized: incorrect username or password
- Linux 常用命令 持续更新中...
- mybatis中大于等于小于等于的写法
- sentinel directive while not in sentinel mode 问题解决
- 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
- ElasticSearch安装踩坑指南
- docker mysql 导入 SQL 脚本
- 自建Ngrok服务端
- Docker 批量操作命令
点击排行
- 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 自动填充无效问题解决
- nuxt 项目完整部署方案
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
站长推荐
猜你喜欢
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- python scrapy 出现 DEBUG: Filtered offsite request to 错误
- Linux 查看磁盘、磁盘分区、挂载磁盘、卸载磁盘操作
- Windows CMD 常用命令
- Vue 路由跳转错误 NavigationDuplicated: Avoided redundant navigation to current location
- LNMP 手动更新 SSL 证书
- Nestedset 出现 Node must exists. 错误解决方案
- Vue 报错 Avoid using non-primitive value as key, use string/number value instead
- Python自动生成和安装requirements.txt文件中的依赖
- ThinkPHP 解决跨域访问问题