rake aborted: no such file to load mysql

Programmers who work mostly on windows have seen this kind of errors many times.. as a windows programmer I have been through many sites and collect d relevant data, now I am showing it to you..

The errors which might come to you something like this:no such file to load mysqlrake aborted: no such file to load mysqlThe bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysqlCould not find RubyGem rake-compiler (~> 0.5)

To solve such problems follow these steps:
Step 1. Update rubygems to the latest version(like I upgraded it to 1.3.5).
Step 2: install rake-compiler(by gem install rake-compiler).
Step 3: if already installed hoe gem update it(gem update hoe) or install a fresh one.
Step 4: Download libMySQL.dll from here and copy it into C:/ruby/bin or wherever your ruby is installed, but make sure it should be in bin directory.
Step 5: Stop the mysql service, from Control Panel -> Administrative tools -> services -> mysql, and then restart it.

That’s it. You are done, after all these steps you can tryrake db:migrate
Suppose if that doesn’t work then after 4th step, stop the mysql service and restart your system.

but still not working when i put gem install sqlite3 recive message says:
ruby.exe:no such file to load –ubygems

i tried in my other computer also recive diffrent message says:
ERROR: could not find gem sqlite3 locally or in a repository.

also i want to aske you about these steps cuz i have my sql in one of my computer:
development:
adapter: mysql
encoding: utf8
reconnect: false
database: your_database_name
pool: 5
username: root
password: your_mysql_pwd

do not know where i supose to go to put these
iam beginer in ruby in rails

I suggest you to download and read some pdf’s on ruby on rails.. your approach is wrong.. you’ve started programming directly which is wrong.. there are online tutorials, books which has some demo rails application.. google it and try it, It will guide you through all the steps…

Hey I have noticed that you have given explanation for windows programmer. I am wondering whether I should use the same solution on ubuntu or there is another solution because I am facing the same problem when I issue command rake db:migrate.