Rails development - Can't connect to MySQL server on 'localhost' (10061)

前端 未结 7 743
轻奢々
轻奢々 2020-12-30 04:39

I\'m a Rails developer newbie using MySQL as the database. I can successfully connect to MySQL using the command:

MySQL -u macDaddy -p

at t

7条回答
  •  温柔的废话
    2020-12-30 04:58

    Change the value of host in the database.yml to be "127.0.0.1" will work. Or,you can modify your pc's hosts file, add an item as "localhost 127.0.0.1".

提交回复
热议问题