The remote win connection of Ubuntu MySQL does not solve the problem of MySQL on Ubuntu10.04, and the root @ ubuntu :~ # Sudo apt-get install mysql after installing mysql-server www.2cto.com start mysql root @ ubuntu :~ #/Etc/init. d/mysql start can be locally connected to the database. Root @ ubuntu :~ # Mysql-uroot-p sets the remote access permission: mysql> grant all PRIVILEGES on. to admin @ '%' identified by '000000'; Query OK, 0 rows affected (123456 sec) mysql> use information_schema mysql> select * from user_privileges; the following results are displayed: 'admin' @ '%' indicates that mysql has authorized remote connection. Accessing the Ubuntu database in windows cannot be connected, but apache installed on Ubuntu can be accessed. You cannot access port 3306 after using iptalbes. Root @ ubuntu :~ # Iptables-a input-p tcp-dport 3306-j ACCEPT view Mysql network connection on Ubuntu: root @ ubuntu :~ # Netstat-an | grep 3306 tcp 0 0 127.0.0.1: 3306 0.0.0.0: * The local port of LISTEN is also listening to root @ ubuntu :~ # Ufw status Firewall not loaded: The local Firewall is not enabled. Then, you can find a solution on the Internet: View/etc/mysql/my. after cnf finds bind-address, it finds that 127.0.0.1 (bind-address = 127.0.0.1) is configured. Change it to bind-address = 192.168.0.xxx (local ip address), and then check that port 3306 is enabled, OK. The connection is normal.