centos系统查找mysql的配置文件位置

执行命令查找mysql的安装目录:

which mysql

cd进入mysql的安装目录

cd /usr/bin

查找配置文件位置

./mysql --help | grep "my.cnf"

定位配置文件

cd /etc

查找命令还可以用find命令

find / -name "my.cnf"

相关推荐
wljy17 小时前
二、进制状态转换
linux·运维·服务器·c语言·c++
handler017 小时前
【MySQL】常用命令总结(库与表增删查改)
运维·数据库·mysql·命令·总结
week@eight7 小时前
Linux - Doris
linux·运维·数据库·mysql
平行云7 小时前
实时云渲染预启动技术解析:UE数字孪生应用的延迟优化机制(二)
linux·unity·ue5·webgl·实时云渲染·云桌面·像素流
看到代码头都是大的8 小时前
CentOS环境下手动升级openssl、openssh
linux·运维·centos
浮生若城8 小时前
Linux——Ext系列文件系统
linux·运维·服务器
枳实-叶8 小时前
【Linux驱动开发】第16天:按键中断完整实战
linux·运维·驱动开发
苏渡苇9 小时前
Spring Cloud Alibaba:将 Sentinel 熔断限流规则持久化到 Nacos 配置中心
数据库·spring boot·mysql·spring cloud·nacos·sentinel·持久化
杨云龙UP9 小时前
Oracle Recycle Bin 回收站详解:DROP TABLE 后还能找回吗?
linux·运维·数据库·sql·mysql·oracle
又熟了11 小时前
乌班图Ubuntu安装
linux·运维·ubuntu