Reputation: 1
I'm trying to get my database to connect and interact properly with my SQL Database. When I type...
rake db:schema:dump
I get........
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
I edited my database.yml to now read...
# 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
Any idea whats going on here? I have both the mySQL and mySQL2 gem installed, not sure if that helps.
Thanks so much! Greg Pfeffer
Upvotes: 0
Views: 503
Reputation: 399
Try using mysql2 as adapter. It seems you are using the mysql2 gem.
adapter: mysql2
Upvotes: 1