您现在的位置是: 首页 > 运维 查看MySQL默认读取的配置文件
查看MySQL默认读取的配置文件
2020-08-29 【运维】 2564人已围观 4991次浏览
简介查看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 路由跳转后不在顶部
相关文章
- CentOS 安装JDK
- LNMP 手动更新 SSL 证书
- sentinel directive while not in sentinel mode 问题解决
- 迁移 Docker 目录
- 【Docker】unauthorized: incorrect username or password
- docker mysql 导入 SQL 脚本
- CentOS 安装Node.js
- ElasticSearch安装踩坑指南
- Linux 服务器之间传输大文件(压缩文件、查看MD5、后台传输)
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
点击排行
- 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 项目完整部署方案
站长推荐
猜你喜欢
- Chrome 谷歌浏览器清除HTTPS证书缓存
- Linux 查看磁盘、磁盘分区、挂载磁盘、卸载磁盘操作
- 记一次Java MessageFormat.format踩坑
- Mac降温软件推荐smcFanControl
- Python 钉钉加签 HmacSHA256 算法签名
- 在更新python时出现dyld: Library not loaded: /usr/local/opt/libpsl/lib/libpsl.5.dylib,Reason: image not found错误解决方案
- springboot引入mybatis-plus后出现ClassNotFoundException: org.mybatis.logging.LoggerFactory
- win10 cmder Debian 安装配置 oh-my-zsh
- Mac 设置允许任何来源
- mybatis中大于等于小于等于的写法