Cho phép máy khác truy cập và database mysql trên ubuntu

To allow remote access to MySQL, you have to comment out bind-address (you did) and skip-networking in the configuration file.

Next, you have to make sure the user is allowed remote access. Check your user with this:

SELECT User, Host FROM mysql.user;

If your user here has '127.0.0.1' or 'localhost' listed as host, you don't have remote access.

Change this with:


UPDATE mysql.user SET HOST='%' WHERE User='__here_your_username'; 

Flush privileges:

FLUSH PRIVILEGES;

The '%' is a wildcard for 'all hosts'.