uploading .txt file via phpmyadmin to Mysql

Reply

Join Date: Jul 2004
Posts: 4
Reputation: bufhal is an unknown quantity at this point 
Solved Threads: 0
bufhal bufhal is offline Offline
Newbie Poster

uploading .txt file via phpmyadmin to Mysql

 
0
  #1
Jul 6th, 2004
I am having difficulty uploading text files to mysql database through phpmyadmin. Here is the feedback from the hosting company:
The problem is in the inappropriate input file format (the txt file) - there are spaces before and after the comas.
To solve the problem - strip the spaces arround the comas.
Can I do this within the webpage code?

Any feedback is appreciated..
Reply With Quote Quick reply to this message  
Join Date: May 2002
Posts: 155
Reputation: Monte will become famous soon enough Monte will become famous soon enough 
Solved Threads: 3
Monte's Avatar
Monte Monte is offline Offline
Junior Poster

Re: uploading .txt file via phpmyadmin to Mysql

 
0
  #2
Jul 10th, 2004
txt file.. why would you use that, why not a .sql?
Microsoft Certified Desktop Support Technician
DTS Medical Webmaster + Network Administrator
Extended64.com
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 4
Reputation: bufhal is an unknown quantity at this point 
Solved Threads: 0
bufhal bufhal is offline Offline
Newbie Poster

Re: uploading .txt file via phpmyadmin to Mysql

 
0
  #3
Jul 13th, 2004
Originally Posted by Monte
txt file.. why would you use that, why not a .sql?
I am new to this-I am not sure how to do that. I will receive multiple records in Excel format and need to upload through phpmyadmin to mysql db :rolleyes:
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 6
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: uploading .txt file via phpmyadmin to Mysql

 
0
  #4
Jul 13th, 2004
Keep in mind that phpMyAdmin, or any web application (like forums) that imports a file with SQL statements, usually craps out if it's bigger than 1 meg. You'll have to either split the file into smaller files or run a mysql command through the console to load up the big file.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 4
Reputation: bufhal is an unknown quantity at this point 
Solved Threads: 0
bufhal bufhal is offline Offline
Newbie Poster

Re: uploading .txt file via phpmyadmin to Mysql

 
0
  #5
Jul 16th, 2004
Originally Posted by inscissor
Keep in mind that phpMyAdmin, or any web application (like forums) that imports a file with SQL statements, usually craps out if it's bigger than 1 meg. You'll have to either split the file into smaller files or run a mysql command through the console to load up the big file.
Thanks for the reply. I will end up with a total of 5-600 records. To avoid this inconsuistancy with phpmyadmin, I will just "replace" the files in the db with a master, as I receive them.
Does that seem like it will work?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC