我试着跑的时候遇到了这个错误 rake db:create
:
c:\ror\dev\AWI>rake db:create
C:/ror/Ruby24-x64/lib/ruby/gems/2.4.0/gems/mysql2-0.4.10-x64-mingw32/lib/mysql2/2.4/mysql2.so: warning: constant ::TimeoutError is deprecated
wrong number of arguments (given 7, expected 8)
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "pool"=>5, "timeout"=>5000, "port"=>3000, "host"=>"localhost", "username"=>"root", "password"=>"newrootpassword", "database"=>"awi_development"}
rake aborted!
ArgumentError: wrong number of arguments (given 7, expected 8)
Tasks: TOP => db:create
(See full trace by running task with --trace)
它说我不能创建一个数据库,实际上我有9个参数。为什么它说我给了7,为什么它期望8?
我正在使用
Ruby 2.4.2
Rails 5.1.4
MySQL 8.0.11
OS: Windows 10
暂无答案!
目前还没有任何答案,快来回答吧!