This should be fine. You don't need to specify the socket. Are you
connecting on a particular port? If you are, you need to specify the
port if it's different than the normal 3306 I believe for mysql...
--
Posted via http://www.ruby-forum.com/.
Yep, db:create works for development only while db:create:all works with
all specified environments listed in your database.yml file.
You don't need the socket and you don't need the root@ubi line either...
irb
require 'mysql'
=> 'true'
?
That's a good thing - means your gem for mysql is fine. I would try a
few other things - it really sounds like it's on the server side of
mysql..
What version of mysql are you running?
I would create the library_development DB from scratch and try to
migrate your beginning data using db:migrate. You will find out right
away if there is a communication error. It could be that there's an
authentication error or a trouble with communication to the server.
I've seen this exact error when I tried to use the newest version of
mysql and so I had to go back to an older version. If this gives you a
lot of issues, you could try going to sqlite3 or postgresql..