Then you are spectacularly wrong. Setting the proper value to your > PATH variable is a basic task for anyone who intends to program.
> Why keep asking if you're not going to take any advice? :-) I can only take the right advise... I took Jeff's advise to change the database.yml file. What OS are you using? Under windows, under control panel, there's no path variable setting. If there is, please tell me where? I'm a web developer and not a programmer ;) As you've already been told, config/database.yml is the > file with your database settings. I have already changed my database.yml file as follows, as per Jeff's advise: # MySQL. Versions 4.1 and 5.0 are recommended. # # Install the MySQL driver: # gem install mysql # On Mac OS X: # sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql # On Mac OS X Leopard: # sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql- config=/usr/local/mysql/bin/mysql_config # This sets the ARCHFLAGS environment variable to your native architecture # On Windows: # gem install mysql # Choose the win32 build. # Install MySQL and put its /bin directory on your path. # # And be sure to use new-style password hashing: # http://dev.mysql.com/doc/refman/5.0/en/old-client.html development: adapter: mysql encoding: utf8 reconnect: false database: music_library_development pool: 5 username: root password: host: localhost # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: mysql encoding: utf8 reconnect: false database: music_library_test pool: 5 username: root password: host: localhost production: adapter: mysql encoding: utf8 reconnect: false database: music_library_production pool: 5 username: root password: host: localhost Please some of us a new to Ruby, so you have to speak in laymen's terms so we can follow you. All I need to know is: how to "tell" ruby to use mysql? On Aug 7, 9:27 pm, Hassan Schroeder <[email protected]> wrote: > On Fri, Aug 7, 2009 at 12:14 PM, WalT<[email protected]> wrote: > > That comment is > >> >> telling you to add that path to the environment variable called PATH > > >> > I don't understand what you are saying here. Sorry I'm new to RoR. > > >> This has nothing to do with Rails. It's a basic Windows (and Un*x) > >> concept. Go learn about it; this is elementary and you need to know. > > > I disagree - this is not a windows concept. It's a ruby concept. > > Then you are spectacularly wrong. Setting the proper value to your > PATH variable is a basic task for anyone who intends to program. > > > someone else please help me to use mysql with ruby? I can see that > > under directory G:\Rails\rails_apps\music_library\config there's a > > file called environment.rb and its contents are: > > irrelevant. As you've already been told, config/database.yml is the > file with your database settings. > > Why keep asking if you're not going to take any advice? :-) > > -- > Hassan Schroeder ------------------------ [email protected] > twitter: @hassan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

