Note, for updating an existing database, you should run the following: UPDATE mysql.user SET host='%'; FLUSH PRIVILEGES;