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 428,064 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,462 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: 1088 | Replies: 19
Reply
Join Date: Feb 2008
Posts: 39
Reputation: Kraai is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Kraai's Avatar
Kraai Kraai is offline Offline
Light Poster

Re: Export and Import of database errors, please advise.

  #11  
May 15th, 2008
I think you hit the nail dead center here. The data was downloaded via export function of phpmyadmin, and it seems now that the download stream may have been interupted or dipped or something, and there is some more data that is missing.

In the meantime, I re-exported the database, in gzip format, and this took only 2 seconds, which make me think that the zipfile may not even have something in it. On my pc, it does not want to open the gzip file, it tells me it may be corrupt.

However, I then tried to import the gzip to the server, and got the "not enough" memory error in phpmyadmin:

<b>Fatal error</b>: Allowed memory size of 16777216 bytes exhausted (tried to allocate 10201461 bytes) in <b>/usr/share/phpmyadmin/export.php</b> on line <b>81</b><br />

What does all this mean?

Thank you so much for your support and patience with me, and your proposal to view the data. If all else fails, I don't have a problem if you view the data.
I left my hotdog somewhere, If you find it, feed it please, or better feed yourself!!
Webhostig and ISP Solutions in ZA
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,467
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 11
Solved Threads: 296
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Export and Import of database errors, please advise.

  #12  
May 15th, 2008
Function has alocated only 10201461 bytes where as you can see you want 16777216 bytes. Try to create split version of whole DB. Like you have 10.000 records you put 5.000 in one file and other in next one. I can remember how I did it last time
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation: nav33n has a spectacular aura about nav33n has a spectacular aura about 
Rep Power: 8
Solved Threads: 240
nav33n's Avatar
nav33n nav33n is offline Offline
Posting Sensei

Re: Export and Import of database errors, please advise.

  #13  
May 15th, 2008
[root@cayenne /home/kletsker/mysqldump]# mysql kletsker_kletskerk < localhost.sql ERROR 1064 (42000) at line 89499: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''[ quote=&quot;Barend&quot;:3v' at line 1

I think (and I am not sure) the problem is with an extra quote ' in the query. It might have encountered a value like,for example, O'neil. This would terminate the query abruptly as in the following example.
insert into table (name,address) values ('O'neil','some address'); Anyway, maybe this can help..
http://www.webdevelopment2.com/impor...n-get-bigdump/
Last edited by nav33n : May 15th, 2008 at 8:14 am.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

*PM asking for help will be ignored*
Reply With Quote  
Join Date: Feb 2008
Posts: 39
Reputation: Kraai is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Kraai's Avatar
Kraai Kraai is offline Offline
Light Poster

Re: Export and Import of database errors, please advise.

  #14  
May 15th, 2008
I have downloaded and installed bigdump now, and changed the settings to connect to database as specified, but even bigdump cannot connect to the database.

Database connection failed due to Access denied for user '******'@'localhost' (using password: YES)

Edit the database settings in /home/****/public_html/dump/bigdump.php or contact your database provider

Now, the settings is the same as the database name, user and password.

What am I doing wrong?
I left my hotdog somewhere, If you find it, feed it please, or better feed yourself!!
Webhostig and ISP Solutions in ZA
Reply With Quote  
Join Date: Feb 2008
Posts: 39
Reputation: Kraai is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Kraai's Avatar
Kraai Kraai is offline Offline
Light Poster

Re: Export and Import of database errors, please advise.

  #15  
May 15th, 2008
Originally Posted by peter_budo View Post
Function has alocated only 10201461 bytes where as you can see you want 16777216 bytes. Try to create split version of whole DB. Like you have 10.000 records you put 5.000 in one file and other in next one. I can remember how I did it last time


I do not know how to do the split. What I am doing now, is to export/import the tabels one by one. I am now with the table containing the forum posts, and it looks like this table is the large one, as the import keeps on timing out.

Is there some geek out there that will help me export import this database I will pay for it if it is not too much you charge.
I left my hotdog somewhere, If you find it, feed it please, or better feed yourself!!
Webhostig and ISP Solutions in ZA
Reply With Quote  
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation: nav33n has a spectacular aura about nav33n has a spectacular aura about 
Rep Power: 8
Solved Threads: 240
nav33n's Avatar
nav33n nav33n is offline Offline
Posting Sensei

Re: Export and Import of database errors, please advise.

  #16  
May 15th, 2008
Umm.. I just checked bigdump and it worked for me.. Well, I didn't check with over 50mb of data though.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

*PM asking for help will be ignored*
Reply With Quote  
Join Date: Feb 2008
Posts: 39
Reputation: Kraai is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Kraai's Avatar
Kraai Kraai is offline Offline
Light Poster

Re: Export and Import of database errors, please advise.

  #17  
May 15th, 2008
Originally Posted by nav33n View Post
Umm.. I just checked bigdump and it worked for me.. Well, I didn't check with over 50mb of data though.


I am sure bigdump will do the trick, but what am I doing wrong in its settings, as it does not want to connect to the database at all.
I left my hotdog somewhere, If you find it, feed it please, or better feed yourself!!
Webhostig and ISP Solutions in ZA
Reply With Quote  
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation: nav33n has a spectacular aura about nav33n has a spectacular aura about 
Rep Power: 8
Solved Threads: 240
nav33n's Avatar
nav33n nav33n is offline Offline
Posting Sensei

Re: Export and Import of database errors, please advise.

  #18  
May 15th, 2008
Are you sure you have changed these configuration ?
$db_server = 'localhost';
$db_name = '';
$db_username = '';
$db_password = '';
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

*PM asking for help will be ignored*
Reply With Quote  
Join Date: Feb 2008
Posts: 39
Reputation: Kraai is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Kraai's Avatar
Kraai Kraai is offline Offline
Light Poster

Re: Export and Import of database errors, please advise.

  #19  
May 15th, 2008
jip, defnitly, I changed it, to the same details as created for this database. the server I left at "localhost"
I left my hotdog somewhere, If you find it, feed it please, or better feed yourself!!
Webhostig and ISP Solutions in ZA
Reply With Quote  
Join Date: Feb 2008
Posts: 39
Reputation: Kraai is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Kraai's Avatar
Kraai Kraai is offline Offline
Light Poster

Re: Export and Import of database errors, please advise.

  #20  
May 16th, 2008
Here is an update!

To summarize:

The original problem was, a sytax error when trying to upload a database in phpmyadmin.

This error was due to the fact that the databse was not complete, when exported, also via phpmyadmin, and without any error warnings only exported a part of the database.

The new problem, was, how to get this database exported, completely, without SSH access, and also, I am a bit scared as a novice to use this line commands.

After many attempts to download this huge database, in phpmyadmin, it just never did download completely, and any zip format in phpmyadmin did not work either.

I then contacted the owner of the server where this database is currently hosted, and asked them to export it for me and make it available for me to download with FTP.

This was done by the server owner, and this is where I am now, busy to get this huge database via FTP to my local hard drive. The total size of the zipped file is almost 160 megs, so I can just imagine that if uncompressed, it should be like almost be a Gig?

My next step wil be, to import this database onto the new server. I would like to keep this thread open, untill I installed it.

I felt it necessary to wrap this threat with this update, as it is a shame that mostly, unresolved threats just hang in the air, and poor monkeys like myself, waste a lot of time reading them, without getting to the solution.

What I learned so far:

phpmyadmin cannot handle large files, which is very sorry, because otherwise, it is a great tool to use.
I left my hotdog somewhere, If you find it, feed it please, or better feed yourself!!
Webhostig and ISP Solutions in ZA
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

Other Threads in the MySQL Forum

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