Debug5出品,零基础,小白高效入手python后端视频教程:
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
本博客源码Github地址:
请随手给个star,谢谢!