Ask A Question


You’re not receiving notifications from this thread.

Setup Ubuntu 15.04 Vivid Vervet Discussion

Chris Oliver asked in General

Works great, I only had a problem with the mysql2 gem. I fixed that by doing a downgrade to version 0.3.18.

gem 'mysql2', '~> 0.3.18'


had the same issue, thanks for the solution! :D

Md. Mynoddin Md. Mynoddin

"Access denied for user 'root'@'localhost' (using password: NO)Please provide the root password for your MySQL installation" - getting this message when run "rake db:create" I have set the password in databases.yml password to my root password file but show this problem. Thanks in advance. (Note: I am newbie in CLI environment)

Eduardo Beltran Eduardo Beltran

I just googled and found this:

Since it is part of the repositories it is no longer required to add the ppa. I am using Ubuntu 15.04


I'm getting this error on

$ rake db:create

Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).

Gem::LoadError: can't activate mysql2 (~> 0.3.13), already activated mysql2-0.4.2. Make sure all dependencies are added to Gemfile.

Tasks: TOP => db:create

(See full trace by running task with --trace)


Fixed it by adding

gem 'mysql2', '~> 0.3.18'

instead of

gem 'mysql2'

in Gemfile of the app.

## Great post Thanks.


Hi thevaliantx, you have to modify the Gemfile with that version for mysql2 gem.Then run "bundle install".


That's nice! I'm trying to be a full stack web developer, so HTML and CSS is mandatory, besides much more things to learn. But I'm not following the Ruby path, I was just trying to know how it works, but instead I'm really focused in Node.js. I'm not a professional programmer too, but maybe someday.


A JavaScript book that I always recommend is: "Eloquent JavaScript - second edition". It's divided in three parts, the last one is about Node.js. I thinks i'ts a good book for new comers to the language. You can read it online for free:


No problem mate, always glad to help.

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 84,256+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.