Note that there are some explanatory texts on larger screens.

plurals
  1. PORuby on rails $ mysql configuration
    primarykey
    data
    text
    <p>I want to configure mysql instead of Sqlite3. I had already configured the <code>database.yml</code> file:</p> <pre><code>development: adapter: mysql database: test username:false password:neha host :localhost port:3306 </code></pre> <p>and also installed the mysql gem using <code>gem install mysql</code></p> <p>still i stuck out in error...please help me out :\rails\TestApp1>ruby script/server</p> <blockquote> <p>Booting WEBrick Rails 2.3.11 application starting on <a href="http://0.0.0.0:3000" rel="nofollow">http://0.0.0.0:3000</a> :/Ruby192/lib/ruby/1.9.1/syck.rb:135:in <code>load': syntax error on line 13, col 0:</code>test:' (ArgumentError) from C:/Ruby192/lib/ruby/1.9.1/syck.rb:135:in <code>load' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.11/lib/initializer.rb:926:in</code>database_configuration' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.11/lib/initializer.rb:437:in <code>initialize_database' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.11/lib/initializer.rb:141:in</code>process' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.11/lib/initializer.rb:113:in <code>run' from C:/rails/TestApp1/config/environment.rb:9:in</code>' from :29:in <code>require' from &lt;internal:lib/rubygems/custom_require&gt;:29:in</code>require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in <code>block in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in</code>new_constants_in' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in <code>require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.11/lib/commands/server.rb:84:in</code>' from :29:in <code>require' from &lt;internal:lib/rubygems/custom_require&gt;:29:in</code>require' from script/server:3:in `' i got this error</p> </blockquote> <p>@d11wtq:<br> here is my yml file for mysql configuration:</p> <p>ActiveRecord::Base.establish_connection(<br> :adapter => "mysql",<br> :host => "localhost",<br> :username => "root",<br> :password => "neha",<br> :database => "ruby"<br> )<br> &amp; where i have to put<br> require 'mysql' </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload