MySQL exporting and importing tables - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Databases - MySQL, SQL, Oracle, Access and others

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-03-2008, 09:25 PM   #1 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 12
Default MySQL exporting and importing tables

Hi

Has anyone imported a MySQL table into a MySQL databse without converting it to a text file?

Is it possible?

Greatly appreciate if someone has experience to share...
rockarolla is offline   Reply With Quote
Sponsored Links
Old 07-11-2008, 10:23 AM   #2 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 15
Default Re: MySQL exporting and importing tables

i dont understand what you mean by not using text file. Usually table is imported by running a set of SQL statement with INSERT statement containing data. are you talking about the data files holding the data? the binary file?
shaza4061 is offline   Reply With Quote
Old 07-11-2008, 10:45 AM   #3 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 12
Default Re: MySQL exporting and importing tables

Yes the .frm file ... but I would like to concatenate an existing table ...


The other hitch I stumbled in is to use phpmyadmin in order to import a table - but it only imports one querry despite that the table was exported using the same delimiters and terminatins...

Anyway at this moment I'm running all the scripts producing data on the server - untill they cut my CPU usage - but I don't see how to restore a lost table from the backups...
rockarolla is offline   Reply With Quote
Old 07-13-2008, 12:28 AM   #4 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 13
Default Re: MySQL exporting and importing tables

You must be talking about mysql dump file. Mysql dump file is a text file with set of sql commands. If there is a error when importing dump check the error message to get error line no and open text editor and edit sql command accordingly. Its a easy thing.

_______________
I Search Click Info Web Search Engine
sujith.it is offline   Reply With Quote
Old 07-13-2008, 12:31 AM   #5 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 15
Default Re: MySQL exporting and importing tables

Quote:
Originally Posted by rockarolla
Yes the .frm file ... but I would like to concatenate an existing table ...
Don't understand.. what do you mean by concatenate an existing table?
shaza4061 is offline   Reply With Quote
Old 07-13-2008, 12:57 AM   #6 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 12
Default Re: MySQL exporting and importing tables

Concatenate an existing table merely means that I want to add new rows to an existing table. The way I preferred to do this was to implemet my own python code via mysql statement

LOAD DATA INFILE ...

this however is impossible unless you have a host that permits you to set file_privs to Y...


Now that that can't be done by scripting I resorted to what phpmyadmin offers - there you can import table from a text file - but it only imports my forst row - I don't have any mysql statements in it nor anything like coding ... only my data - formatted accordin to the import settings of your phpmyadmin panel ... the matter now is that it only imports the first row from my text file - that is it executes only one querry.
rockarolla is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 05:26 AM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting