aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAce Suares <ace@suares.an>2012-08-03 21:36:10 -0400
committerAce Suares <ace@suares.an>2012-08-03 21:36:10 -0400
commit1a8e000339067a128bc1b941d0612eae5f484b5d (patch)
tree1b9353e0947c3c78f5a4017d59071bb37ed1c806 /guides
parenta2a73c5abbad8f2c58df90695b03ddf1363b949e (diff)
downloadrails-1a8e000339067a128bc1b941d0612eae5f484b5d.tar.gz
rails-1a8e000339067a128bc1b941d0612eae5f484b5d.tar.bz2
rails-1a8e000339067a128bc1b941d0612eae5f484b5d.zip
added info about an error that mysql gives when rails@localhost has a password; removed reference to activerecord/test/connections, which isn't there anymore
Diffstat (limited to 'guides')
-rw-r--r--guides/source/contributing_to_ruby_on_rails.textile4
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/contributing_to_ruby_on_rails.textile b/guides/source/contributing_to_ruby_on_rails.textile
index 35ec988c5e..9ae627c237 100644
--- a/guides/source/contributing_to_ruby_on_rails.textile
+++ b/guides/source/contributing_to_ruby_on_rails.textile
@@ -202,6 +202,8 @@ $ cd activerecord
$ bundle exec rake mysql:build_databases
</shell>
+NOTE: If you get an error like "Access denied for user 'rails'@'localhost' (using password: YES)" then you most likely have a rails user in the mysql database, that uses a password, or you have a password specified in the my.cnf file of mysql.
+
PostgreSQL's authentication works differently. A simple way to set up the development environment for example is to run with your development account
<shell>
@@ -219,7 +221,7 @@ NOTE: Using the rake task to create the test databases ensures they have the cor
NOTE: You'll see the following warning (or localized warning) during activating HStore extension in PostgreSQL 9.1.x or earlier: "WARNING: => is deprecated as an operator".
-If you’re using another database, check the files under +activerecord/test/connections+ for default connection information. You can edit these files to provide different credentials on your machine if you must, but obviously you should not push any such changes back to Rails.
+If you’re using another database, check the file +activerecord/test/config.yml+ or +activerecord/test/config.example.yml+ for default connection information. You can edit +activerecord/test/config.yml+ to provide different credentials on your machine if you must, but obviously you should not push any such changes back to Rails.
You can now run the tests as you did for +sqlite3+. The tasks are respectively