Hello all, I’ve been trying to get ruby on rails to work with my local
install of mysql(its with wamp). Windows XP, Ruby 1.8.6, rails 2.3.5,
rubygems 1.3.5, mysql 5.2 something I believe.
I have ruby installed in:
C:\Ruby
and my mysql is installed in:
C:\wamp\bin\mysql\mysql5.1.30\bin
I’ve attempted to change my database.yml file to include the port 80,
and port 3036, the socket path, I’ve checked for skip-networking in my
my.ini file, my mysql bin is included in my path, I have the mysql gem
installed.
Everytime I try to run: rake db:migrate I get this error, I’d
appreciate any help I can get, thank you:
-------------- Error -------------
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]
C:\Ruby\projects\music_library>rake db:migrate
(in C:/Ruby/projects/music_library)
rake aborted!
Mysql::Error: query: not connected: CREATE TABLE schema_migrations
(version
varchar(255) NOT NULL) ENGINE=InnoDB
(See full trace by running task with --trace)
C:/Ruby/bin/rake:19: [BUG] Segmentation fault
ruby 1.8.6 (2009-08-04) [i386-mingw32]
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application’s support team for more information.
-------------- Trace results ----------------
C:\Ruby\projects\music_library>rake --trace
(in C:/Ruby/projects/music_library)
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/output_safety.rb:36:
[BUG] Segmentation fault
ruby 1.8.6 (2009-08-04) [i386-mingw32]
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application’s support team for more information.
----------------- database.yml --------------
development:
adapter: mysql
encoding: utf8
reconnect: false
database: music_library_development
pool: 5
port: 3306
username: root
password: mypassword
host: localhost