User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 429,965 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,576 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 6846 | Replies: 4
Reply
Join Date: Jul 2004
Posts: 4
Reputation: bufhal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bufhal bufhal is offline Offline
Newbie Poster

uploading .txt file via phpmyadmin to Mysql

  #1  
Jul 5th, 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..
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2002
Location: Maryland
Posts: 155
Reputation: Monte will become famous soon enough Monte will become famous soon enough 
Rep Power: 8
Solved Threads: 3
Monte's Avatar
Monte Monte is offline Offline
Junior Poster

Re: uploading .txt file via phpmyadmin to Mysql

  #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  
Join Date: Jul 2004
Posts: 4
Reputation: bufhal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bufhal bufhal is offline Offline
Newbie Poster

Re: uploading .txt file via phpmyadmin to Mysql

  #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  
Join Date: Feb 2002
Location: Long Island, NY
Posts: 1,134
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Rep Power: 12
Solved Threads: 5
Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: uploading .txt file via phpmyadmin to Mysql

  #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.
_.:: my websites ::._
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
Reply With Quote  
Join Date: Jul 2004
Posts: 4
Reputation: bufhal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bufhal bufhal is offline Offline
Newbie Poster

Re: uploading .txt file via phpmyadmin to Mysql

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 11:42 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC