我正在尝试将我在 Mac 上运行的 rails 应用程序连接到在我的 Windows 7 机器上运行的 MySQL。他们都在我家的同一个网络上,我可以从我的 Mac ping 我的 Windows 机器。
试图执行rake db:create
我得到这个错误:
Host 'MACMINI-459400' is not allowed to connect to this MySQL server
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>false, "database"=>"MySite_development", "pool"=>5, "username"=>"root", "password"=>"password", "host"=>"10.0.0.33"}, charset: utf8, collation: utf8_unicode_ci
(if you set the charset manually, make sure you have a matching collation)
这是我目前的database.yml
内容
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: MySite_development
pool: 5
username: root
password: password
host: 10.0.0.33
我试过关闭 Windows 防火墙但没有用。我怎样才能让这两个连接?