Thanks for your reply. I apologize for not giving me more detail; I wasn't sure what was relevant.
The reason I'm trying to use phpMyAdmin in the first place is because the LOAD DATA fails when I'm executing
rake db:migrate RAILS_ENV=production
to create my app's database. The rake process fails with the exact same "access denied" error as phpMyAdmin. I thought maybe something was fishy about the permissions of the rake process, even though it's running as [my_user] from the shell.
Here's the contents of the migration that fails:
class CreateGeoData < ActiveRecord::Migration
def self.up
create_table :geo_data do |t|
t.column :zip_code, :string
t.column :latitude, :float
t.column :longitude, :float
t.column :city, :string
t.column :state, :string
t.column :county, :string
t.column :type, :string
end
add_index "geo_data", ["zip_code"], :name => "zip_code_optimization"
csv_file = "#{RAILS_ROOT}/db/migrate/geo_data.csv"
fields = '(zip_code, latitude, longitude, city, state, county)'
execute "LOAD DATA INFILE '#{csv_file}' INTO TABLE geo_data FIELDS " +
"TERMINATED BY ',' OPTIONALLY ENCLOSED BY \"\"\"\" " +
"LINES TERMINATED BY '\n' " + fields
end
def self.down
drop_table :geo_data
end
end
I hand-entered the LOAD DATA data with the appropriate substitutions into phpMyAdmin's SQL tab and got the same error as the rake process.
In light of this further information, do you have further suggestions?
Thanks!