【MySql】收集与mysql相关的一些资料

来源:互联网 发布:java 获取web访问路径 编辑:程序博客网 时间:2024/05/21 09:52

 

 

启动mysql的方法:

 /etc/rc.d/init.d/mysqld   start


1, 查找MySQL 使用的my.cnf文件的位置 

$ mysqld --help --verbose 2> /dev/null | grep -A1 'Default options'

结果一般是:

Default options are read from the following files in the given order:/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf 


原创粉丝点击