我正在尝试让我的数据库与我的 SQL 数据库正确连接和交互。当我键入...
耙分贝:模式:转储
我明白了…………
simple_cms gregpfeffer$ rake db:schema:dump
dyld: lazy symbol binding failed: Symbol not found: _mysql_get_client_info
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
Expected in: flat namespace
dyld: Symbol not found: _mysql_get_client_info
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
Expected in: flat namespace
Trace/BPT trap: 5
我编辑了我的 database.yml 现在阅读...
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql
encoding: utf8
reconnect: false
database: simple_cms_development
pool: 5
username: simple_cms
password: XXXXXXXXXX
socket: /tmp/mysql.sock
知道这里发生了什么吗?我安装了 mySQL 和 mySQL2 gem,不确定是否有帮助。
非常感谢!格雷格·普费弗