Jump to content

Recommended Posts

Posted

I am trying to import a .csv file into an new MySql table within an existing DB using phpMyAdmin. I created the table using phpMyAdmin.

 

I have performed this task a few times in the past successfully, but for some reason I can't on this new table. Here is the error I'm receiving:

 

#1045 - Access denied for user: 'harvest@localhost' (Using password: YES)

 

Here is the test file I'm trying to import:

 

1,12/15/2005,morrison,crosby,godwin,ariel,matt

 

 

I'm confused as I am logged in as Admin for the site, I can insert info using phpMyAdmin, but it seems that phpMyAdmin is not recognizing me when I try to import a text file.

 

Anybody have an idea on what I am missing here? Maybe I need another cup of coffee this morning.......

Posted
Welcome to the forums!  :)

 

Have you added the user to the database?

 

Thanks! I'm glad to be here. :D

 

Well,.....I believe the user has been added to the DB. What I'm actually trying to do is add a table to an existing DB. Through phpMyAdmin, I created the table and the fields. I would think that this action would not work if I didn't have the correct rights. I can add data if I use phpMyAdmin, but I can't add data when I import a text file through phpMyAdmin.

 

I've done this type of import several times previously with this DB. I'm a little confused on why I can't import this time. :)

 

Any advice would sure be appreciated!

Posted

Welcome to the family, hbcrosby! :)

 

Are you sure you're using the correct database name and username? The database name should be in the form of "yourcpanelusername_databasename" and yourusername in the form of "yourcpanelusername_database_username".

 

That's a common mistake when people are not used to this kind of nomenclature.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...