怎么查看linux下mysql位置,linux服务器上怎么查看mysql的my.cnf的位置

2023-05-16

Debug5出品,零基础,小白高效入手python后端视频教程:

f6de36ece1db797c864385786bb1854f.gif

linux服务器上,运行着mysql,这时候想看my.cnf的位置,怎么来看呢?

1、

ubuntu@VM-0-6-ubuntu:~$ which mysqld

/usr/sbin/mysqld

2、

ubuntu@VM-0-6-ubuntu:~$ /usr/sbin/mysqld --verbose --help | grep -A 1 "Default options"

mysqld: Can"t change dir to "/var/lib/mysql/" (Errcode: 13 - Permission denied)

Default options are read from the following files in the given order:

/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf

b0c362a14e62cc3f1ef84d0ee17e9773.png

本博客源码Github地址:

请随手给个star,谢谢!

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

怎么查看linux下mysql位置,linux服务器上怎么查看mysql的my.cnf的位置 的相关文章

随机推荐