您现在的位置是: 首页 > 运维 查看MySQL默认读取的配置文件
查看MySQL默认读取的配置文件
2020-08-29 【运维】 2766人已围观 5282次浏览
简介查看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 路由跳转后不在顶部
相关文章
- 【Docker】unauthorized: incorrect username or password
- Zookeeper 找不到或无法加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- LNMP定时备份任务教程(支持排除指定文件夹)
- Docker 批量操作命令
- CentOS 安装JDK
- linux下各文件夹的结构说明及用途介绍
- mybatis中大于等于小于等于的写法
- LNMP 手动更新 SSL 证书
- Oracle ORA-12541:TNS:no listener错误解决方法
点击排行
- 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 项目完整部署方案
站长推荐
猜你喜欢
- Debian apt 使用国内镜像
- mysql 索引过长1071-max key length is 767 byte
- Oracle ORA-12541:TNS:no listener错误解决方法
- Mac 设置允许任何来源
- PHP 在执行 composer install 时出现提示 PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...>
- 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
- Debian/Ubuntu无netstat命令解决方案
- idea去掉Smart commands execution提示
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- mac idea spring boot 启动慢