我尝试通过rails console连接sql-server
。
ActiveRecord :: Base.establish_connection(:adapter =>" sqlserver",:encoding =>" utf8",:host =>" 10.10.10.62 ",:database =>" cosec",:username =>" sa",:password =>" ****" )
但我收到了错误..
TinyTds ::错误:用户' sa'
的登录faild
答案 0 :(得分:0)
它应该是这样的: -
FLUSH PRIVILEGES;
或
development:
# <<: *default
adapter: sqlserver
mode: dblib
host: 10.10.10.62
port: 1433
database: cosec
username: sa
password: *****
timeout: 50000000