<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,6 +19,8 @@ RELEASE_NAME  = &quot;REL #{PKG_VERSION}&quot;
 RUBY_FORGE_PROJECT = &quot;activerecord&quot;
 RUBY_FORGE_USER    = &quot;webster132&quot;
 
+MYSQL_DB_USER = 'rails'
+
 PKG_FILES = FileList[
     &quot;lib/**/*&quot;, &quot;test/**/*&quot;, &quot;examples/**/*&quot;, &quot;doc/**/*&quot;, &quot;[A-Z]*&quot;, &quot;install.rb&quot;, &quot;Rakefile&quot;
 ].exclude(/\bCVS\b|~$/)
@@ -46,16 +48,14 @@ end
 namespace :mysql do
   desc 'Build the MySQL test databases'
   task :build_databases do
-    %x( mysqladmin  create activerecord_unittest )
-    %x( mysqladmin  create activerecord_unittest2 )
-    %x( mysql -e &quot;grant all on activerecord_unittest.* to rails@localhost&quot; )
-    %x( mysql -e &quot;grant all on activerecord_unittest2.* to rails@localhost&quot; )
+    %x( mysqladmin --user=#{MYSQL_DB_USER} create activerecord_unittest )
+    %x( mysqladmin --user=#{MYSQL_DB_USER} create activerecord_unittest2 )
   end
 
   desc 'Drop the MySQL test databases'
   task :drop_databases do
-    %x( mysqladmin -f drop activerecord_unittest )
-    %x( mysqladmin -f drop activerecord_unittest2 )
+    %x( mysqladmin --user=#{MYSQL_DB_USER} -f drop activerecord_unittest )
+    %x( mysqladmin --user=#{MYSQL_DB_USER} -f drop activerecord_unittest2 )
   end
 
   desc 'Rebuild the MySQL test databases'</diff>
      <filename>activerecord/Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6ef4239f8bd4d4ea7a5bc7f2cdaf14f87e6eb9a1</id>
    </parent>
  </parents>
  <author>
    <name>Steven Soroka</name>
    <email>ssoroka78@gmail.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/f386676661068573d2b58f6bd7a7245b4ff5ce5d</url>
  <id>f386676661068573d2b58f6bd7a7245b4ff5ce5d</id>
  <committed-date>2008-04-20T21:42:15-07:00</committed-date>
  <authored-date>2008-04-20T21:40:16-07:00</authored-date>
  <message>Use the rails user when creating and dropping the database rather than falling back to the currently logged in user who may or may not have CREATE / DROP privileges and no password.

Closes #11564 (trac)</message>
  <tree>ae34971ad5ea09f544664edc2e79f6918ddfc0d4</tree>
  <committer>
    <name>Michael Koziarski</name>
    <email>michael@koziarski.com</email>
  </committer>
</commit>
