Information on the internet about remotely to the MySQL database is quite confusing. All over the place you may find information about
bind-address configuraiton in the
my.ini file. Even I wrote about it recentlyHowever, after setting
bind-address option it will no longer be possible to connect to MySQL database from localhost.
The guys from freenode IRC server #mysql channel clarified the situation:
remove bind-address= and skip-networking from my.cnf and grant permission to the external 'user'@'host' and remove any firewall rules blocking port 3306 and make sure no overrides on the mysqld commandline. See http://hashmysql.org/index.php?title=Remote_Clients_Cannot_Connect
bind-address is exclusive, not inclusive, it limits mysql server to what interface to listen on for incoming connections
You may experience strange problems (at least they seem to be at the first glance) with networking on your machine which is running in VMware Player.
For instance, your virtual machine has
By default, you can access MySQL only from the localhost. In order to access it from the network, you have to modify your
- Remove or comment out
skip-networkingoption (by default in latest versions of MySQL this version is not present in configuration file)
- add (or modify)
bind-addresswith ip of your machine on which MySQL is running