linux查看mysql启动配置文件路径

[root@sf106131 logs]# which mysqld
/usr/sbin/mysqld
[root@sf106131 logs]# /usr/sbin/mysqld --verbose --help |grep -A 1 'Default options'
2020-05-12 08:44:03 0 [Warning] Using unique option prefix thread_cache instead of thread_cache_size is deprecated and will be removed in a future release. Please use the full name instead.
2020-05-12 08:44:03 4184 [Warning] Using unique option prefix myisam_recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf 

 

 

1   首先通过which mysqld 查看mysqld位置。

2   mysqld路径 --verbose --help |grep -A 1 'Default options'    

 

/usr/sbin/mysqld --verbose --help |grep -A 1 'Default options'

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值