续集中的连接错误

时间:2016-02-23 13:26:35

标签: ruby sequel

我正在尝试使用Sequel连接到MySQL上的数据库:

require "bundler"
Bundler.require

DB = Sequel.connect ({
    adapter: "mysql2",
    host: "localhost",
    port: "3306",
    user: "root@localhost",
    password: "1234",
    database: "sequel_demo"
}) 

我收到此错误:

C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mysql2-0.4.2-x64-mingw32/lib/mysql2/clien
t.rb:87:in `connect': Mysql2::Error: Access denied for user 'A2'@'localhost' (using password: YES) (Sequel::DatabaseConnectionError)

有什么问题?

0 个答案:

没有答案