gpt4 book ai didi

mysql - configuration.rb :14:in `instance_eval' : (eval):16: syntax error, 意外的输入结束,期待

转载 作者:太空宇宙 更新时间:2023-11-03 11:42:35 24 4
gpt4 key购买 nike

在 centOS 上 mongify 数据库配置。

在终端 mongify check database.config 中运行命令时,出现以下错误。

/home/hcdc/.gem/ruby/gems/mongify-1.3.1/lib/mongify/configuration.rb:14:in `instance_eval': (eval):16: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
from /home/hcdc/.gem/ruby/gems/mongify-1.3.1/lib/mongify/configuration.rb:14:in `parse'
from /home/hcdc/.gem/ruby/gems/mongify-1.3.1/lib/mongify/cli/options.rb:78:in `config_file'
from /home/hcdc/.gem/ruby/gems/mongify-1.3.1/lib/mongify/cli/options.rb:58:in `parse'
from /home/hcdc/.gem/ruby/gems/mongify-1.3.1/lib/mongify/cli/application.rb:27:in `execute!'
from /home/hcdc/.gem/ruby/gems/mongify-1.3.1/bin/mongify:15:in `<top (required)>'
from /usr/local/bin/mongify:23:in `load'
from /usr/local/bin/mongify:23:in `<main>'

我的database.config文件

sql_connection do
adapter "mysql"
host "10.208.35.134"
username "root"
password "hcdc123"
database "test"
batch_size 10000
# This is defaulted to 10000 but in case you want to make that smaller (on lower RAM machines) end

mongodb_connection do
host "localhost"
database "test"
end

最佳答案

sql_connection do
adapter "mysql"
host "10.208.35.134"
username "root"
password "hcdc123"
database "test"
batch_size 10000
# This is defaulted to 10000 but in case you want to make that smaller (on lower RAM machines)
end # <<< this must be in a new line

mongodb_connection do
host "localhost"
database "test"
end

关于mysql - configuration.rb :14:in `instance_eval' : (eval):16: syntax error, 意外的输入结束,期待,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40782056/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com