What is the socket declaration for, in Ruby on Rails database.yml?

后端 未结 4 929
耶瑟儿~
耶瑟儿~ 2020-12-31 09:38

What\'s the use of socket declaration in config/database.yml ?

Example code:

staging:
  adapter: mysql
  encoding: utf8
  database: (database)
  pool         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-31 10:14

    I wasted a whole afternoon because of a socket specified in my database.yml - the database specifications for the test environment simply weren't parsed. So if you have a problem with your test-database not being accessible although everything seems to be fine with it, try removing the socket specification.

提交回复
热议问题