WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-02-2008, 07:34 PM
J_Paul's Avatar
J_Paul J_Paul is offline
WebProWorld Pro
 

Join Date: Jul 2003
Location: Huntington Beach, CA
Posts: 240
J_Paul RepRank 0
Default Need help importing into MySQL

Hi,

I'm having trouble importing into a database. The system we are updating only allows a 2m file to be imported.

I've pulled out the single table in the database and exported it, but it's 2.5 mgs. I've tried splitting it apart, but have had no luck.

Is there a way around this? I've also tried splitting the SQL file into two parts, import them as different table names, then try to combine them.. but have still had no luck.

Any help would be greatly appreciated.

Thanks,
John Paul
__________________
John Paul
StudioInteractive.net
Reply With Quote
  #2 (permalink)  
Old 01-03-2008, 11:32 AM
Tech Manager Tech Manager is offline
WebProWorld Pro
 

Join Date: Jan 2008
Posts: 254
Tech Manager RepRank 1
Default Re: Need help importing into MySQL

John:

You didn't mention how you are trying to import the file. Are you doing a simple SQL query or a file import? There are several ways you import or add the data into a MySQL database.

I am not sure why you are splitting the data into two parts AND then trying to import as different table names. You could split the data and import into the same table.

Do all the relative tables in the database already exist?

Is this on a Linux or Windows box? Do you use PHP (what version?).

With a little more info I think I could help solve the issue for you.
Reply With Quote
  #3 (permalink)  
Old 01-09-2008, 12:17 PM
J_Paul's Avatar
J_Paul J_Paul is offline
WebProWorld Pro
 

Join Date: Jul 2003
Location: Huntington Beach, CA
Posts: 240
J_Paul RepRank 0
Default Re: Need help importing into MySQL

The reason I split the database is because we are using MyPHPAdmin for the back in... It's a linux box.. and it's version 4 i believe of PHP.

It seems that it's cutting off every time there's a ; symbol in any of the text or HTML. The info in the database is all HTML code.

Thanks again fro your help.
__________________
John Paul
StudioInteractive.net
Reply With Quote
  #4 (permalink)  
Old 01-09-2008, 12:56 PM
Tech Manager Tech Manager is offline
WebProWorld Pro
 

Join Date: Jan 2008
Posts: 254
Tech Manager RepRank 1
Default Re: Need help importing into MySQL

John:

I still don't see a reason for splitting the database. Without having a look at the data I suspect that it is improperly formatted to make the import successful. It doesn't sound to me that you exported it into a SQL format or else you are using an import method that does not allow for the escaping of special characters. Again, the above is just a guess without seeing the actual data.
__________________
I use Country IP Blocks as added security for my networks and servers.

Last edited by Tech Manager : 01-09-2008 at 01:03 PM.
Reply With Quote
  #5 (permalink)  
Old 01-09-2008, 03:00 PM
J_Paul's Avatar
J_Paul J_Paul is offline
WebProWorld Pro
 

Join Date: Jul 2003
Location: Huntington Beach, CA
Posts: 240
J_Paul RepRank 0
Default Re: Need help importing into MySQL

Actually, I exported it into CVS files when I split it.

How should I go about importing it? If I use an SQL statement what would it be? phpMyadmin will allow me to do those, but i'm not very good with this sort of thing.

Are you familiar with phpMyAdmin?

Thanks again for your help.
__________________
John Paul
StudioInteractive.net
Reply With Quote
  #6 (permalink)  
Old 01-09-2008, 03:20 PM
Tech Manager Tech Manager is offline
WebProWorld Pro
 

Join Date: Jan 2008
Posts: 254
Tech Manager RepRank 1
Thumbs up Re: Need help importing into MySQL

Yes, I am familiar with phpMyAdmin. It's a nice interface application.

Try Navicat it does a decent job of importing data from other formats into MySQL.

It's also fairly simple to write a short and sweet PHP script to go through your data line by line and insert it into the appropriate tables/fields.
__________________
I use Country IP Blocks as added security for my networks and servers.
Reply With Quote
  #7 (permalink)  
Old 01-09-2008, 08:20 PM
J_Paul's Avatar
J_Paul J_Paul is offline
WebProWorld Pro
 

Join Date: Jul 2003
Location: Huntington Beach, CA
Posts: 240
J_Paul RepRank 0
Default Re: Need help importing into MySQL

Hey, I did the navicat thing... great program.. You are awesome tech manager..

After MANY trial and errors.. I set up BOTH databases in the program and just friggen copied the one table to the other database and bling bling it worked!!!!

Thank you so much for your help and time with this!!!!

Looks like we are gonna be buying this program.

John Paul
__________________
John Paul
StudioInteractive.net
Reply With Quote
  #8 (permalink)  
Old 01-09-2008, 08:28 PM
Tech Manager Tech Manager is offline
WebProWorld Pro
 

Join Date: Jan 2008
Posts: 254
Tech Manager RepRank 1
Default Re: Need help importing into MySQL

Quote:
Originally Posted by J_Paul View Post
Hey, I did the navicat thing... great program.. You are awesome tech manager..

After MANY trial and errors.. I set up BOTH databases in the program and just friggen copied the one table to the other database and bling bling it worked!!!!

Thank you so much for your help and time with this!!!!

Looks like we are gonna be buying this program.

John Paul
Glad I could be of assistance.


Good luck.
__________________
I use Country IP Blocks as added security for my networks and servers.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Tags: database, mysql, phpmyadmin



Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
importing video in flash matheen Flash Discussion Forum 0 02-05-2007 07:27 AM
MySql and phpMyAdmin importing code from .txt file kgun Database Discussion Forum 4 10-10-2006 08:58 AM
Problem importing kpowerscvg Database Discussion Forum 3 01-03-2006 12:52 PM
Importing Video WPW_Feedbot Graphics & Design Discussion Forum 0 01-21-2005 12:30 AM
importing a menu? vigneron Graphics & Design Discussion Forum 2 01-27-2004 01:06 PM


Search Engine Friendly URLs by vBSEO 3.0.0