Ubuntu Lamp从外部访问mysql

我安装了这个LAMP: https : //github.com/teddysun/lamp

一切都完美设置,我仍然需要从外部访问MySQL,我期待在MySQLconfiguration文件中find通常的bind-address

 [mysqld] bind-address = 127.0.0.1 

在查看/etc/my.cnf里面我找不到任何bind-addressvariables。

我也检查了/usr/etc/my.cnf ~/.my.cnf但是都不存在的文件。

编辑

这是完整的configuration:

 [mysql] # CLIENT # port = 3306 socket = /tmp/mysql.sock [mysqld] # GENERAL # port = 3306 user = mysql default-storage-engine = InnoDB socket = /tmp/mysql.sock pid-file = /usr/local/mysql/data/mysql.pid skip-name-resolve skip-external-locking # MyISAM # key-buffer-size = 32M # INNODB # innodb-log-files-in-group = 2 innodb-log-file-size = 64M innodb-flush-log-at-trx-commit = 2 innodb-file-per-table = 1 innodb-buffer-pool-size = 256M # CACHES AND LIMITS # tmp-table-size = 32M max-heap-table-size = 32M query-cache-type = 0 query-cache-size = 0 max-connections = 256 thread-cache-size = 50 open-files-limit = 1024 table-open-cache = 400 # SAFETY # max-allowed-packet = 16M max-connect-errors = 1000000 # DATA STORAGE # datadir = /usr/local/mysql/data # LOGGING # log-error = /usr/local/mysql/data/mysql-error.log 

这个LAMP脚本有特定/不同的设置吗?

当没有明确定义时, bind-address默认为*

如果地址是* ,则服务器接受所有服务器主机IPv6和IPv4接口上的TCP / IP连接(如果服务器主机支持IPv6),否则接受所有IPv4地址上的TCP / IP连接。 使用此地址允许所有服务器接口上的IPv4和IPv6连接。 该值是默认值。