mysql 环境变量写入my.cnf,为什么我在mysql的my.cnf下找不到bind-address?

1.描述:

我在ubuntu16.04LTS上按照这个教程http://os.51cto.com/art/20130...装了LAMP,然而在配置MySQL的时候想确认在MySQL的my.cnf文件中是否有正确的绑定地址时出现了以下错误:

当我输入:cat /etc/mysql/my.cnf | grep bind-address时

出现了:

sylvia@sylvia-Aspire-E5-572G:~$ cat /etc/mysql/my.cnf | grep bind-address

sylvia@sylvia-Aspire-E5-572G:~$

(并没有找到bind-address的错误)

然后我打开/etc/mysql/my.cnf查看发现:

#

# The MySQL database server configuration file.

#

# You can copy this to one of:

# - "/etc/mysql/my.cnf" to set global options,

# - "~/.my.cnf" to set user-specific options.

#

# One can use all long options that the program supports.

# Run program with --help to get a list of available options and with

# --print-defaults to see which it would actually understand and use.

#

# For explanations see

# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

#

# * IMPORTANT: Additional settings that can override those from this file!

# The files must end with '.cnf', otherwise they'll be ignored.

#

!includedir /etc/mysql/conf.d/

!includedir /etc/mysql/mysql.conf.d/

2.问题:

是因为我没有配置my.cnf文件吗?

(但是那个教程里并没有要求配置啊)

如果不是,那是为什么会这样?

如果是,那我应该怎样配置?(网上的配置教程看得我一脸蒙逼)

各位dalao。。原谅我问这么小白菜的问题。。。

如果能帮我解决,我将万分感谢!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值