我在ubuntu服务器上安装了mysql,但是我想远程连接mysql workbench。 我只看到其他答案,但我的/etc/mysql/my.cnf就是:
GNU nano 2.5.3 File: /etc/mysql/my.cnf Modified
# --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/
我只是将权限授予' root' @'%'
这是netstat:
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 16431 / mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1471 / sshd
tcp6 0 0 ::: 80 ::: * LISTEN 15874 / apache2
tcp6 0 0 ::: 22 ::: * LISTEN 1471 / sshd
我该怎么办?任何错误配置的想法?